Commit graph

2473 commits

Author SHA1 Message Date
Anthony Sottile
ce34111183
Merge pull request #1976 from PyCQA/document-f824
document F824
2025-03-31 10:08:31 -04:00
Anthony Sottile
3613896bd9 document F824 2025-03-31 10:05:31 -04:00
Anthony Sottile
16f5f28a38 Release 7.2.0 2025-03-29 16:17:35 -04:00
Anthony Sottile
ebad305769
Merge pull request #1974 from PyCQA/update-plugins
update versions of pycodestyle / pyflakes
2025-03-29 15:46:35 -04:00
Anthony Sottile
d56d569ce4 update versions of pycodestyle / pyflakes 2025-03-29 15:53:41 -04:00
Anthony Sottile
a7e8f6250c
Merge pull request #1973 from PyCQA/py39-plus
py39+
2025-03-29 15:38:33 -04:00
Anthony Sottile
9d55ccdb72 py39+ 2025-03-29 15:42:19 -04:00
Anthony Sottile
e492aeb385
Merge pull request #1967 from PyCQA/unnecessary-mocks
remove a few unnecessary mocks in test_checker_manager
2025-02-16 15:15:09 -05:00
Anthony Sottile
fa2ed7145c remove a few unnecessary mocks in test_checker_manager
noticed while implementing the --jobs limiter
2025-02-16 15:21:48 -05:00
Anthony Sottile
fffee8ba9d Release 7.1.2 2025-02-16 13:48:15 -05:00
Anthony Sottile
19001f77f3
Merge pull request #1966 from PyCQA/limit-procs-to-file-count
avoid starting unnecessary processes when file count is limited
2025-02-16 13:35:04 -05:00
Anthony Sottile
f35737a32d avoid starting unnecessary processes when file count is limited 2025-02-16 13:29:05 -05:00
Anthony Sottile
cf1542cefa Release 7.1.1 2024-08-04 16:31:56 -04:00
Anthony Sottile
939ea3d8d9
Merge pull request #1949 from stephenfin/issue-1948
Handle escaped braces in f-strings
2024-08-04 15:56:53 -04:00
Stephen Finucane
bdcd5c2c0a Handle escaped braces in f-strings
To use a curly brace in an f-string, you must escape it. For example:

  >>> k = 1
  >>> f'{{{k}'
  '{1'

Saving this as a script and running the 'tokenize' module highlights
something odd around the counting of tokens:

  ❯ python -m tokenize wow.py
  0,0-0,0:            ENCODING       'utf-8'
  1,0-1,1:            NAME           'k'
  1,2-1,3:            OP             '='
  1,4-1,5:            NUMBER         '1'
  1,5-1,6:            NEWLINE        '\n'
  2,0-2,2:            FSTRING_START  "f'"
  2,2-2,3:            FSTRING_MIDDLE '{'     # <-- here...
  2,4-2,5:            OP             '{'     # <-- and here
  2,5-2,6:            NAME           'k'
  2,6-2,7:            OP             '}'
  2,7-2,8:            FSTRING_END    "'"
  2,8-2,9:            NEWLINE        '\n'
  3,0-3,0:            ENDMARKER      ''

