Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from psf:main #34

Open
wants to merge 417 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
417 commits
Select commit Hold shift + click to select a range
4e93f2a
Add classifier for 3.12 (#3866)
hauntsaninja Sep 9, 2023
add161b
Bump RTD Python version from 3.8 to 3.11 (#3868)
ichard26 Sep 9, 2023
4eebfd1
Add mypyc test marks to new tests that patch (#3871)
hauntsaninja Sep 10, 2023
c83ad6c
Upgrade to Furo 2023.9.10 to fix docs build (#3873)
hugovk Sep 10, 2023
0b62b9c
Ignore aiohttp DeprecationWarning for 3.12 (#3876)
JelleZijlstra Sep 10, 2023
f791745
Re-export black.Mode (#3875)
JelleZijlstra Sep 10, 2023
751583a
Pickle raw tuples in FileData cache (#3877)
JelleZijlstra Sep 10, 2023
62dca32
mypyc builds on PRs, skip mypyc wheels for 3.12 (#3870)
hauntsaninja Sep 10, 2023
e877371
Prepare release 23.9.1 (#3878)
JelleZijlstra Sep 11, 2023
213cb65
Bump actions/checkout from 3 to 4 (#3883)
dependabot[bot] Sep 11, 2023
e73662c
Fix broken url in editors.md (#3885)
AlinderS Sep 11, 2023
b2f03f9
Bump sphinx from 7.2.3 to 7.2.5 in /docs (#3882)
dependabot[bot] Sep 11, 2023
14f60c8
Bump docutils from 0.19 to 0.20.1 in /docs (#3699)
dependabot[bot] Sep 11, 2023
004fb79
mypyc build improvements (#3881)
hauntsaninja Sep 11, 2023
e9356c1
Document disabling E704 (#3888)
hauntsaninja Sep 13, 2023
5a0615a
Bump sphinx from 7.2.5 to 7.2.6 in /docs (#3895)
dependabot[bot] Sep 18, 2023
34ed4cf
Bump docker/build-push-action from 4 to 5 (#3894)
dependabot[bot] Sep 18, 2023
ab92daf
Bump docker/login-action from 2 to 3 (#3891)
dependabot[bot] Sep 18, 2023
edf66ba
Bump docker/setup-buildx-action from 2 to 3 (#3892)
dependabot[bot] Sep 18, 2023
f5990e8
Bump docker/setup-qemu-action from 2 to 3 (#3890)
dependabot[bot] Sep 18, 2023
7316a79
Bump actions/checkout from 3 to 4 (#3893)
dependabot[bot] Sep 18, 2023
e974fc3
Remove outdated mentions of runtime support of Python 3.7 (#3896)
eerovaher Sep 18, 2023
8c5d96f
fix indentation of line breaks in long type hints by adding parens (#…
jakkdl Sep 22, 2023
5f6ea5f
added the py311 to target-version config (#3898)
iamibi Sep 24, 2023
3dcacdd
Bump pypa/cibuildwheel from 2.15.0 to 2.16.0 (#3901)
dependabot[bot] Sep 25, 2023
9b82120
add support for printing the diff of AST trees when running tests (#3…
jakkdl Sep 28, 2023
e7c3368
Try newer clang in diff-shades job (#3904)
JelleZijlstra Sep 28, 2023
a91eb73
Fix comments getting removed from inside parenthesized strings (#3909)
spagh-eddie Oct 1, 2023
f99ef6e
Fix up changelog (#3910)
hauntsaninja Oct 1, 2023
1b08cbc
Bump pypa/cibuildwheel from 2.16.0 to 2.16.1 (#3911)
dependabot[bot] Oct 2, 2023
9e9fdce
docs: use LSP for SublimeText 4 (#3913)
Shreya-7 Oct 2, 2023
947bd38
[pre-commit.ci] pre-commit autoupdate (#3915)
pre-commit-ci[bot] Oct 3, 2023
36078bc
respect magic trailing commas in return types (#3916)
jakkdl Oct 4, 2023
6c88e8e
Update link to VS Code formatting instructions (#3921)
jake-anto Oct 6, 2023
27c05e1
exclude tests/data/.* from mypy (#3917)
jakkdl Oct 6, 2023
3a2d76c
Remove `$`, `>>>` and other prompt prefixes when code copied from the…
david-lev Oct 6, 2023
3457ec4
Update output display to job summary (#3914)
csalerno-asml Oct 6, 2023
738c278
Set Docker to use 3.11 for now (#3927)
cooperlees Oct 6, 2023
a8f68f5
Bump pypa/cibuildwheel from 2.16.1 to 2.16.2 (#3934)
dependabot[bot] Oct 9, 2023
715f60c
Drop support for parsing Python 2 (#3933)
hauntsaninja Oct 9, 2023
a69bda3
Use inline flags for test cases (#3931)
JelleZijlstra Oct 10, 2023
5d5bf6e
Fix cache versioning when BLACK_CACHE_DIR is set (#3937)
hauntsaninja Oct 10, 2023
7aa37ea
Report all stacktraces in verbose mode (#3938)
hauntsaninja Oct 10, 2023
b7717c3
Standardise newlines after module-level docstrings (#3932)
DanielNoord Oct 10, 2023
935f303
Fix test that was not being run (#3939)
JelleZijlstra Oct 10, 2023
3bb9214
CI Test: Deprecating 'Healthcheck.all()' from Hypothesis in fuzz.py (…
rdrll Oct 16, 2023
6f84f65
Migrate mypy config to pyproject.toml (#3936)
acharles7 Oct 16, 2023
1648ac5
Fix long lines with power operator(s) getting splitted before line le…
henriholopainen Oct 16, 2023
abe57e3
Treat raw strings like other docstrings (#3947)
JelleZijlstra Oct 16, 2023
722735d
Fix grammar for type alias support (#3949)
JelleZijlstra Oct 16, 2023
bb58807
Fix parser bug where "type" was misinterpreted as a keyword inside a …
JelleZijlstra Oct 17, 2023
9edba85
Prepare release 23.10.0 (#3951)
JelleZijlstra Oct 17, 2023
882d879
Fix merging implicit multiline strings that have inline comments (#3956)
henriholopainen Oct 20, 2023
0a37888
Fix typos in CHANGES.md (#3963)
AniketP04 Oct 22, 2023
2db5ab0
Allow empty line after block open before a comment or compound statem…
henriholopainen Oct 23, 2023
7f1c578
Bump peter-evans/create-or-update-comment from 3.0.2 to 3.1.0 (#3966)
dependabot[bot] Oct 23, 2023
d291c23
Move Docker image to hatch + compile (#3965)
cooperlees Oct 23, 2023
a7643fa
Add summary parameter to action (#3958)
dariocurr Oct 23, 2023
c0adca3
docs: specifies the use of the .git-blame-ignore-revs file (#3961)
williamjmorenor Oct 23, 2023
8de4be5
Fix CI failing (#3957)
kiyoon Oct 23, 2023
744d23b
Prepare release 23.10.1 (#3969)
cooperlees Oct 23, 2023
ef1048d
Add Unreleased template to CHANGES.md (#3973)
cooperlees Oct 24, 2023
1d4c31a
[925] Improve multiline dictionary and list indentation for sole func…
henriholopainen Oct 25, 2023
878937b
[2213] Add support for single line format skip with other comments on…
henriholopainen Oct 25, 2023
f7174bf
Fix typo in future_style.md (#3979)
eltociear Oct 26, 2023
de701fe
Fix CI by running on Python 3.11 (#3984)
hauntsaninja Oct 27, 2023
7bfa35c
docs: fix typos in change log and documentations (#3985)
shresthasurav Oct 27, 2023
c369e44
Fix matching of absolute paths in `--include` (#3976)
sth Oct 27, 2023
caef196
Update current_style.md (#3990)
Gabriel-p Oct 27, 2023
c712d57
Add trailing comma test case for hugging parens (#3991)
hauntsaninja Oct 27, 2023
53c4278
Update CHANGES.md (#3988)
Spyrosigma Oct 27, 2023
7686989
confine pre-commit to stages (#3940)
davidculley Oct 27, 2023
9a90fa2
Fix typo in README.md (#3995)
Shivam250702 Oct 28, 2023
5edd993
Regression test for match variable inside match (#3993)
JelleZijlstra Oct 28, 2023
5515a5a
Update README.md (#3997)
aditya7302 Oct 29, 2023
f7cbe4a
Add release tool (#3974)
cooperlees Oct 29, 2023
ddfecf0
Hug parens also with multiline unpacking (#3992)
henriholopainen Oct 30, 2023
e501103
Produce equivalent code for docstrings containing backslash followed …
henriholopainen Oct 31, 2023
5758da6
Fix bytes strings being treated as docstrings (#4003)
JelleZijlstra Nov 1, 2023
e2f2bd0
Minor refactoring in get_sources and gen_python_files (#4013)
hauntsaninja Nov 1, 2023
c54c213
Fix crash on await (a ** b) (#3994)
JelleZijlstra Nov 3, 2023
4483246
Enable branch coverage (#4022)
bluetech Nov 4, 2023
9e3daa1
Fix arm wheels on macOS (#4017)
hauntsaninja Nov 6, 2023
e808e61
Preview: Keep requiring two empty lines between module-level docstrin…
yilei Nov 6, 2023
ecbd9e8
Fix crash with f-string docstrings (#4019)
hauntsaninja Nov 7, 2023
46be1f8
Support formatting specified lines (#4020)
yilei Nov 7, 2023
50ed622
Fix long case blocks not split into multiple lines (#4024)
rdrll Nov 7, 2023
66008fd
[563] Fix standalone comments inside complex blocks crashing Black (#…
henriholopainen Nov 7, 2023
2e4fac9
Apply force exclude logic before symlink resolution (#4015)
hauntsaninja Nov 7, 2023
f4c7be5
docs: fix minor typo (#4030)
Ab2nour Nov 7, 2023
1a7d9c2
Preserve visible quote types for f-string debug expressions (#4005)
henriholopainen Nov 8, 2023
72e7a2e
Remove redundant condition from `has_magic_trailing_comma` (#4023)
bluetech Nov 8, 2023
2a1c67e
Prepare release 23.11.0 (#4032)
JelleZijlstra Nov 8, 2023
58f31a7
Add new release template
JelleZijlstra Nov 8, 2023
1b6b0bf
Improve annotations for `black.concurrency.cancel` (#4047)
AlexWaygood Nov 17, 2023
5773d5c
Document target version inference (#4048)
RedGuy12 Nov 17, 2023
85b1c71
Block aiohttp==3.9.0 from being installed in CI on Windows/pypy (#4051)
AlexWaygood Nov 18, 2023
c4cd200
Make flake8 pass when run with Python 3.12 (#4050)
AlexWaygood Nov 18, 2023
d93a942
Upgrade mypy to 1.6.1 (#4049)
AlexWaygood Nov 18, 2023
11da02d
Handle more huggable immediately nested parens/brackets. (#4012)
yilei Nov 18, 2023
80a166f
Make black[d] install + test run with 3.12 (#4035)
cooperlees Nov 18, 2023
96faa3b
[docker] Build with 3.12 image (#4055)
cooperlees Nov 19, 2023
f23b845
[ci] Move 'lint' to 3.12 (#4053)
cooperlees Nov 19, 2023
30c6bb3
[docker ci] Split up amd64 (x86_64) and arm64 builds (#4054)
cooperlees Nov 19, 2023
ec4a152
[docker ci] Revert "parallel" builds in seperate actions (#4057)
cooperlees Nov 19, 2023
89e28ea
Permit standalone form feed characters at the module level (#4021)
tungol Nov 21, 2023
a806298
Disable the stability check with --line-ranges for now. (#4034)
yilei Nov 21, 2023
be336bb
Run lint job on Ubuntu only (#4061)
JelleZijlstra Nov 21, 2023
fb5e5d2
Prefer more equal signs before a break when splitting chained assignm…
henriholopainen Nov 23, 2023
69d49c5
Bump mypy to 1.7.1 (#4069)
AlexWaygood Nov 24, 2023
a0e270d
Build mypycified wheels for Python 3.12 (#4070)
AlexWaygood Nov 24, 2023
66ec056
Fix minor typos in docstrings (#4085)
exag Dec 4, 2023
3416b2c
Fix: --line-ranges dedents a # fmt: off in the middle of a decorator…
riyaz489 Dec 4, 2023
50d5756
fix crash in preview mode with --line-length=1 (#4086)
jakkdl Dec 5, 2023
e4ae213
test preview cases with line-length 1 unless explicitly skipped (#4087)
jakkdl Dec 6, 2023
50e287c
docs: Clarify include/exclude documentation (#4072)
RedGuy12 Dec 7, 2023
432d905
docs: Unify option descriptions between `--help` and `the_basics.md` …
RedGuy12 Dec 7, 2023
e7e122e
docs: Move `fmt: off` docs (#4090)
RedGuy12 Dec 10, 2023
61b529b
Allow empty lines at beginning of blocks (again) (#4060)
JelleZijlstra Dec 10, 2023
ce28be2
Add dedicated preview feature for East Asian Width (#4097)
JelleZijlstra Dec 10, 2023
67b23d7
Bump actions/setup-python from 4 to 5 (#4101)
dependabot[bot] Dec 11, 2023
9aea976
Only use dummy implementation logic for functions and classes (#4066)
JelleZijlstra Dec 11, 2023
0c98999
Fix path in test message (#4102)
JelleZijlstra Dec 11, 2023
eb7661f
Fix another case where we format dummy implementation for non-functio…
JelleZijlstra Dec 11, 2023
ebd543c
Fix feature detection for parenthesized context managers (#4104)
JelleZijlstra Dec 12, 2023
d9ad09a
Prepare release 23.12.0 (#4105)
JelleZijlstra Dec 12, 2023
35ce37d
Add new changelog template
JelleZijlstra Dec 12, 2023
8fec1c3
Adds paren to deps for hidden extra constraint (#4108)
BryceStevenWilley Dec 14, 2023
ec91a2b
Prepare release 23.12.1 (#4124)
cooperlees Dec 22, 2023
1b831f2
Add new changelog template (#4125)
cooperlees Dec 22, 2023
5178614
Fix nits, chain comparisons, unused params, hyphens (#4114)
Anupya Dec 28, 2023
c80685f
Treat walruses like other binary operators in subscripts (#4109)
RedGuy12 Dec 28, 2023
bf6cabc
Do not round cache mtimes (#4128)
hauntsaninja Dec 28, 2023
db9c592
Unify docstring detection (#4095)
JelleZijlstra Dec 28, 2023
c359246
[pre-commit.ci] pre-commit autoupdate (#4139)
pre-commit-ci[bot] Jan 1, 2024
fe33761
Allow empty lines at beginnings of more blocks (#4130)
hauntsaninja Jan 1, 2024
b9ad4da
Revert "confine pre-commit to stages (#3940)" (#4137)
hauntsaninja Jan 2, 2024
8e0a9de
Remove empty lines before docstrings in async functions (#4132)
hauntsaninja Jan 2, 2024
2691902
Clean up dead code in magic trailing comma logic (#4131)
hauntsaninja Jan 2, 2024
4ceed0b
Remove is_function_or_class helper footgun (#4133)
hauntsaninja Jan 2, 2024
b1d17ef
Fix comment handling when parenthesising conditional expressions (#4134)
hauntsaninja Jan 2, 2024
e11eaf2
Make `blank_line_after_nested_stub_class` work for methods (#4141)
hauntsaninja Jan 2, 2024
b7c3a9f
Docs: Add note on `--exclude` about possibly verbose regex (#4145)
Dragorn421 Jan 11, 2024
9a331d6
fix: Don't allow unparenthesizing walruses (#4155)
RedGuy12 Jan 17, 2024
7f60f3d
Update using_black_with_other_tools.md to ensure flake8 configuration…
kevin-paulson-mindbridge-ai Jan 19, 2024
995e4ad
Fix unnecessary nesting when wrapping long dict (#4135)
hauntsaninja Jan 20, 2024
6f3fb78
Bump actions/cache from 3 to 4 (#4162)
dependabot[bot] Jan 22, 2024
8fe602b
fix pathlib exception handling with symlinks (#4161)
dankrzeminski32 Jan 22, 2024
59b9d85
Create the 2024 stable style (#4106)
JelleZijlstra Jan 25, 2024
a5196e6
fix: Don't normalize whitespace before fmt:skip comments (#4146)
RedGuy12 Jan 25, 2024
f7d552d
Remove reference (#4169)
hauntsaninja Jan 25, 2024
17f7f29
Simplify code in lines.py (#4167)
hauntsaninja Jan 25, 2024
7d78946
Describe 2024 module docstring more accurately (#4168)
hauntsaninja Jan 26, 2024
bccec8a
Show warning on invalid toml configuration (#4165)
dankrzeminski32 Jan 26, 2024
4f47cac
Add --unstable flag (#4096)
JelleZijlstra Jan 26, 2024
0e6e46b
Prepare release 24.1.0 (#4170)
JelleZijlstra Jan 26, 2024
659c29a
New changelog
JelleZijlstra Jan 26, 2024
ed770ba
Fix cache file length (#4176)
JelleZijlstra Jan 26, 2024
1607e9a
Fix missing space in option description (#4182)
JelleZijlstra Jan 27, 2024
8bf0454
Consistently add trailing comma on typed parameters (#4164)
RedGuy12 Jan 27, 2024
79fc115
chore: ignore node_modules (produced by a pre-commit check) (#4184)
henryiii Jan 28, 2024
e026c93
Prepare release 24.1.1 (#4186)
JelleZijlstra Jan 28, 2024
0b4364b
Add new release template
JelleZijlstra Jan 28, 2024
d919746
Swallow warnings when performing AST checks (#4189)
hauntsaninja Jan 28, 2024
177e306
Bump pypa/cibuildwheel from 2.16.2 to 2.16.4 (#4191)
dependabot[bot] Jan 29, 2024
2bc5ce8
feat: add schema and validate-pyproject support (#4181)
henryiii Jan 29, 2024
8912a33
Bump peter-evans/create-or-update-comment from 3.1.0 to 4.0.0 (#4192)
dependabot[bot] Jan 29, 2024
d6e11ca
Bump peter-evans/find-comment from 2.4.0 to 3.0.0 (#4190)
dependabot[bot] Jan 29, 2024
cca3c0f
Test that preview/unstable features are documented (#4187)
JelleZijlstra Jan 31, 2024
24c9c01
fix: minor issue with schemastore part of script (#4195)
henryiii Feb 1, 2024
2623269
Ignore pyproject.toml missing tool.black section (#4204)
hauntsaninja Feb 2, 2024
9728b8e
Move hug_parens_with_braces_and_square_brackets into the unstable sty…
JelleZijlstra Feb 2, 2024
632f44b
docs: Refactor pycodestyle/Flake8 compatibility docs (#4194)
RedGuy12 Feb 2, 2024
a08b480
Bump pypa/cibuildwheel from 2.16.4 to 2.16.5 (#4212)
dependabot[bot] Feb 5, 2024
3e80de3
Bump furo from 2023.9.10 to 2024.1.29 in /docs (#4211)
dependabot[bot] Feb 5, 2024
7edb50f
fix: additional newline added to docstring when the previous line len…
veryslowcode Feb 5, 2024
32230e6
fix: bug where the doublestar operation had inconsistent formatting. …
wannieman98 Feb 5, 2024
dab37a6
Remove redundant parentheses in `case` statement `if` guards (#4214)
dosisod Feb 7, 2024
a201003
Simplify check for symlinks that resolve outside root (#4221)
hauntsaninja Feb 11, 2024
23dfc5b
Fix ignoring input files for symlink reasons (#4222)
hauntsaninja Feb 12, 2024
35e9776
Bump pre-commit/action from 3.0.0 to 3.0.1 (#4225)
dependabot[bot] Feb 12, 2024
8af4394
fix: Don't remove comments along with parens (#4218)
RedGuy12 Feb 12, 2024
6fdf8a4
Prepare release 24.2.0 (#4226)
hauntsaninja Feb 12, 2024
d1d4fc5
Add new release template (#4228)
hauntsaninja Feb 12, 2024
ea66d40
Update empty line documentation (#4239)
hauntsaninja Feb 26, 2024
8990023
Remove usage of `pkg_resources` in `docs/conf.py` (#4251)
Viicos Feb 26, 2024
0f18001
chore: Refactor `delimiter_split()` (#4257)
RedGuy12 Feb 28, 2024
d0287e1
Make trailing comma logic more concise (#4202)
RedGuy12 Feb 28, 2024
e4bfedb
fix: Don't move comments while splitting delimiters (#4248)
RedGuy12 Mar 1, 2024
f03ee11
Ensure `blib2to3.pygram` is initialized before use (#4224)
Zac-HD Mar 3, 2024
6af7d11
Fix AST safety check false negative (#4270)
JelleZijlstra Mar 10, 2024
e5510af
update plugin url for Thonny (#4259)
Charpy Mar 13, 2024
719e674
Fix 4227: Improve documentation for --quiet --check (#4236)
dankrzeminski32 Mar 13, 2024
1abcffc
Use regex where we ignore case on windows (#4252)
KaiSforza Mar 13, 2024
7b5a657
Fix --line-ranges behavior when ranges are at EOF (#4273)
sumezulike Mar 15, 2024
f000936
Fix catastrophic performance in lines_with_leading_tabs_expanded() (#…
JelleZijlstra Mar 15, 2024
552baf8
Prepare release 24.3.0 (#4279)
JelleZijlstra Mar 15, 2024
8332a75
Add new change template
JelleZijlstra Mar 15, 2024
f78b157
Fix formatting for `if` clauses in `match-case` blocks (#4269)
rdrll Mar 16, 2024
97993f9
Bump pypa/cibuildwheel from 2.16.5 to 2.17.0 (#4283)
dependabot[bot] Mar 18, 2024
bf11956
Fix two logging calls in the test helper (#4286)
yilei Mar 20, 2024
c9d2635
Remove mocking from tests (#4287)
hauntsaninja Mar 21, 2024
13bd092
fix: Stop moving multiline strings to a new line unless inside bracke…
RedGuy12 Mar 23, 2024
836acad
Improve AST safety check (#4290)
hauntsaninja Mar 23, 2024
c8f1a55
[pre-commit.ci] pre-commit autoupdate (#4297)
pre-commit-ci[bot] Apr 1, 2024
3383f53
GitHub Action: Allow reading version from pyproject.toml (#4294)
srittau Apr 5, 2024
07fe1ca
docs: remove repetitive word (#4303)
alwayshang Apr 7, 2024
6b25e7c
Bump peter-evans/find-comment from 3.0.0 to 3.1.0 (#4304)
dependabot[bot] Apr 8, 2024
8fe6270
Prepare release 24.4.0 (#4307)
hauntsaninja Apr 12, 2024
66e2b11
Add new change template (#4308)
hauntsaninja Apr 12, 2024
9dc9114
Mention pipx installation
sharsha315 Apr 14, 2024
735733b
Use uv in docs build (#4310)
hauntsaninja Apr 14, 2024
7669381
Pin to old flake8-bugbear (#4319)
hauntsaninja Apr 22, 2024
7134754
Remove node-specific logic from visit_default (#4321)
hauntsaninja Apr 22, 2024
944b99a
Bump sphinx from 7.2.6 to 7.3.7 in /docs (#4322)
dependabot[bot] Apr 22, 2024
551ede2
Add PEP 701 support (#3822)
tusharsadhwani Apr 22, 2024
f4b644b
Prevent wrapping of multiline fstrings in parens (#4325)
tusharsadhwani Apr 23, 2024
1354be2
Add support to style function definitions with newlines before functi…
peterkra25 Apr 24, 2024
12ce3db
Move changelog entry to right section (#4326)
hauntsaninja Apr 24, 2024
2f88085
Github Action: Directly install from repo if `export-subst` is skippe…
EarlMilktea Apr 24, 2024
3f0f8f1
Support PEP 696 (#4327)
JelleZijlstra Apr 24, 2024
e7fb048
Prepare release 24.4.1 (#4328)
JelleZijlstra Apr 24, 2024
5683242
New release template
JelleZijlstra Apr 25, 2024
ba88fc3
Simplify string tokenization regexes (#4331)
JelleZijlstra Apr 25, 2024
e4aaa8a
Fix incorrect f-string tokenization (#4332)
JelleZijlstra Apr 25, 2024
3702ba2
Prepare release 24.4.2 (#4335)
JelleZijlstra Apr 25, 2024
dbb956b
New changelog
JelleZijlstra Apr 26, 2024
455de77
Fix another f-string regression (#4339)
JelleZijlstra Apr 27, 2024
0c033f3
Upgrade some old syntax (#4338)
kloczek Apr 27, 2024
0ab0b75
Bump furo from 2024.1.29 to 2024.4.27 in /docs (#4340)
dependabot[bot] Apr 29, 2024
f2da85f
Bump myst-parser from 2.0.0 to 3.0.1 in /docs (#4341)
dependabot[bot] Apr 29, 2024
75eb557
packaging metadata: link to the docs, issue tracker (#4345)
mr-c May 3, 2024
f22b243
Convert PR numbers in docs/change_log to clickable links (#4346)
sumezulike May 4, 2024
c801cd6
Format docs/ and scripts/ in CI (#4348)
JelleZijlstra May 4, 2024
ccfb0db
Extend link detection to links outside parens (#4347)
JelleZijlstra May 4, 2024
f719258
Add caution to the playground mention (#4352)
JelleZijlstra May 7, 2024
3be19b3
docker: Install the compiled wheel then install extras dependencies (…
cooperlees May 10, 2024
c827551
Bump AndreMiras/coveralls-python-action from 8799c9f4443ac4201d2e2f2c…
dependabot[bot] May 13, 2024
4af12c4
Bump furo from 2024.4.27 to 2024.5.6 in /docs (#4358)
dependabot[bot] May 13, 2024
b9c6323
Bump pypa/cibuildwheel from 2.17.0 to 2.18.0 (#4360)
dependabot[bot] May 13, 2024
9c1fd46
Make sure Black doesn't crash when `fmt:off` is used before a closing…
yilei May 16, 2024
8447af4
Bump pypa/cibuildwheel from 2.18.0 to 2.18.1 (#4373)
dependabot[bot] Jun 1, 2024
b677a64
tokenizer: skip lines that are just slash and whitespace (#4343)
tusharsadhwani Jun 1, 2024
b1f7b9f
Bump docker/build-push-action from 5 to 6 (#4387)
dependabot[bot] Jun 25, 2024
978bc50
[pre-commit.ci] pre-commit autoupdate (#4392)
pre-commit-ci[bot] Jul 2, 2024
5e571cc
Fix use of deprecated ast.Str (#4393)
JelleZijlstra Jul 4, 2024
9ff047a
Fix wheel build by using newer manylinux image (#4394)
hauntsaninja Jul 4, 2024
1ad5263
Bump cibuildwheel to 2.19.2 (#4395)
hauntsaninja Jul 4, 2024
7e2afc9
Update `actions/checkout` to v4 to stop node deprecation warnings (#4…
SavageCore Jul 4, 2024
721dff5
fix: avoid formatting backslash strings inside f-strings (#4401)
tusharsadhwani Jul 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 0 additions & 9 deletions .coveragerc

This file was deleted.

4 changes: 2 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[flake8]
# B905 should be enabled when we drop support for 3.9
ignore = E203, E266, E501, W503, B905
ignore = E203, E266, E501, E701, E704, W503, B905, B907
# line length is intentionally set to 80 here because black uses Bugbear
# See https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length for more details
# See https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#bugbear for more details
max-line-length = 80
max-complexity = 18
select = B,C,E,F,W,T4,B9
4 changes: 4 additions & 0 deletions .git_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
ref-names: $Format:%D$
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git_archival.txt export-subst
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ current development version. To confirm this, you have three options:

1. Update Black's version if a newer release exists: `pip install -U black`
2. Use the online formatter at <https://black.vercel.app/?version=main>, which will use
the latest main branch.
the latest main branch. Note that the online formatter currently runs on
an older version of Python and may not support newer syntax, such as the
extended f-string syntax added in Python 3.12.
3. Or run _Black_ on your machine:
- create a new virtualenv (make sure it's the same Python version);
- clone this repository;
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/style_issue.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: Style issue
about: Help us improve the Black style
name: Code style issue
about: Help us improve the Black code style
title: ""
labels: "T: design"
labels: "T: style"
assignees: ""
---

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Grep CHANGES.md for PR number
if: contains(github.event.pull_request.labels.*.name, 'skip news') != true
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/diff_shades.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
matrix: ${{ steps.set-config.outputs.matrix }}

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "*"
python-version: "3.11"

- name: Install diff-shades and support dependencies
run: |
python -m pip install click packaging urllib3
python -m pip install 'click==8.1.3' packaging urllib3
python -m pip install https://github.com/ichard26/diff-shades/archive/stable.zip

- name: Calculate run configuration & metadata
Expand All @@ -44,35 +44,35 @@ jobs:
HATCH_BUILD_HOOKS_ENABLE: "1"
# Clang is less picky with the C code it's given than gcc (and may
# generate faster binaries too).
CC: clang-12
CC: clang-14
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.configure.outputs.matrix )}}

steps:
- name: Checkout this repository (full clone)
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# The baseline revision could be rather old so a full clone is ideal.
fetch-depth: 0

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "*"
python-version: "3.11"

- name: Install diff-shades and support dependencies
run: |
python -m pip install https://github.com/ichard26/diff-shades/archive/stable.zip
python -m pip install click packaging urllib3
python -m pip install 'click==8.1.3' packaging urllib3
# After checking out old revisions, this might not exist so we'll use a copy.
cat scripts/diff_shades_gha_helper.py > helper.py
git config user.name "diff-shades-gha"
git config user.email "diff-shades-gha@example.com"

- name: Attempt to use cached baseline analysis
id: baseline-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ matrix.baseline-analysis }}
key: ${{ matrix.baseline-cache-key }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/diff_shades_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "*"

Expand All @@ -33,15 +33,15 @@ jobs:
- name: Try to find pre-existing PR comment
if: steps.metadata.outputs.needs-comment == 'true'
id: find-comment
uses: peter-evans/find-comment@f4499a714d59013c74a08789b48abe4b704364a0
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e
with:
issue-number: ${{ steps.metadata.outputs.pr-number }}
comment-author: "github-actions[bot]"
body-includes: "diff-shades"

- name: Create or update PR comment
if: steps.metadata.outputs.needs-comment == 'true'
uses: peter-evans/create-or-update-comment@5adcb0bb0f9fb3f95ef05400558bdb3f329ee808
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
with:
comment-id: ${{ steps.find-comment.outputs.comment-id }}
issue-number: ${{ steps.metadata.outputs.pr-number }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ jobs:

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up latest Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "*"

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e ".[d]"
python -m pip install -r "docs/requirements.txt"
python -m pip install uv
python -m uv pip install --system -e ".[d]"
python -m uv pip install --system -r "docs/requirements.txt"

- name: Build documentation
run: sphinx-build -a -b html -W --keep-going docs/ docs/_build
27 changes: 20 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -36,21 +36,34 @@ jobs:
latest_non_release)" >> $GITHUB_ENV

- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: pyfound/black:latest,pyfound/black:${{ env.GIT_TAG }}

- name: Build and push latest_release tag
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
uses: docker/build-push-action@v3
if:
${{ github.event_name == 'release' && github.event.action == 'published' &&
!github.event.release.prerelease }}
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: pyfound/black:latest_release

- name: Build and push latest_prerelease tag
if:
${{ github.event_name == 'release' && github.event.action == 'published' &&
github.event.release.prerelease }}
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: pyfound/black:latest_prerelease

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
6 changes: 3 additions & 3 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
22 changes: 17 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: Lint + format ourselves

on: [push, pull_request]

Expand All @@ -14,22 +14,34 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Assert PR target is main
if: github.event_name == 'pull_request' && github.repository == 'psf/black'
run: |
if [ "$GITHUB_BASE_REF" != "main" ]; then
echo "::error::PR targeting '$GITHUB_BASE_REF', please refile targeting 'main'." && exit 1
fi

- name: Set up latest Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "*"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e '.[d]'
python -m pip install -e '.'
python -m pip install tox

- name: Run pre-commit hooks
uses: pre-commit/action@v3.0.0
uses: pre-commit/action@v3.0.1

- name: Format ourselves
run: |
tox -e run_self

- name: Regenerate schema
run: |
tox -e generate_schema
git diff --exit-code
Loading