Next | Query returned 37 messages, browsing 11 to 20 | Previous

History of commit frequency

CVS Commit History:


   2023-12-17 23:20:04 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
py-black: update to 23.12.0.

## 23.12.0

### Highlights

It's almost 2024, which means it's time for a new edition of _Black_'s stable style!
Together with this release, we'll put out an alpha release 24.1a1 showcasing the \ 
draft
2024 stable style, which we'll finalize in the January release. Please try it out and
[share your feedback](https://github.com/psf/black/issues/4042).

This release (23.12.0) will still produce the 2023 style. Most but not all of the
changes in `--preview` mode will be in the 2024 stable style.

### Stable style

- Fix bug where `# fmt: off` automatically dedents when used with the `--line-ranges`
  option, even when it is not within the specified line range. (#4084)
- Fix feature detection for parenthesized context managers (#4104)

### Preview style

- Prefer more equal signs before a break when splitting chained assignments (#4010)
- Standalone form feed characters at the module level are no longer removed (#4021)
- Additional cases of immediately nested tuples, lists, and dictionaries are now
  indented less (#4012)
- Allow empty lines at the beginning of all blocks, except immediately before a
  docstring (#4060)
- Fix crash in preview mode when using a short `--line-length` (#4086)
- Keep suites consisting of only an ellipsis on their own lines if they are not
  functions or class definitions (#4066) (#4103)

### Configuration

- `--line-ranges` now skips _Black_'s internal stability check in `--safe` mode. This
  avoids a crash on rare inputs that have many unformatted same-content lines. \ 
(#4034)

### Packaging

- Upgrade to mypy 1.7.1 (#4049) (#4069)
- Faster compiled wheels are now available for CPython 3.12 (#4070)

### Integrations

- Enable 3.12 CI (#4035)
- Build docker images in parallel (#4054)
- Build docker images with 3.12 (#4055)
   2023-11-08 10:43:11 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-black: updated to 23.11.0

23.11.0

Highlights

- Support formatting ranges of lines with the new `--line-ranges` command-line option

Stable style

- Fix crash on formatting bytes strings that look like docstrings
- Fix crash when whitespace followed a backslash before newline in a docstring
- Fix standalone comments inside complex blocks crashing Black
- Fix crash on formatting code like `await (a ** b)`
- No longer treat leading f-strings as docstrings. This matches Python's \ 
behaviour and
 fixes a crash

Preview style

- Multiline dicts and lists that are the sole argument to a function are now indented
 less
- Multiline unpacked dicts and lists as the sole argument to a function are now also
 indented less
- In f-string debug expressions, quote types that are visible in the final string are
 now preserved
- Fix a bug where long `case` blocks were not split into multiple lines. Also enable
 general trailing comma rules on `case` blocks
- Keep requiring two empty lines between module-level docstring and first function or
 class definition
- Add support for single-line format skip with other comments on the same line

Configuration

- Consistently apply force exclusion logic before resolving symlinks
- Fix a bug in the matching of absolute path names in `--include`

Performance

- Fix mypyc builds on arm64 on macOS

Integrations

- Black's pre-commit integration will now run only on git hooks appropriate for \ 
a code
 formatter
   2023-10-28 22:09:12 by Thomas Klausner | Files touched by this commit (1)
Log message:
py-black: bump PKGREVISION for PLIST change
   2023-10-28 21:57:26 by Thomas Klausner | Files touched by this commit (516) | Package updated
Log message:
python/wheel.mk: simplify a lot, and switch to 'installer' for installation

This follows the recommended bootstrap method (flit_core, build, installer).

However, installer installs different files than pip, so update PLISTs
for all packages using wheel.mk and bump their PKGREVISIONs.
   2023-10-24 06:30:46 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-black: updated to 23.10.1

23.10.1

Highlights

- Maintanence release to get a fix out for GitHub Action edge case

Preview style

- Fix merging implicit multiline strings that have inline comments
- Allow empty first line after block open before a comment or compound statement

Packaging

- Change Dockerfile to hatch + compile black

Integrations

- The summary output for GitHub workflows is now suppressible using the `summary`
 parameter.
- Fix the action failing when Black check doesn't pass

Documentation

- It is known Windows documentation CI is broken
 https://github.com/psf/black/issues/3968
   2023-10-18 10:00:58 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-black: updated to 23.10.0

23.10.0

Stable style

- Fix comments getting removed from inside parenthesized strings

Preview style

- Fix long lines with power operators getting split before the line length
- Long type hints are now wrapped in parentheses and properly indented when \ 
split across
 multiple lines
- Magic trailing commas are now respected in return types.
- Require one empty line after module-level docstrings.
- Treat raw triple-quoted strings as docstrings

Configuration

- Fix cache versioning logic when `BLACK_CACHE_DIR` is set

Parser

- Fix bug where attributes named `type` were not acccepted inside `match` statements

- Add support for PEP 695 type aliases containing lambdas and other unusual \ 
expressions

Output

- Black no longer attempts to provide special errors for attempting to format \ 
Python 2
 code
- Black will more consistently print stacktraces on internal errors in verbose mode

Integrations

- The action output displayed in the job summary is now wrapped in Markdown
   2023-09-11 11:27:50 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-black: updated to 23.9.1

23.9.1

Due to various issues, the previous release (23.9.0) did not include compiled mypyc
wheels, which make Black significantly faster. These issues have now been fixed, and
this release should come with compiled wheels once again.

There will be no wheels for Python 3.12 due to a bug in mypyc. We will provide 3.12
wheels in a future release as soon as the mypyc bug is fixed.

Packaging

- Upgrade to mypy 1.5.1

Performance

- Store raw tuples instead of NamedTuples in Black's cache, improving performance and
 decreasing the size of the cache

23.9.0

Preview style

- More concise formatting for dummy implementations
- In stub files, add a blank line between a statement with a body (e.g an
 `if sys.version_info > (3, x):`) and a function definition on the same level
- Fix a bug whereby spaces were removed from walrus operators within subscript

Configuration

- Black now applies exclusion and ignore logic before resolving symlinks

Performance

- Avoid importing `IPython` if notebook cells do not contain magics
- Improve caching by comparing file hashes as fallback for mtime and size

_Blackd_

- Fix an issue in `blackd` with single character input

Integrations

- Black now has an
 [official pre-commit mirror](https://github.com/psf/black-pre-commit-mirror). \ 
Swapping
 `https://github.com/psf/black` to \ 
`https://github.com/psf/black-pre-commit-mirror` in
 your `.pre-commit-config.yaml` will make Black about 2x faster
- The `.black.env` folder specified by `ENV_PATH` will now be removed on the \ 
completion
 of the GitHub Action
   2023-07-17 13:49:24 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-black: updated to 23.7.0

23.7.0

Highlights

- Runtime support for Python 3.7 has been removed. Formatting 3.7 code will still be
  supported until further notice

 Stable style

- Fix a bug where an illegal trailing comma was added to return type annotations \ 
using
  PEP 604 unions
- Fix several bugs and crashes where comments in stub files were removed or \ 
mishandled
  under some circumstances
- Fix a crash with multi-line magic comments like `type: ignore` within parentheses

- Fix error in AST validation when _Black_ removes trailing whitespace in a type \ 
comment

 Preview style

- Implicitly concatenated strings used as function args are no longer wrapped inside
  parentheses
- Remove blank lines between a class definition and its docstring

 Configuration

- The `--workers` argument to _Black_ can now be specified via the \ 
`BLACK_NUM_WORKERS`
  environment variable
- `.pytest_cache`, `.ruff_cache` and `.vscode` are now excluded by default
- Fix _Black_ not honouring `pyproject.toml` settings when running `--stdin-filename`
  and the `pyproject.toml` found isn't in the current working directory
- _Black_ will now error if `exclude` and `extend-exclude` have invalid data types in
  `pyproject.toml`, instead of silently doing the wrong thing

 Packaging

- Upgrade mypyc from 0.991 to 1.3
- Remove patching of Click that mitigated errors on Python 3.6 with `LANG=C`

 Parser

- Add support for the new PEP 695 syntax in Python 3.12

 Performance

- Speed up _Black_ significantly when the cache is full
- Avoid importing `IPython` in a case where we wouldn't need it

 Output

- Use aware UTC datetimes internally, avoids deprecation warning on Python 3.12
- Change verbose logging to exactly mirror _Black_'s logic for source discovery

 _Blackd_

- The `blackd` argument parser now shows the default values for options in their help
  text

 Integrations

- Black is now tested with
  [`PYTHONWARNDEFAULTENCODING = \ 
1`](https://docs.python.org/3/library/io.html#io-encoding-warning)

- Update GitHub Action to display black output in the job summary

 Documentation

- Add a CITATION.cff file to the root of the repository, containing metadata on \ 
how to
  cite this software
- Update the _classes_ and _exceptions_ documentation in Developer reference to match
  the latest code base
   2023-04-17 21:27:28 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-black: updated to 23.3.0

23.3.0

Highlights

This release fixes a longstanding confusing behavior in Black's GitHub action, \ 
where the
version of the action did not determine the version of Black being run. In
addition, there is a small bug fix around imports and a number of improvements to the
preview style.

Please try out the
[preview \ 
style](https://black.readthedocs.io/en/stable/the_black_code_style/future_style.html#preview-style)
with `black --preview` and tell us your feedback. All changes in the preview \ 
style are
expected to become part of Black's stable style in January 2024.

Stable style

- Import lines with `# fmt: skip` and `# fmt: off` no longer have an extra blank line
 added when they are right after another import line

Preview style

- Add trailing commas to collection literals even if there's a comment after the last
 entry
- `async def`, `async for`, and `async with` statements are now formatted \ 
consistently
 compared to their non-async version.
- `with` statements that contain two context managers will be consistently wrapped in
 parentheses
- Let string splitters respect [East Asian \ 
Width](https://www.unicode.org/reports/tr11/)

- Now long string literals can be split after East Asian commas and periods \ 
(`、` U+3001
 IDEOGRAPHIC COMMA, `。` U+3002 IDEOGRAPHIC FULL STOP, & `,` U+FF0C \ 
FULLWIDTH COMMA)
 besides before spaces
- For stubs, enforce one blank line after a nested class with a body other than just
 `...`
- Improve handling of multiline strings by changing line split behavior

Parser

- Added support for formatting files with invalid type comments

Integrations

- Update GitHub Action to use the version of Black equivalent to action's version if
 version input is not specified
- Fix missing Python binary path in autoload script for vim

Documentation

- Document that only the most recent release is supported for security issues;
 vulnerabilities should be reported through Tidelift
   2023-03-29 11:34:15 by Thomas Klausner | Files touched by this commit (96)
Log message:
*: use PYTHON_VERSION instead of _PYTHON_VERSION

Next | Query returned 37 messages, browsing 11 to 20 | Previous