Skip to content

2.0.0

Compare
Choose a tag to compare
@akaihola akaihola released this 13 Mar 20:54
· 183 commits to master since this release
645ae0b

Added

  • The command darker --config=check-darker.toml now runs Flake8, Mypy,
    pydocstyle, Pylint and Ruff on modified lines in Python files. Those tools are
    included in the [test] extra.
  • The minimum Ruff version is now 0.0.292. Its configuration in pyproject.toml has
    been updated accordingly.
  • The contribution guide now gives better instructions for reformatting and linting.
  • Separate GitHub workflow for checking code formatting and import sorting.
  • Also check the action, release tools and setup.py in the build workflows.
  • Require Darkgraylib 1.0.x and Graylint 1.0.x.
  • Update 3rd party GitHub actions to avoid using deprecated NodeJS versions.
  • CI build now shows a diff between output of darker --help and its output as
    included README.rst in case the two differ.

Removed

  • Drop support for Python 3.7 which has reached end of life.
  • shlex_join compatibility wrapper for Python 3.7 and earlier.
  • Move linting support to Graylint_ but keep the -L/--lint option for now.
  • Move code used by both Darker and Graylint_ into the Darkgraylib_ library.
  • Don't run pytest-darker_ in the CI build. It's lagging quite a bit behind.

Fixed

  • Black 24.2.0 compatibility by using the new darkgraylib.files.find_project_root
    instead of the implementation in Black.
  • Black 24.2.1 compatibility by detecting the new black.parsing.ASTSafetyError instead
    of AssertionError when Black>=24.2.1 is in use.
  • Make sure NixOS_ builds have good SSL certificates installed.
  • Work around some situations where Windows errors due to a too long Git command line.