| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\
| |
| | |
Release 2.9.0
|
|/ |
|
|\
| |
| | |
Revert "Merge pull request #1041 from asfaltboy/issue-830-e721-types-regex-incorrect"
|
|/
|
|
|
|
|
| |
asfaltboy/issue-830-e721-types-regex-incorrect"
This reverts commit 8b5c964321776b2fe8dfd25f4f18db0ffbdbd281, reversing
changes made to 9777ac5a8ea1ae14e70bfb27063e2e7c0daa06e3.
|
|\
| |
| | |
[pre-commit.ci] pre-commit autoupdate
|
|/
|
|
|
|
| |
updates:
- [github.com/asottile/reorder_python_imports: v3.8.1 → v3.8.2](https://github.com/asottile/reorder_python_imports/compare/v3.8.1...v3.8.2)
- [github.com/asottile/pyupgrade: v2.37.1 → v2.37.2](https://github.com/asottile/pyupgrade/compare/v2.37.1...v2.37.2)
|
|\
| |
| | |
[pre-commit.ci] pre-commit autoupdate
|
|/
|
|
|
|
| |
updates:
- [github.com/asottile/reorder_python_imports: v3.3.0 → v3.8.1](https://github.com/asottile/reorder_python_imports/compare/v3.3.0...v3.8.1)
- [github.com/asottile/pyupgrade: v2.34.0 → v2.37.1](https://github.com/asottile/pyupgrade/compare/v2.34.0...v2.37.1)
|
|\
| |
| | |
[pre-commit.ci] pre-commit autoupdate
|
|/
|
|
|
| |
updates:
- [github.com/asottile/reorder_python_imports: v3.1.0 → v3.3.0](https://github.com/asottile/reorder_python_imports/compare/v3.1.0...v3.3.0)
|
|\
| |
| | |
add python3.11 support (except* and a[*b])
|
| | |
|
|\ \
| | |
| | | |
fix IndexError regression with E275
|
| |/ |
|
|\ \
| | |
| | | |
[pre-commit.ci] pre-commit autoupdate
|
|/ /
| |
| |
| |
| |
| | |
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v4.3.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v4.3.0)
- [github.com/asottile/pyupgrade: v2.33.0 → v2.34.0](https://github.com/asottile/pyupgrade/compare/v2.33.0...v2.34.0)
|
|\ \
| |/
|/| |
[pre-commit.ci] pre-commit autoupdate
|
|/
|
|
|
| |
updates:
- [github.com/asottile/pyupgrade: v2.32.1 → v2.33.0](https://github.com/asottile/pyupgrade/compare/v2.32.1...v2.33.0)
|
|\
| |
| | |
[pre-commit.ci] pre-commit autoupdate
|
|/
|
|
|
| |
updates:
- [github.com/asottile/pyupgrade: v2.32.0 → v2.32.1](https://github.com/asottile/pyupgrade/compare/v2.32.0...v2.32.1)
|
|\
| |
| | |
[pre-commit.ci] pre-commit autoupdate
|
|/
|
|
|
| |
updates:
- [github.com/asottile/reorder_python_imports: v3.0.1 → v3.1.0](https://github.com/asottile/reorder_python_imports/compare/v3.0.1...v3.1.0)
|
|\
| |
| | |
Generalize E275 to require space after all keywords, not just "import".
|
|/ |
|
|\
| |
| | |
[pre-commit.ci] pre-commit autoupdate
|
|/
|
|
|
|
| |
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.1.0 → v4.2.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.1.0...v4.2.0)
- [github.com/asottile/pyupgrade: v2.31.1 → v2.32.0](https://github.com/asottile/pyupgrade/compare/v2.31.1...v2.32.0)
|
|\
| |
| | |
[pre-commit.ci] pre-commit autoupdate
|
|/
|
|
|
|
| |
updates:
- [github.com/asottile/reorder_python_imports: v2.7.1 → v3.0.1](https://github.com/asottile/reorder_python_imports/compare/v2.7.1...v3.0.1)
- [github.com/asottile/pyupgrade: v2.31.0 → v2.31.1](https://github.com/asottile/pyupgrade/compare/v2.31.0...v2.31.1)
|
|\
| |
| | |
docs: Fix double-dash converted to en-dash
|
|/
|
| |
The double-dash for command line option `--ignore` was being converted to an en-dash.
|
|\
| |
| | |
[pre-commit.ci] pre-commit autoupdate
|
|/
|
|
|
| |
updates:
- [github.com/asottile/reorder_python_imports: v2.6.0 → v2.7.1](https://github.com/asottile/reorder_python_imports/compare/v2.6.0...v2.7.1)
|
|\
| |
| | |
use short-circuit evaluation in _is_binary_operator
|
|/
|
|
| |
this improves performance by about 1%
|
|\
| |
| | |
[pre-commit.ci] pre-commit autoupdate
|
|/
|
|
|
| |
updates:
- [github.com/asottile/pyupgrade: v2.29.1 → v2.31.0](https://github.com/asottile/pyupgrade/compare/v2.29.1...v2.31.0)
|
|\
| |
| | |
fix regex bug for E721
|
|/ |
|
|\
| |
| | |
[pre-commit.ci] pre-commit autoupdate
|
|/
|
|
|
| |
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0)
|
|\
| |
| | |
Remove lingering < py3.6 code
|
| |
| |
| |
| | |
for more information, see https://pre-commit.ci
|
|/ |
|
|\
| |
| | |
fix E721 types regex
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* `type(a) is type(b)` should still fail
* same for `type(a) != type(b) or type(a) == type(ccc)`
* We cannot assume `res == types.IntType` is wrong as the identity
of the objects is not known at check time, either way
it shouldn't be a E721 as it doesn't involve type(...) function
as described in PEP8
|
| | |
|
|/
|
|
|
|
|
|
|
|
| |
Any `types.*Type*` matches incorrectly as a `type(...)` comparison;
the regex `COMPARE_TYPE_REGEX` seems a bit too complicated
for what should be a simple comparison case.
Ref: https://github.com/PyCQA/pycodestyle/blob/main/pycodestyle.py#L147-L148
This reproduces the case in #830
|
|\
| |
| | |
docs: E203 also applies to comma and semicolon
|
|/
|
| |
Per PEP8, "Avoid extraneous whitespace ... Immediately before a comma, semicolon, or colon". https://www.python.org/dev/peps/pep-0008/#pet-peeves
|