David A. Hannasch
45577b3a47
Emit error on invalid config (multiple files).
...
Emit an error message if the configuration is invalid due to multiple
configuration files.
This shows how we can easily emit an error in the simplest case,
though we can also use _walk_up_directories_to_root_or_home to make this more
robust.
Resolves #1704 .
2022-10-02 16:21:09 -06:00
pre-commit-ci[bot]
6085fc2d4d
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-10-02 20:41:56 +00:00
David A. Hannasch
25757d9d05
Extract _walk_up_directories_to_root_or_home.
...
Extract _walk_up_directories_to_root_or_home and give it a PEP-0257 docstring.
Resolves #1702 .
2022-10-02 14:29:38 -06:00
Anthony Sottile
7a6c42fc43
Merge pull request #1681 from wookie184/use-extend-ignore-in-docs
...
Prefer extend-ignore over ignore in general examples
2022-09-06 13:57:07 -04:00
wookie184
a3e31c2f44
Prefer extend-ignore over ignore in general examples
2022-09-06 18:29:02 +01:00
Anthony Sottile
4d1a72afc2
Merge pull request #1680 from PyCQA/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-09-05 22:03:08 -04:00
pre-commit-ci[bot]
46b404aa1f
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 22.6.0 → 22.8.0](https://github.com/psf/black/compare/22.6.0...22.8.0 )
2022-09-06 01:17:10 +00:00
Anthony Sottile
a81fdd49f5
Merge pull request #1678 from kasium/issue-1676
...
Document off-by-default feature
2022-09-04 16:53:41 -04:00
Kai Mueller
e299674866
Document off-by-default feature
...
Add a short section to the plugin development.
See #1676
2022-09-04 16:48:46 -04:00
Anthony Sottile
d1939cbafd
Merge pull request #1677 from kasium/case-typo
...
Fix typo casae->case
2022-09-04 11:40:07 -04:00
Kai Mueller
2ee3c56d93
Fix typo casae->case
2022-09-04 15:33:18 +00:00
Anthony Sottile
a929f124c8
Merge pull request #1633 from PyCQA/py37-plus
...
require python>=3.7
2022-08-27 20:34:38 -04:00
Anthony Sottile
e249dc47df
Merge pull request #1662 from velicanu/main
...
fix documentation of color configuruation
2022-08-10 13:53:31 -04:00
Dragos Velicanu
68455f0e8f
fix documentation of color configuruation
2022-08-10 13:49:20 -04:00
Anthony Sottile
c42fc04602
Merge pull request #1658 from PyCQA/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-08-08 20:45:15 -04:00
pre-commit-ci[bot]
3642af2dca
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/PyCQA/flake8: 5.0.3 → 5.0.4](https://github.com/PyCQA/flake8/compare/5.0.3...5.0.4 )
2022-08-09 00:38:58 +00:00
Anthony Sottile
e94fb10940
require python>=3.7
2022-08-05 19:51:08 -04:00
Anthony Sottile
6027577d32
Release 5.0.4
2022-08-03 19:19:37 -04:00
Anthony Sottile
213e006ce6
Merge pull request #1653 from asottile/lower-bound-importlib-metadata
...
require sufficiently new importlib-metadata
2022-08-03 19:10:26 -04:00
Anthony Sottile
e94ee2b5f1
require sufficiently new importlib-metadata
2022-08-03 18:49:44 -04:00
Anthony Sottile
318a86a4a1
Merge pull request #1646 from televi/main
...
Clarify entry point naming
2022-08-02 11:04:18 -04:00
Todd Levi
7b8b374c9b
Clarify entry point naming
...
Clarified what is and is not a valid entry point name
for registering plugins.
2022-08-02 10:59:05 -04:00
Anthony Sottile
7160561028
Merge pull request #1649 from PyCQA/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-08-01 21:19:30 -04:00
pre-commit-ci[bot]
84d56a8c25
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.37.2 → v2.37.3](https://github.com/asottile/pyupgrade/compare/v2.37.2...v2.37.3 )
- [github.com/PyCQA/flake8: 4.0.1 → 5.0.3](https://github.com/PyCQA/flake8/compare/4.0.1...5.0.3 )
2022-08-02 01:01:58 +00:00
Anthony Sottile
ff6569b87d
Release 5.0.3
2022-08-01 19:21:10 -04:00
Anthony Sottile
e76b59ae44
Merge pull request #1648 from PyCQA/invalid-syntax-partial-parse
...
ignore config files that partially parse as flake8 configs
2022-08-01 19:16:39 -04:00
Anthony Sottile
25e8ff18b3
ignore config files that partially parse as flake8 configs
2022-08-01 19:11:53 -04:00
Anthony Sottile
70c0b3d27a
Release 5.0.2
2022-08-01 06:01:45 -07:00
Anthony Sottile
5e69ba9261
Merge pull request #1642 from PyCQA/no-home
...
skip skipping home if home does not exist
2022-08-01 08:54:33 -04:00
Anthony Sottile
8b51ee4ea5
skip skipping home if home does not exist
2022-08-01 05:51:38 -07:00
Anthony Sottile
446b18d35a
Merge pull request #1641 from PyCQA/entry-points-not-pickleable
...
work around un-pickleabiliy of EntryPoint in 3.8.0
2022-08-01 08:48:19 -04:00
Anthony Sottile
b70d7a2f7d
work around un-pickleabiliy of EntryPoint in 3.8.0
2022-08-01 05:37:47 -07:00
Anthony Sottile
91a7fa9ac3
fix order of release notes
2022-07-31 21:54:32 -04:00
Anthony Sottile
405cfe06e0
Release 5.0.1
2022-07-31 18:10:18 -04:00
Anthony Sottile
d20bb97f41
Merge pull request #1631 from PyCQA/dupe-sys-path
...
prevent duplicate plugin discovery on misconfigured pythons
2022-07-31 18:07:18 -04:00
Anthony Sottile
fce93b952a
prevent duplicate plugin discovery on misconfigured pythons
...
for example, `venv`-virtualenvs on fedora have both `lib` and `lib64` on
`sys.path` despite them being the same. this causes
`importlib.metadata.distributions` to double-discover.
```console
$ docker run --rm -t fedora:latest bash -c 'dnf install -qq -y python3 >& /dev/null && python3 -m venv venv && venv/bin/pip -qq install cfgv && venv/bin/python - <<< "from importlib.metadata import distributions; print(len([d for d in distributions() if d.name == '"'"'cfgv'"'"']))"'
2
```
2022-07-31 18:03:25 -04:00
Anthony Sottile
3f4872a4d8
Merge pull request #1628 from mxr/patch-1
...
Remove needless sort in `_style_guide_for`
2022-07-31 11:10:54 -04:00
Max R
b0cad5530e
Remove needless sort in _style_guide_for
...
We are always returning the last element so a 'max' operation is sufficient instead of sorting. Note the old code did not handle an empty list so this change doesn't either
2022-07-31 07:37:54 -04:00
Anthony Sottile
c7c6218e58
Release 5.0.0
2022-07-30 17:00:41 -04:00
Anthony Sottile
a826649b41
Merge pull request #1626 from PyCQA/pycodestyle-2-9
...
upgrade pycodestyle to 2.9.x
2022-07-30 15:41:57 -04:00
Anthony Sottile
7838f1191c
upgrade pycodestyle to 2.9.x
2022-07-30 15:38:58 -04:00
Anthony Sottile
66b3211646
Merge pull request #1625 from PyCQA/upgrade-pyflakes
...
upgrade pyflakes to 2.5.x
2022-07-30 13:41:06 -04:00
Anthony Sottile
b9e0c6eb50
upgrade pyflakes to 2.5.x
2022-07-30 13:35:02 -04:00
Anthony Sottile
e406f30e23
Merge pull request #1623 from atugushev/typo-fix
...
Fix a typo
2022-07-27 16:33:28 -04:00
Albert Tugushev
d891612d78
Fix a typo
2022-07-27 22:24:01 +02:00
Anthony Sottile
ba0c4c7ed4
Merge pull request #1622 from PyCQA/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-07-25 19:51:50 -04:00
pre-commit-ci[bot]
858c6d416c
[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 )
- [github.com/pre-commit/mirrors-mypy: v0.961 → v0.971](https://github.com/pre-commit/mirrors-mypy/compare/v0.961...v0.971 )
2022-07-25 23:42:59 +00:00
Anthony Sottile
e8f9eb369a
Merge pull request #1618 from PyCQA/actually-ignore-home-flake8
...
ignore config files in the home directory
2022-07-13 16:47:36 -04:00
Anthony Sottile
14a91d995c
ignore config files in the home directory
2022-07-13 15:40:40 -04:00
Anthony Sottile
fb439e1545
Merge pull request #1615 from PyCQA/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-07-11 19:30:36 -04:00