Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | debug(lab): remove opcode histogram from lab/parser.py | Ned Batchelder | 2021-11-03 | 1 | -17/+2 | |
| | ||||||
* | docs: add a license notice to the top of goals.py | Ned Batchelder | 2021-11-03 | 1 | -0/+3 | |
| | ||||||
* | test(fix): isolate excepthook tests from each other | Ned Batchelder | 2021-11-02 | 2 | -0/+9 | |
| | ||||||
* | build(test): remove obsolete jQuery gold files #840 | Ned Batchelder | 2021-11-02 | 7 | -183/+25 | |
| | ||||||
* | test: force VirtualenvTest onto one worker to save time | Ned Batchelder | 2021-11-02 | 1 | -7/+50 | |
| | | | | | | | | | | | VirtualenvTest is slow because it has a session-scoped fixture that takes 10s to run. If all of those tests go to the same worker, we can reuse that fixture. If they go to different workers, we have to spend that time more than once. This is a hack which seems to work, but no guarantees into the future. Also, I don't know why the VirtualenvTests aren't run first on their worker. Time saved: about 10%, from ~50s to ~45s. | |||||
* | lab: improvements to coverage-goals | Ned Batchelder | 2021-11-01 | 1 | -10/+11 | |
| | | | | | | | | - Warning up-front - Works for line-only measurement - Correct the command description. | |||||
* | a proof-of-concept for coverage-goals | Ned Batchelder | 2021-10-31 | 1 | -0/+91 | |
| | ||||||
* | build: bump version | Ned Batchelder | 2021-10-31 | 2 | -1/+7 | |
| | ||||||
* | docs: sample HTML report for 6.1.16.1.1 | Ned Batchelder | 2021-10-31 | 12 | -45/+62 | |
| | ||||||
* | build: prep for 6.1.1 | Ned Batchelder | 2021-10-31 | 4 | -6/+8 | |
| | ||||||
* | perf(test): run pip just once, shaves 1.2s off the fixture | Ned Batchelder | 2021-10-31 | 1 | -8/+9 | |
| | | | | ... though that means it's 8.1s instead of 9.3s, so still pretty slow. | |||||
* | test: use the coverage-command fixture throughout the venv tests | Ned Batchelder | 2021-10-31 | 1 | -4/+4 | |
| | ||||||
* | fix: don't warn about already imported files for namespace packages #888 | Ned Batchelder | 2021-10-31 | 4 | -4/+70 | |
| | | | | Ignore namespace packages in the already-imported check. #888 | |||||
* | refactor(test): the virtualenv tests deserve their own file | Ned Batchelder | 2021-10-31 | 2 | -263/+277 | |
| | ||||||
* | test: check pylint for new files before adding them to git | Ned Batchelder | 2021-10-31 | 1 | -1/+1 | |
| | ||||||
* | docs: another link for the no-jquery changelog entry | Ned Batchelder | 2021-10-31 | 1 | -3/+4 | |
| | ||||||
* | test: when we measure our coverage, get a json report also | Ned Batchelder | 2021-10-31 | 3 | -1/+3 | |
| | ||||||
* | build: clean up the Makefile a bit | Ned Batchelder | 2021-10-30 | 3 | -17/+6 | |
| | ||||||
* | debug: code we can enable to see where tests are running and in what order | Ned Batchelder | 2021-10-30 | 1 | -1/+9 | |
| | ||||||
* | chore: update HTML gold files | Ned Batchelder | 2021-10-30 | 24 | -74/+77 | |
| | | | | test: I keep forgetting about the 3.10-only gold file | |||||
* | fix: don't mention the p shortcut if not doing branches | Ned Batchelder | 2021-10-30 | 1 | -1/+4 | |
| | ||||||
* | fix: sticky HTML header only worked with branch coverage | Ned Batchelder | 2021-10-30 | 2 | -16/+26 | |
| | ||||||
* | build: also pin pip and setuptools | Ned Batchelder | 2021-10-30 | 6 | -13/+24 | |
| | | | | Mostly to get rid of the "you're not using the latest pip!" warning. | |||||
* | test: fix the trailing-space test, and suppress warnings about \<space> | Ned Batchelder | 2021-10-30 | 2 | -12/+18 | |
| | ||||||
* | style: remove implicit string concatenation | Ned Batchelder | 2021-10-30 | 3 | -26/+26 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | .. and also add trailing commas where needed to remove ambiguity. I used semgrep with this config: ``` rules: - id: implicit-string-concatenation pattern: | "$X" "$Y" languages: - python message: string cat BAD severity: INFO ``` Running it showed this: ``` $ semgrep --config=../lab/string-cat.yml coverage tests doc ci igor.py setup.py __main__.py Running 1 rules... setup.py severity:info rule:lab.implicit-string-concatenation: string cat BAD 128: 'https://tidelift.com/subscription/pkg/pypi-coverage' 129: '?utm_source=pypi-coverage&utm_medium=referral&utm_campaign=pypi' tests/test_api.py severity:info rule:lab.implicit-string-concatenation: string cat BAD 319: "!coverage.py: This is a private format, don't read it directly!" 320: '{"lines":{"/private/tmp/foo.py":[1,5,2,3]}}' tests/test_html.py severity:info rule:lab.implicit-string-concatenation: string cat BAD 614: ('<span class="key">if</span> <span class="num">1</span> ' 615: '<span class="op"><</span> <span class="num">2</span>'), -------------------------------------------------------------------------------- 616: (' <span class="nam">a</span> ' 617: '<span class="op">=</span> <span class="num">3</span>'), -------------------------------------------------------------------------------- 665: ('<span class="key">if</span> <span class="nam">x</span> ' 666: '<span class="op"><</span> <span class="num">2</span>'), -------------------------------------------------------------------------------- 667: (' <span class="nam">a</span> <span class="op">=</span> ' 668: '<span class="num">3</span>'), -------------------------------------------------------------------------------- 949: ('<span class="key">if</span> <span class="num">1</span> ' 950: '<span class="op"><</span> <span class="num">2</span>'), -------------------------------------------------------------------------------- 951: (' <span class="nam">a</span> <span class="op">=</span> ' 952: '<span class="num">3</span>'), ran 1 rules on 134 files: 8 findings ``` This wasn't all of the instances, so I wrote a bug report: https://github.com/returntocorp/semgrep/issues/4184 | |||||
* | chore: make upgrade | Ned Batchelder | 2021-10-30 | 6 | -19/+22 | |
| | ||||||
* | docs: tweak the sidebar | Ned Batchelder | 2021-10-30 | 1 | -1/+1 | |
| | ||||||
* | docs: fix two warnings in the release-notes process | Ned Batchelder | 2021-10-30 | 3 | -3/+3 | |
| | | | | ... and change "tox doc" to fail next time this happens. | |||||
* | style: remove mention of Python 2 | Ned Batchelder | 2021-10-30 | 1 | -2/+2 | |
| | ||||||
* | build: every release leads to tweaks to the process | Ned Batchelder | 2021-10-30 | 1 | -4/+2 | |
| | ||||||
* | docs: link to the no-more-jquery pull request | Ned Batchelder | 2021-10-30 | 1 | -1/+3 | |
| | ||||||
* | chore: bump version | Ned Batchelder | 2021-10-30 | 2 | -1/+6 | |
| | ||||||
* | build: prep for version 6.16.1 | Ned Batchelder | 2021-10-29 | 4 | -7/+9 | |
| | ||||||
* | docs: sample HTML report for 6.1 | Ned Batchelder | 2021-10-29 | 18 | -4698/+4545 | |
| | ||||||
* | docs: say a little more about annotate in the changelog | Ned Batchelder | 2021-10-29 | 1 | -1/+4 | |
| | ||||||
* | deprecated: the annotate command will be removed in a future version | Ned Batchelder | 2021-10-29 | 4 | -2/+24 | |
| | ||||||
* | refactor(test): make re_lines (et al) look like re.search | Ned Batchelder | 2021-10-28 | 7 | -74/+68 | |
| | | | | and also replace some calls with just-plain re.search. | |||||
* | refactor(test): name this gold file properly | Ned Batchelder | 2021-10-28 | 2 | -1/+1 | |
| | ||||||
* | test: add a annotate test, and simplify the logic | Ned Batchelder | 2021-10-28 | 3 | -5/+32 | |
| | ||||||
* | chore(docs): 'make cmd_help' because cmdline.py changed | Ned Batchelder | 2021-10-28 | 4 | -0/+4 | |
| | ||||||
* | feat: html output directory gets a .gitignore file. #1244 | Ned Batchelder | 2021-10-27 | 5 | -0/+14 | |
| | ||||||
* | build: run tests and quality on my branches without making pull requests | Ned Batchelder | 2021-10-27 | 2 | -0/+2 | |
| | ||||||
* | fix(debug): ast_dump failed on a few things | Ned Batchelder | 2021-10-27 | 4 | -18/+42 | |
| | ||||||
* | refactor(test): re_lines is more useful if it returns a list | Ned Batchelder | 2021-10-27 | 4 | -19/+28 | |
| | ||||||
* | feat: xml and json say what they are doing, and -q quiets everything. #1254nedbat/dashq | Ned Batchelder | 2021-10-26 | 11 | -21/+88 | |
| | ||||||
* | build: force 'build' to shut up | Ned Batchelder | 2021-10-26 | 3 | -1/+11 | |
| | ||||||
* | test: a true unit test for render_report | Ned Batchelder | 2021-10-26 | 2 | -1/+51 | |
| | ||||||
* | refactor: alphabetize the options | Ned Batchelder | 2021-10-26 | 2 | -90/+90 | |
| | ||||||
* | refactor: more direct | Ned Batchelder | 2021-10-25 | 1 | -3/+2 | |
| | ||||||
* | fix: changes for PyPy3.8 | Ned Batchelder | 2021-10-25 | 8 | -5/+13 | |
| | | | | | | | | | | - Update tox.ini to let us run against PyPy3.8 - Some 3.8 behavior is (apparently) only on CPython - PyPy3.8 doesn't get along with virtualenv yet (https://github.com/pypa/virtualenv/issues/2182), so use venv instead for our virtualenv tests. |