Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | refactor: no need for special handling of compiling unicode source | Ned Batchelder | 2022-11-06 | 1 | -7/+3 |
| | | | | This was a holdover from Python 2 days. | ||||
* | fix: properly measure strange use of wildcard alternatives in match/case. #1421 | Ned Batchelder | 2022-11-03 | 1 | -1/+4 |
| | |||||
* | fix: `class` statements shouldn't be branches. #1449 | Ned Batchelder | 2022-09-26 | 1 | -0/+15 |
| | | | | | | Revert "refactor: we no longer need to treat 'class' lines specially" This reverts commit 79f9f4575321fafc2ef770e3255f874db3d4b037. | ||||
* | style: adapt to latest pylint concerns | Ned Batchelder | 2022-09-13 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Before these changes, these violations happened: ``` lint run-test: commands[6] | python -m pylint --notes= coverage tests doc ci igor.py setup.py __main__.py ************* Module coverage.parser coverage/parser.py:1290 I: Useless suppression of 'too-many-function-args' (useless-suppression) ************* Module ci.download_gha_artifacts ci/download_gha_artifacts.py:18 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ci/download_gha_artifacts.py:54 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ************* Module ci.trigger_build_kits ci/trigger_build_kits.py:21 W: Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely (missing-timeout) ************* Module ci.github_releases ci/github_releases.py:138 E: Too many positional arguments for function call (too-many-function-args) ci/github_releases.py:138 I: Useless suppression of 'no-value-for-parameter' (useless-suppression) ************* Module ci.comment_on_fixes ci/comment_on_fixes.py:30 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ci/comment_on_fixes.py:37 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ci/comment_on_fixes.py:49 W: Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely (missing-timeout) ************* Module ci.parse_relnotes ci/parse_relnotes.py:126 E: Too many positional arguments for function call (too-many-function-args) ci/parse_relnotes.py:126 I: Useless suppression of 'no-value-for-parameter' (useless-suppression) ``` | ||||
* | fix: 3.11.0b4 has 0-numbered lines. Fixes #1419 | Ned Batchelder | 2022-07-12 | 1 | -1/+1 |
| | | | | | CPython added these lines in https://github.com/python/cpython/commit/1bfe83a114da3939c00746fc44dc5da7f56f525f | ||||
* | chore: make upgrade | Ned Batchelder | 2022-05-12 | 1 | -0/+1 |
| | | | | | Wrote this bug for pylint, because I shouldn't have to add a pragma: https://github.com/PyCQA/pylint/issues/6592 | ||||
* | style: parens should indent the same as their opening line | Ned Batchelder | 2022-05-01 | 1 | -3/+3 |
| | |||||
* | debug: tweaks to make these clearer | Ned Batchelder | 2022-02-06 | 1 | -3/+3 |
| | |||||
* | test: adapt to PyPy 3.9 v7.8.8 | Ned Batchelder | 2022-02-06 | 1 | -2/+2 |
| | |||||
* | fix: 3.11 now traces decorator lines as the decorators execute | Ned Batchelder | 2022-01-15 | 1 | -2/+8 |
| | | | | See: https://bugs.python.org/issue46234 | ||||
* | docs: document the exceptions | Ned Batchelder | 2021-11-14 | 1 | -2/+2 |
| | | | | ... and make some of them private. | ||||
* | refactor: we no longer need to treat 'class' lines specially | Ned Batchelder | 2021-11-11 | 1 | -15/+0 |
| | | | | | 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. | ||||
* | fix: colons in decorators shouldn't stop an exclusion | Ned Batchelder | 2021-11-10 | 1 | -2/+7 |
| | |||||
* | fix(debug): ast_dump failed on a few things | Ned Batchelder | 2021-10-27 | 1 | -2/+5 |
| | |||||
* | test: lightly test the ast_dump function | Ned Batchelder | 2021-10-12 | 1 | -67/+66 |
| | |||||
* | style: prefer explicit string concatenation | Ned Batchelder | 2021-10-10 | 1 | -1/+1 |
| | |||||
* | test: mark some uncovered things | Ned Batchelder | 2021-10-08 | 1 | -2/+6 |
| | |||||
* | fix: missing exceptions through with statements in 3.10 aren't considered ↵ | Ned Batchelder | 2021-08-14 | 1 | -8/+4 |
| | | | | missing branches. #1205 | ||||
* | fix: correct previous refactorings | Ned Batchelder | 2021-07-28 | 1 | -2/+2 |
| | | | | | File names should not be rendered with !r, since on Windows that will produce double backslashes, which only confuses people. | ||||
* | refactor: convert %-strings to f-strings | Ned Batchelder | 2021-07-28 | 1 | -4/+3 |
| | |||||
* | fix: match/case will trace the default case line | Ned Batchelder | 2021-07-27 | 1 | -3/+0 |
| | |||||
* | fix: raise chained errors with "from" #998 | Ned Batchelder | 2021-07-20 | 1 | -5/+3 |
| | | | | | | This makes exceptions report their causes correctly, as "The above exception was the direct cause of the following exception" instead of "During handling of the above exception, another exception occurred." | ||||
* | feat: add support for Python 3.10 match-case statements | Ned Batchelder | 2021-06-06 | 1 | -0/+21 |
| | |||||
* | fix: in Python 3.10, leaving a with block exits through the with statement. | Ned Batchelder | 2021-06-05 | 1 | -9/+74 |
| | | | | This need 3.10.0b3 (not yet released) to fully pass. | ||||
* | refactor: no need for clever byte_parser property | Ned Batchelder | 2021-06-05 | 1 | -10/+3 |
| | | | | | It was only ever used once per object, so just make the ByteParser when we need it. | ||||
* | test: add a test for annotated assignment | Ned Batchelder | 2021-06-05 | 1 | -1/+4 |
| | | | | | | | | | Every statement-level ast node should be tested. Annotated assignment was missing. Also, we don't need "exec" anymore, that was only for Python 2. And: this is the 1000th test! | ||||
* | test: during testing, be strict about handling all ast nodes | Ned Batchelder | 2021-06-04 | 1 | -4/+3 |
| | |||||
* | refactor: better naming for a code object dispatcher | Ned Batchelder | 2021-06-04 | 1 | -14/+16 |
| | |||||
* | refactor: delegate to blocks and avoid isinstance | Ned Batchelder | 2021-06-04 | 1 | -38/+87 |
| | |||||
* | refactor: remove things only needed for Python 2 | Ned Batchelder | 2021-06-04 | 1 | -26/+1 |
| | |||||
* | refactor: move exceptions to their own module | Ned Batchelder | 2021-05-02 | 1 | -1/+1 |
| | |||||
* | refactor: remove a few more version checks | Ned Batchelder | 2021-05-02 | 1 | -2/+1 |
| | |||||
* | refactor: pyupgrade --py36-plus coverage/*.py | Ned Batchelder | 2021-05-02 | 1 | -37/+36 |
| | |||||
* | refactor: remove more unneeded backward.py shims | Ned Batchelder | 2021-05-01 | 1 | -3/+2 |
| | | | | | | | | | | | | | | Gone are: - iitems - litems - iternext - to_bytes - to_string - binary_bytes - byte_to_int - bytes_to_ints - BUILTINS | ||||
* | refactor: remove unneeded backward.py shims | Ned Batchelder | 2021-05-01 | 1 | -3/+2 |
| | | | | | | | | | | | | | | | Removed were: - StringIO - configparser - string_class - unicode_class - range - zip_longest - get_thread_id - path_types - shlex_quote - reprlib | ||||
* | refactor: remove code explicitly choosing between py2 and py3 | Ned Batchelder | 2021-05-01 | 1 | -5/+2 |
| | |||||
* | tool: more information about the location of ast nodes when debugging | Ned Batchelder | 2021-03-13 | 1 | -1/+6 |
| | |||||
* | A better test for 'if not __debug__' | Ned Batchelder | 2021-01-10 | 1 | -3/+1 |
| | |||||
* | PEP 626: constant tests are kept as no-ops | Ned Batchelder | 2021-01-10 | 1 | -1/+6 |
| | | | | | The conditionals are now getting unwieldy, perhaps we can simplify them in the future? | ||||
* | In 3.10, modules always have firstlineno==1 | Ned Batchelder | 2021-01-10 | 1 | -1/+9 |
| | |||||
* | Use co_lines() if it's available | Ned Batchelder | 2021-01-10 | 1 | -27/+28 |
| | |||||
* | Use set literals | Ned Batchelder | 2021-01-03 | 1 | -9/+9 |
| | |||||
* | Thanks, Kjell Braden | Ned Batchelder | 2020-03-26 | 1 | -1/+0 |
| | |||||
* | handle decorators for AsyncFunctionDefs. Closes #964 | Kjell Braden | 2020-03-24 | 1 | -0/+2 |
| | |||||
* | Exit arcs have to be corrected to first lines | Ned Batchelder | 2019-09-21 | 1 | -1/+5 |
| | | | | | | | | | | We've long remapped line numbers to the first line of a multi-line statement. But exit line numbers (negative numbers) were not remapped. This meant we were needlessly chasing weirdnesses in implementations. But the actual results of running coverage always remapped results to the first line, so there's no point in tracking the unmapped line numbers in our tests. | ||||
* | No need for format indexes (mostly) | Ned Batchelder | 2019-09-01 | 1 | -19/+19 |
| | |||||
* | This class was simpler as a function | Ned Batchelder | 2019-06-17 | 1 | -3/+2 |
| | |||||
* | Move more PYVERSION to be PYBEHAVIOR | Ned Batchelder | 2019-03-24 | 1 | -1/+1 |
| | |||||
* | Python 3.8 will optimize away "while True:" | Ned Batchelder | 2018-11-11 | 1 | -0/+21 |
| | |||||
* | Debug-time environment variables can be set with set_env.py | Ned Batchelder | 2018-11-03 | 1 | -0/+2 |
| |