dependabot[bot]
cd02c2809b
Bump furo from 2023.3.27 to 2023.5.20 in /docs ( #3698 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-22 11:47:58 -04:00
Jason R. Coombs
eedfc38322
Avoid EncodingWarning in blib2to3 ( #3696 )
2023-05-19 10:00:29 -07:00
Jonathan Berthias
2fd9d8b339
Remove blank lines before class docstring ( #3692 )
2023-05-18 16:57:17 -07:00
Ray Bell
db3668a381
Sort DEFAULT_EXCLUDES and add .vscode, .pytest_cache and .ruff_cache ( #3691 )
...
Co-authored-by: Ray Bell <ray.bell@dtn.com>
2023-05-16 22:47:45 -04:00
dependabot[bot]
dc188f2060
Bump peter-evans/find-comment from 2.3.0 to 2.4.0 ( #3670 )
...
Bumps [peter-evans/find-comment](https://github.com/peter-evans/find-comment ) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/peter-evans/find-comment/releases )
- [Commits](034abe94d3...a54c31d7fa
)
---
updated-dependencies:
- dependency-name: peter-evans/find-comment
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cooper Lees <me@cooperlees.com>
2023-05-15 15:41:35 -07:00
Matthieu Simon
c97b9c55b4
[github action] display black result in job summary ( #3688 )
...
* send output to $GITHUB_STEP_SUMMARY
* update CHANGES.md
* update CHANGES.md with PR number
* implement PR feedback
* fix pre-commit issues (prettier/trailing whitespace)
2023-05-15 14:35:39 -07:00
dependabot[bot]
64887aab03
Bump peter-evans/create-or-update-comment from 2.1.1 to 3.0.1 ( #3683 )
...
Bumps [peter-evans/create-or-update-comment](https://github.com/peter-evans/create-or-update-comment ) from 2.1.1 to 3.0.1.
- [Release notes](https://github.com/peter-evans/create-or-update-comment/releases )
- [Commits](67dcc547d3...ca08ebd5dc
)
---
updated-dependencies:
- dependency-name: peter-evans/create-or-update-comment
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 06:36:24 -07:00
Jelle Zijlstra
eb32729ab5
blib2to3: add a few annotations ( #3675 )
2023-05-03 10:26:57 -07:00
Jelle Zijlstra
a07871b9cd
Fix new mypy error in blib2to3 ( #3674 )
...
See python/mypy#15174
2023-05-03 08:43:20 -07:00
Yilei "Dolee" Yang
e712e48e06
Do not wrap implicitly concatenated strings used as func args in parens ( #3640 )
2023-04-28 11:10:01 -07:00
dependabot[bot]
de65741b8d
Bump pypa/cibuildwheel from 2.12.1 to 2.12.3 ( #3657 )
...
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel ) from 2.12.1 to 2.12.3.
- [Release notes](https://github.com/pypa/cibuildwheel/releases )
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md )
- [Commits](https://github.com/pypa/cibuildwheel/compare/v2.12.1...v2.12.3 )
---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-24 04:46:34 -07:00
James Braza
4b76a54815
Document black-jupyter hook ( #3650 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-04-19 03:24:03 -07:00
dependabot[bot]
3da7339955
Bump sphinx-copybutton from 0.5.1 to 0.5.2 in /docs ( #3651 )
...
Bumps [sphinx-copybutton](https://github.com/executablebooks/sphinx-copybutton ) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/executablebooks/sphinx-copybutton/releases )
- [Changelog](https://github.com/executablebooks/sphinx-copybutton/blob/master/CHANGELOG.md )
- [Commits](https://github.com/executablebooks/sphinx-copybutton/compare/v0.5.1...v0.5.2 )
---
updated-dependencies:
- dependency-name: sphinx-copybutton
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-17 07:17:11 -07:00
Yilei "Dolee" Yang
02f81c6995
Fix two more mypyc issues with mypyc v1.2.0. ( #3648 )
2023-04-14 14:05:08 -07:00
Yilei "Dolee" Yang
f265ff5bcd
Explicitly annotate this with Final[str]
to make it work in mypyc 1.0.0+. ( #3645 )
2023-04-13 17:12:05 -07:00
Harutaka Kawamura
a552f7096a
Fix an example for 'Improved parentheses management' in the (future of the) Black code style ( #3635 )
2023-04-03 06:56:59 -07:00
dependabot[bot]
96ee2fef3d
Bump furo from 2023.3.23 to 2023.3.27 in /docs ( #3636 )
...
Bumps [furo](https://github.com/pradyunsg/furo ) from 2023.3.23 to 2023.3.27.
- [Release notes](https://github.com/pradyunsg/furo/releases )
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md )
- [Commits](https://github.com/pradyunsg/furo/compare/2023.03.23...2023.03.27 )
---
updated-dependencies:
- dependency-name: furo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 06:55:17 -07:00
Jelle Zijlstra
bf7a16254e
Fixup the changelog ( #3628 )
2023-03-28 17:53:23 -07:00
Jelle Zijlstra
9b2b048692
Prepare release 23.3.0 ( #3625 )
2023-03-28 17:46:04 -07:00
Ilia Lazarev
bf5abdb0b6
Specify Python exec path with minor version if available ( #3508 )
...
Fixes #3507
2023-03-27 21:12:24 -07:00
Jakub Kuczys
b542f589a5
Use GH action version when version argument not specified ( #3543 )
2023-03-27 18:40:27 -07:00
dependabot[bot]
f3b1a3b9d2
Bump furo from 2022.12.7 to 2023.3.23 in /docs ( #3624 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-27 07:15:43 -04:00
Hong Minhee (洪 民憙)
ef6e079901
Let string splitters respect East_Asian_Width
property ( #3445 )
...
This patch changes the preview style so that string splitters respect
Unicode East Asian Width[^1] property. If you are not familiar to CJK
languages it is not clear immediately. Let me elaborate with some
examples.
Traditionally, East Asian characters (including punctuation) have
taken up space twice than European letters and stops when they are
rendered in monospace typeset. Compare the following characters:
```
abcdefg.
글、字。
```
The characters at the first line are half-width, and the second line
are full-width. (Also note that the last character with a small
circle, the East Asian period, is also full-width.) Therefore, if we
want to prevent those full-width characters to exceed the maximum
columns per line, we need to count their *width* rather than the number
of characters. Again, the following characters:
```
글、字。
```
These are just 4 characters, but their total width is 8.
Suppose we want to maintain up to 4 columns per line with the following
text:
```
abcdefg.
글、字。
```
How should it be then? We want it to look like:
```
abcd
efg.
글、
字。
```
However, Black currently turns it into like this:
```
abcd
efg.
글、字。
```
It's because Black currently counts the number of characters in the line
instead of measuring their width. So, how could we measure the width?
How can we tell if a character is full- or half-width? What if half-width
characters and full-width ones are mixed in a line? That's why Unicode
defined an attribute named `East_Asian_Width`. Unicode grouped every
single character according to their width in fixed-width typeset.
This partially addresses #1197 , but only for string splitters. The other
parts need to be fixed as well in future patches.
This was implemented by copying rich's own approach to handling wide
characters: generate a table using wcwidth, check it into source
control, and use in to drive helper functions in Black's logic. This
gets us the best of both worlds: accuracy and performance (and let's us
update as per our stability policy too!).
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-03-19 19:09:57 -04:00
dependabot[bot]
5c064a986c
Bump sphinx from 5.3.0 to 6.1.3 in /docs ( #3499 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-19 19:00:14 -04:00
dependabot[bot]
3a9d6f0a5f
Bump myst-parser from 0.18.1 to 1.0.0 in /docs ( #3601 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Richard Si <sichard26@gmail.com>
2023-03-19 18:52:40 -04:00
Tushar Sadhwani
53c23e62df
Support files with type comment syntax errors ( #3594 )
2023-03-19 18:52:06 -04:00
Yilei "Dolee" Yang
dba3c2695c
Fix bug introduced in #3564 . ( #3615 )
2023-03-19 07:43:39 -07:00
WMOkiishi
d7a28dd786
Enforce a blank line after a nested class in stubs ( #3564 )
2023-03-18 14:04:13 -07:00
Mitch Negus
a3e8247a41
Update documentation regarding isort compatibility ( #3567 )
2023-03-18 13:30:02 -07:00
Jelle Zijlstra
c9efbf9d97
Add SECURITY.md ( #3612 )
2023-03-18 10:41:48 -07:00
dependabot[bot]
34a93a8d49
Bump peter-evans/create-or-update-comment from 2.1.0 to 2.1.1 ( #3548 )
...
Bumps [peter-evans/create-or-update-comment](https://github.com/peter-evans/create-or-update-comment ) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/peter-evans/create-or-update-comment/releases )
- [Commits](5adcb0bb0f...67dcc547d3
)
---
updated-dependencies:
- dependency-name: peter-evans/create-or-update-comment
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-17 21:59:33 -07:00
Yilei "Dolee" Yang
268dcb677c
Do not add an extra blank line to an import line that has fmt disabled ( #3610 )
2023-03-17 21:39:21 -07:00
Yilei "Dolee" Yang
fc6cea0f0e
Consistently format async statements similar to their non-async version. ( #3609 )
2023-03-16 13:31:27 -07:00
dependabot[bot]
71a2daaacf
Bump pypa/cibuildwheel from 2.11.4 to 2.12.1 ( #3602 )
...
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel ) from 2.11.4 to 2.12.1.
- [Release notes](https://github.com/pypa/cibuildwheel/releases )
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md )
- [Commits](https://github.com/pypa/cibuildwheel/compare/v2.11.4...v2.12.1 )
---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-15 00:30:04 -07:00
Casey Korver
6ffc5f7b01
Correct spelling mistakes ( #3599 )
2023-03-11 07:43:31 -08:00
Yilei "Dolee" Yang
d16a1dbd05
Consistently wrap two context managers in parens (in --preview). ( #3589 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-03-09 22:01:20 -08:00
Aneesh Agrawal
4a063a9f8d
Improve multiline string handling ( #1879 )
...
Co-authored-by: Olivia Hong <ohong@lyft.com>
Co-authored-by: Olivia Hong <24500729+olivia-hong@users.noreply.github.com>
2023-03-07 11:52:19 -08:00
dependabot[bot]
25d886f52c
Bump peter-evans/find-comment from 2.2.0 to 2.3.0 ( #3584 )
...
Bumps [peter-evans/find-comment](https://github.com/peter-evans/find-comment ) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/peter-evans/find-comment/releases )
- [Commits](81e2da3af0...034abe94d3
)
---
updated-dependencies:
- dependency-name: peter-evans/find-comment
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-27 06:38:02 -08:00
brucearctor
d9b8a6407e
Update Action example to use checkout@v3 ( #3563 )
...
Latest version of `actions/checkout` is v3 (or rather v3.3) so let's
use that in the example now.
2023-02-13 20:24:28 -05:00
Yilei "Dolee" Yang
9c8464ca7d
Fix typos in comments: assignement -> assignment ( #3556 )
2023-02-07 14:48:09 -08:00
dependabot[bot]
e74a05286b
Bump docker/build-push-action from 3 to 4 ( #3549 )
...
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-06 19:56:38 -08:00
Richard Si
e506c46f7b
Rename design label to style because it's clearer ( #3547 )
2023-02-04 22:51:46 -05:00
mainj12
ff53fc1b97
Actually add trailing commas to collection literals even if there are terminating comments ( #3393 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Richard Si <sichard26@gmail.com>
2023-02-04 19:35:43 -08:00
Yilei "Dolee" Yang
ea5293b036
Document the future style changes introduced in #3489 and #3440 ( #3541 )
2023-02-04 22:30:47 -05:00
Yilei "Dolee" Yang
dd0e912a6e
Fix import of blib2to3.pgen2.driver ( #3546 )
2023-02-03 22:00:09 -08:00
Jelle Zijlstra
b0d1fba7ac
Prepare release 23.1.0 ( #3536 )
...
Co-authored-by: Richard Si <sichard26@gmail.com>
2023-01-31 18:47:11 -08:00
Stijn de Gooijer
69ca0a4c7a
Infer target version based on project metadata ( #3219 )
...
Co-authored-by: Richard Si <sichard26@gmail.com>
2023-01-31 18:00:17 -08:00
Jelle Zijlstra
c4bd2e31ce
Draft for Black 2023 stable style ( #3418 )
2023-01-31 15:39:56 -08:00
Jelle Zijlstra
226cbf0226
Fix unsafe cast in linegen.py w/ await yield handling ( #3533 )
...
Fixes #3532 .
2023-01-30 21:53:14 -05:00
Jelle Zijlstra
f4ebc68320
Upgrade isort ( #3534 )
...
See PyCQA/isort#2077 .
2023-01-30 18:45:12 -08:00