| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
|
|
|
|
| |
Originally, this tokenizing code was paired with bytecode analysis. But now we
use AST instead, so class lines don't need to be handled differently.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The fix for CTracer is egregious and will need to be updated when there's a
supported way to do it.
The fullcoverage skip is noted in
https://github.com/nedbat/coveragepy/issues/1278
The raise_through_with skip is noted in
https://github.com/nedbat/coveragepy/issues/1270
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Originally I used setup_test because something went wrong when I used setUp. I
wrote https://github.com/pytest-dev/pytest/issues/8424 about it. There they say
to use `-p no:nose` to disable nose interpretation.
But now I simply went back to setUp, and all seems well? Not sure what changed,
but using the expected name is better.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Python 3.11 made a traceback look like this:
Traceback (most recent call last):
File "{path}", line 8, in <module>
print(sys.argv[1])
~~~~~~~~^^^
IndexError: list index out of range
We needed to not care if that tilde-caret line was present or not.
|
|
|
|
|
|
|
|
| |
On CPython 3.11, PyContracts fails on import, so we need to shut it off more
completely.
PyContracts is unmaintained these days, so we'll probably get rid of it
completely soon.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
... though that means it's 8.1s instead of 9.3s, so still pretty slow.
|
| |
|
|
|
|
| |
Ignore namespace packages in the already-imported check. #888
|
| |
|
| |
|
|
|
|
| |
test: I keep forgetting about the 3.10-only gold file
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
.. 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
|
| |
|
|
|
|
| |
and also replace some calls with just-plain re.search.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
The HTML report index page wasn't indicating the sort order properly
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- highlights weren't showing
- anchored lines were not visible
- some j/k motions were broken
- clicking the big buttons at the top didn't work
|
|
|
|
|
| |
Those have to be scrubbed too. I'm not sure why it's sometimes there, sometimes
not. Maybe xdist?
|
|
|
|
|
|
|
| |
We used to search an OS-specific directory in addition to our own, specifically
so that Debian could use an OS-installed copy of jQuery and its plugins. But we
no longer have jQuery or any third-party JavaScript code, so we don't need to
search the Debian directories.
|
|
|
|
| |
This is squashed from pull request #1248
|
| |
|
|
|
|
|
|
|
| |
The sticky header was hiding the line scrolled to the top of the window.
Along the way, also changed to use classes on <body> to control the
sticky header, and moved the header code into a function.
|
| |
|