Jelle Zijlstra
acb8c7c09d
unused imports
2023-12-11 14:45:32 -08:00
Jelle Zijlstra
034fd94ec2
Merge branch 'main' into 241a1really
2023-12-11 14:42:16 -08:00
Jelle Zijlstra
eb7661f8ab
Fix another case where we format dummy implementation for non-functions/classes ( #4103 )
2023-12-11 14:41:41 -08:00
Jelle Zijlstra
0c9899956d
Fix path in test message ( #4102 )
2023-12-11 14:29:33 -08:00
Jelle Zijlstra
b073cbd37b
fix some more
2023-12-11 13:40:48 -08:00
Jelle Zijlstra
dc2d1046ee
Fix another dummy impl case
2023-12-11 13:39:36 -08:00
Jelle Zijlstra
c27daf6a8f
Update tests
2023-12-11 13:27:23 -08:00
Jelle Zijlstra
10f6449e3d
fix some tests
2023-12-11 13:24:35 -08:00
Jelle Zijlstra
6e8871b0ce
Fix the worst issues
2023-12-11 13:23:26 -08:00
Jelle Zijlstra
3fd83e08e7
Merge branch 'main' into 241a1really
2023-12-11 13:19:54 -08:00
Jelle Zijlstra
9aea9768cb
Only use dummy implementation logic for functions and classes ( #4066 )
...
Fixes #4063
2023-12-11 13:19:02 -08:00
dependabot[bot]
67b23d7185
Bump actions/setup-python from 4 to 5 ( #4101 )
2023-12-11 11:32:04 -08:00
Jelle Zijlstra
ce28be2705
Add dedicated preview feature for East Asian Width ( #4097 )
2023-12-09 21:14:25 -08:00
Jelle Zijlstra
be46470e55
Fix up merge
2023-12-09 19:37:47 -08:00
Jelle Zijlstra
37f8ed0a3f
Remove obsolete features
2023-12-09 19:36:35 -08:00
Jelle Zijlstra
337a85df22
Merge branch 'main' into 241a1really
2023-12-09 19:35:14 -08:00
Jelle Zijlstra
61b529b7d1
Allow empty lines at beginning of blocks (again) ( #4060 )
2023-12-09 18:29:09 -08:00
cobalt
e7e122e9ff
docs: Move fmt: off
docs ( #4090 )
2023-12-09 17:44:15 -08:00
cobalt
432d9050c3
docs: Unify option descriptions between --help
and the_basics.md
( #4076 )
2023-12-07 09:32:06 -08:00
cobalt
50e287cece
docs: Clarify include/exclude documentation ( #4072 )
2023-12-07 08:38:57 -08:00
John Litborn
e4ae213f06
test preview cases with line-length 1 unless explicitly skipped ( #4087 )
...
* Add new flag for tests, --no-preview-line-length-1, to be used for test cases known to not work in preview mode with line-length=1. Also split out the problematic cases in three cases to separate files. Removed now redundant file which explicitly tested preview annotations with line-length=1
* mode.preview -> preview_mode, mark pep_572_remove_parens as failing with ll1
2023-12-06 07:17:33 -08:00
John Litborn
50d5756e8e
fix crash in preview mode with --line-length=1 ( #4086 )
2023-12-05 10:19:24 -08:00
Riyazuddin Khan
3416b2c82d
Fix: --line-ranges dedents a # fmt: off in the middle of a decorator ( #4084 )
...
Fixes #4068
2023-12-04 10:10:03 -08:00
exag
66ec056e39
Fix minor typos in docstrings ( #4085 )
2023-12-03 21:47:30 -08:00
Alex Waygood
a0e270d0f2
Build mypycified wheels for Python 3.12 ( #4070 )
2023-11-24 10:05:59 -08:00
Alex Waygood
69d49c5a6f
Bump mypy to 1.7.1 ( #4069 )
2023-11-24 06:19:54 -08:00
Henri Holopainen
fb5e5d2be6
Prefer more equal signs before a break when splitting chained assignments ( #4010 )
...
Fixes #4007
2023-11-22 19:11:49 -08:00
Jelle Zijlstra
be336bb67f
Run lint job on Ubuntu only ( #4061 )
2023-11-20 22:33:16 -08:00
Jelle Zijlstra
bb31678201
Enable two more
2023-11-20 22:29:44 -08:00
Jelle Zijlstra
cc3780fd9f
Update some tests
2023-11-20 22:26:08 -08:00
Jelle Zijlstra
c71b5e23bd
more relatively noncontroversial features
2023-11-20 21:44:26 -08:00
Jelle Zijlstra
51bb901a8a
Many uncontroverisal preview changes
2023-11-20 21:24:26 -08:00
Jelle Zijlstra
129349ce66
update comments
2023-11-20 21:11:44 -08:00
Jelle Zijlstra
d753703005
reformat
2023-11-20 21:10:50 -08:00
Jelle Zijlstra
18e711f7b4
Allow empty lines at beginning of blocks (again)
2023-11-20 21:04:50 -08:00
Yilei Yang
a8062983cd
Disable the stability check with --line-ranges for now. ( #4034 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-11-20 20:45:39 -08:00
tungol
89e28ea66f
Permit standalone form feed characters at the module level ( #4021 )
...
Co-authored-by: Stephen Morton <git@tungol.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-11-20 20:44:33 -08:00
Cooper Lees
ec4a1525ee
[docker ci] Revert "parallel" builds in seperate actions ( #4057 )
...
- Broke tagging images together
- Saved only a few mins
- x86_64 build is fast, time is all spent on cross compile of arm64
- Also remove evil copy pasta ... which is nice
Was worth an attempt.
2023-11-19 11:28:00 -08:00
Cooper Lees
30c6bb3651
[docker ci] Split up amd64 (x86_64) and arm64 builds ( #4054 )
...
* [docker ci] Split up amd64 (x86_64) and arm64 builds
- Lets run them seperately to cut down total time
- Will also more clearly show if either arch has specific problems
- Kept amd64 (x86_64) using qemu actions so if GitHub ever offers arm64 boxes it could stay working too
Fixes #3971
* Add CHANGES entry
---------
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-11-19 10:44:00 -08:00
Cooper Lees
f23b845a29
[ci] Move 'lint' to 3.12 ( #4053 )
...
- Add to run on MacOS + Windows too
- Do not install [d] dependecies as blackd is not actually run / checked
- Move to default GitHub action version - which is 3.12 today
2023-11-18 18:11:50 -08:00
Cooper Lees
96faa3b469
[docker] Build with 3.12 image ( #4055 )
...
Test:
```
crl-m1:black cooper$ docker build --tag black_3_12 .
...
=> [stage-1 2/2] COPY --from=builder /opt/venv /opt/venv 0.2s
=> exporting to image 0.1s
=> => exporting layers 0.1s
=> => writing image sha256:bd66acc9d76d2c40d287b0684ce6601401631e0468204c4e6a81f8f1eebaf1dd 0.0s
=> => naming to docker.io/library/black_3_12
crl-m1:black cooper$ docker image ls | grep black_3_12
black_3_12 latest bd66acc9d76d 59 seconds ago 193MB
```
2023-11-18 18:09:47 -08:00
Cooper Lees
80a166f2e1
Make black[d] install + test run with 3.12 ( #4035 )
...
* Make black[d] install + test run with 3.12
- With aiohttp >= 3.9.0 we can now install all dependencies with 3.12
- Add actions to run 3.12
- Lint still needs to be 3.11
Test:
- `python3.12 -m venv /tmp/tb --upgrade-deps`
- `/tmp/tb/bin/pip install tox`
- `/tmp/tb/bin/pip install .[d]`
- `/tmp/tb/bin/tox -e py312`
```
py312: OK (37.61=setup[3.98]+cmd[3.83,0.36,19.54,6.46,3.00,0.44] seconds)
congratulations :) (37.63 seconds)
```
* Move to pypy-3.9
---------
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-11-18 12:09:55 -08:00
Yilei Yang
11da02da72
Handle more huggable immediately nested parens/brackets. ( #4012 )
...
Fixes #4011
2023-11-18 11:47:05 -08:00
Alex Waygood
d93a942a79
Upgrade mypy to 1.6.1 ( #4049 )
2023-11-18 11:42:36 -08:00
Alex Waygood
c4cd200a06
Make flake8 pass when run with Python 3.12 ( #4050 )
2023-11-18 11:41:46 -08:00
Alex Waygood
85b1c71a34
Block aiohttp==3.9.0 from being installed in CI on Windows/pypy ( #4051 )
2023-11-18 11:15:07 -08:00
cobalt
5773d5cd2b
Document target version inference ( #4048 )
2023-11-17 13:39:44 -08:00
Alex Waygood
1b6b0bfcac
Improve annotations for black.concurrency.cancel
( #4047 )
2023-11-17 07:57:00 -08:00
Jelle Zijlstra
58f31a70ef
Add new release template
2023-11-07 22:10:35 -08:00
Jelle Zijlstra
2a1c67e0b2
Prepare release 23.11.0 ( #4032 )
2023-11-07 20:44:46 -08:00