The FSTRING_MIDDLE character we have is the escaped/post-parse single
curly brace rather than the raw double curly brace, however, while our
end index of this token accounts for the parsed form, the start index of
the next token does not (put another way, it jumps from 3 -> 4). This
triggers some existing, unrelated code that we need to bypass. Do just
that.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #1948
2024-08-04 15:54:22 -04:00
Ian Stapleton Cordasco
2a811cc4d2
Merge pull request #1946 from Viicos/patch-1
Fix wording of plugins documentation
2024-07-23 14:53:49 -05:00
Victorien
10314ad9e5
Fix wording of plugins documentation 2024-07-23 13:39:49 +02:00
Anthony Sottile
65a38c42a7 Release 7.1.0 2024-06-15 17:36:14 -04:00
Anthony Sottile
34c97e046a
Merge pull request #1939 from PyCQA/new-pycodestyle
latest pycodestyle
2024-06-15 17:32:56 -04:00
Anthony Sottile
defd315175 latest pycodestyle 2024-06-15 17:30:39 -04:00
Ian Stapleton Cordasco
408d4d695c
Merge pull request #1930 from mzagol/patch-1
Add --extend-exclude to the TOC
2024-04-15 16:41:33 -05:00
mzagol
866ad729c6
Add --extend-exclude to the TOC 2024-04-15 15:52:25 -05:00
Ian Stapleton Cordasco
33e508307a
Merge pull request #1923 from Viicos/entry-points-docs
Update documentation regarding entry points
2024-03-19 06:19:50 -05:00
Ian Stapleton Cordasco
6659b213c9
Fix toctree ordering in index
Also fix line-length issue in PR
2024-03-18 11:01:42 -05:00
Viicos
ba0f56610a
Use explicit external references 2024-03-18 11:01:35 -05:00
Viicos
350f2545fd Use explicit external references 2024-03-17 20:03:19 +01:00
Viicos
49f52a8598 Update documentation regarding entry points
Refer to the PyPA packaging guide
Replace references to the deprecated `pkg_resources` docs
2024-03-14 21:06:23 +01:00
Anthony Sottile
5c52d752e6
Merge pull request #1910 from PyCQA/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-01-08 17:40:02 -05:00
pre-commit-ci[bot]
a2b68c84e7
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0)
2024-01-08 21:35:25 +00:00
Ian Stapleton Cordasco
fb9a02aaf7
Merge pull request #1907 from mgorny/sphinx-prompt-1.8.0
update plugins for sphinx-prompt-1.8.0
2024-01-05 08:01:23 -06:00
Michał Górny
26d3184ae2 update plugins for sphinx-prompt-1.8.0
The sphinx-prompt plugin has renamed its package in 1.8.0 from erraneous
`sphinx-prompt` name to `sphinx_prompt`.  Adjust the conf accordingly.
2024-01-05 12:15:40 +01:00
Anthony Sottile
88a4f9b2f4 Release 7.0.0 2024-01-04 19:41:07 -05:00
Anthony Sottile
6f3a60dd46
Merge pull request #1906 from PyCQA/upgrade-pyflakes
upgrade pyflakes to 3.2.x
2024-01-04 19:38:07 -05:00
Anthony Sottile
cde8570df3 upgrade pyflakes to 3.2.x 2024-01-04 19:36:48 -05:00
Ian Stapleton Cordasco
2ab9d76639
Merge pull request #1903 from PyCQA/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-12-25 19:52:32 -06:00
pre-commit-ci[bot]
e27611f1ea
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 23.12.0 → 23.12.1](https://github.com/psf/black/compare/23.12.0...23.12.1)
- [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.8.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.1...v1.8.0)
2023-12-25 21:35:51 +00:00
Ian Stapleton Cordasco
9d20be1d1f
Merge pull request #1902 from PyCQA/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-12-20 07:01:01 -06:00
pre-commit-ci[bot]
06c1503842 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-12-20 12:54:27 +00:00
Ian Stapleton Cordasco
b67ce03a4a
Fix bugbear lints 2023-12-20 06:54:05 -06:00
pre-commit-ci[bot]
c8801c129a
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 23.11.0 → 23.12.0](https://github.com/psf/black/compare/23.11.0...23.12.0)
2023-12-18 21:54:28 +00:00
Ian Stapleton Cordasco
045f297f89
Merge pull request #1893 from PyCQA/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-11-27 16:46:49 -06:00
pre-commit-ci[bot]
7e1c87554d
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-mypy: v1.7.0 → v1.7.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.0...v1.7.1)
2023-11-27 21:09:51 +00:00
Ian Stapleton Cordasco
26e09775a8
Merge pull request #1829 from abdulfataiaka/patch-1
Update invocation.rst file
2023-11-26 14:02:17 -06:00
Ian Stapleton Cordasco
018b0c7f2a
Merge pull request #1888 from PyCQA/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-11-13 17:52:14 -06:00
pre-commit-ci[bot]
d1b1ec73be
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 23.10.1 → 23.11.0](https://github.com/psf/black/compare/23.10.1...23.11.0)
- [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.1...v1.7.0)
2023-11-13 21:55:32 +00:00
Anthony Sottile
34cbf8ef39
Merge pull request #1883 from PyCQA/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-10-23 17:47:31 -04:00
pre-commit-ci[bot]
61d6ca224d
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 23.9.1 → 23.10.1](https://github.com/psf/black/compare/23.9.1...23.10.1)
- [github.com/pre-commit/mirrors-mypy: v1.6.0 → v1.6.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.0...v1.6.1)
2023-10-23 21:45:49 +00:00
Ian Stapleton Cordasco
0474b88cfe
Merge pull request #1880 from PyCQA/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-10-16 20:02:22 -05:00
pre-commit-ci[bot]
8bdec0b54e
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.6.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.1...v1.6.0)
2023-10-16 21:14:00 +00:00
Anthony Sottile
b15cabc0f5
Merge pull request #1879 from PyCQA/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-10-09 18:13:52 -04:00