Skip to content

Commit 0e6e46b

Browse files
Prepare release 24.1.0 (#4170)
1 parent 4f47cac commit 0e6e46b

File tree

4 files changed

+13
-47
lines changed

4 files changed

+13
-47
lines changed

CHANGES.md

+5-41
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# Change Log
22

3-
## Unreleased
3+
## 24.1.0
44

55
### Highlights
66

7-
<!-- Include any especially major or disruptive changes here -->
8-
97
This release introduces the new 2024 stable style (#4106), stabilizing the following
108
changes:
119

@@ -44,8 +42,6 @@ year's stable style.
4442

4543
### Stable style
4644

47-
<!-- Changes that affect Black's stable style -->
48-
4945
Several bug fixes were made in features that are moved to the stable style in this
5046
release:
5147

@@ -59,63 +55,31 @@ release:
5955

6056
### Preview style
6157

62-
<!-- Changes that affect Black's preview style -->
63-
6458
- Add `--unstable` style, covering preview features that have known problems that would
6559
block them from going into the stable style. Also add the `--enable-unstable-feature`
6660
flag; for example, use
6761
`--enable-unstable-feature hug_parens_with_braces_and_square_brackets` to apply this
68-
preview style throughout 2024, even if a later Black release downgrades the feature to
69-
unstable (#4096)
62+
preview feature throughout 2024, even if a later Black release downgrades the feature
63+
to unstable (#4096)
7064
- Format module docstrings the same as class and function docstrings (#4095)
7165
- Fix crash when using a walrus in a dictionary (#4155)
7266
- Fix unnecessary parentheses when wrapping long dicts (#4135)
7367
- Stop normalizing spaces before `# fmt: skip` comments (#4146)
7468

7569
### Configuration
7670

77-
<!-- Changes to how Black can be configured -->
78-
79-
- Print warning when toml config contains an invalid key (#4165)
80-
- Fix symlink handling, properly catch and ignore symlinks that point outside of root
81-
(#4161)
71+
- Print warning when configuration in `pyproject.toml` contains an invalid key (#4165)
72+
- Fix symlink handling, properly ignoring symlinks that point outside of root (#4161)
8273
- Fix cache mtime logic that resulted in false positive cache hits (#4128)
8374
- Remove the long-deprecated `--experimental-string-processing` flag. This feature can
8475
currently be enabled with `--preview --enable-unstable-feature string_processing`.
8576
(#4096)
8677

87-
### Packaging
88-
89-
<!-- Changes to how Black is packaged, such as dependency requirements -->
90-
91-
### Parser
92-
93-
<!-- Changes to the parser or to version autodetection -->
94-
95-
### Performance
96-
97-
<!-- Changes that improve Black's performance. -->
98-
99-
### Output
100-
101-
<!-- Changes to Black's terminal output and error messages -->
102-
103-
### _Blackd_
104-
105-
<!-- Changes to blackd -->
106-
10778
### Integrations
10879

109-
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
110-
11180
- Revert the change to run Black's pre-commit integration only on specific git hooks
11281
(#3940) for better compatibility with older versions of pre-commit (#4137)
11382

114-
### Documentation
115-
116-
<!-- Major changes to documentation and policies. Small docs changes
117-
don't need a changelog entry. -->
118-
11983
## 23.12.1
12084

12185
### Packaging

docs/integrations/source_version_control.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Use [pre-commit](https://pre-commit.com/). Once you
88
repos:
99
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
1010
- repo: https://github.com/psf/black-pre-commit-mirror
11-
rev: 23.12.1
11+
rev: 24.1.0
1212
hooks:
1313
- id: black
1414
# It is recommended to specify the latest version of Python
@@ -35,7 +35,7 @@ include Jupyter Notebooks. To use this hook, simply replace the hook's `id: blac
3535
repos:
3636
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
3737
- repo: https://github.com/psf/black-pre-commit-mirror
38-
rev: 23.12.1
38+
rev: 24.1.0
3939
hooks:
4040
- id: black-jupyter
4141
# It is recommended to specify the latest version of Python

docs/usage_and_configuration/the_basics.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ configuration file for consistent results across environments.
266266

267267
```console
268268
$ black --version
269-
black, 23.12.1 (compiled: yes)
270-
$ black --required-version 23.12.1 -c "format = 'this'"
269+
black, 24.1.0 (compiled: yes)
270+
$ black --required-version 24.1.0 -c "format = 'this'"
271271
format = "this"
272272
$ black --required-version 31.5b2 -c "still = 'beta?!'"
273273
Oh no! 💥 💔 💥 The required version does not match the running version!
@@ -363,7 +363,7 @@ You can check the version of _Black_ you have installed using the `--version` fl
363363

364364
```console
365365
$ black --version
366-
black, 23.12.1
366+
black, 24.1.0
367367
```
368368

369369
#### `--config`

scripts/release.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ def get_next_version(self) -> str:
169169
calver_parts = base_calver.split(".")
170170
base_calver = f"{calver_parts[0]}.{int(calver_parts[1])}" # Remove leading 0
171171
git_tags = get_git_tags()
172-
same_month_releases = [t for t in git_tags if t.startswith(base_calver)]
172+
same_month_releases = [
173+
t for t in git_tags if t.startswith(base_calver) and "a" not in t
174+
]
173175
if len(same_month_releases) < 1:
174176
return f"{base_calver}.0"
175177
same_month_version = same_month_releases[-1].split(".", 2)[-1]

0 commit comments

Comments
 (0)