| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
happen.
The `pip install` command only shows errors with -v, and then there's a
ton of other crap to wade through.
|
|
|
|
|
|
|
| |
* Fix typo in source docs
* Format lines
* Remove trailing whitespace
|
|
|
|
| |
[skip actions]
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
[skip actions]
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* updated docs for #578 recommendation
#578
https://github.com/nedbat/coveragepy/issues/578#issuecomment-413881957
https://bitbucket.org/suriya/coverage-xml-bug/pull-requests/1/demonstrate-a-fix-to-coverage-xml-bug/diff
also see #1146
* fixed per lint
* updated per lint
|
| |
|
|
|
|
| |
And also use the matrix to build them in parallel
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
- Warning up-front
- Works for line-only measurement
- Correct the command description.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
... 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
|
| |
|
| |
|
|
|
|
| |
Mostly to get rid of the "you're not using the latest pip!" warning.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
.. 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
|
| |
|