Skip to content

Commit

Permalink
Merge pull request #557 from akaihola/release-2.0.0
Browse files Browse the repository at this point in the history
Release 2.0.0
  • Loading branch information
akaihola committed Mar 13, 2024
2 parents 76512f0 + 8c3025d commit 645ae0b
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ If applicable, add copy/paste the output or attach a screenshots to help explain
- OS: [e.g. Windows / macos / Linux distribution & version]
- Python version [e.g. 3.10.4]
- Git version [e.g. 2.36.0]
- Darker version [e.g. 1.7.3]
- Darker version [e.g. 2.0.0]
- Black version [e.g. 22.3.0]
- other reformatter and linter versions [e.g. `isort==5.10.1`, `mypy==0.942`

Expand Down
20 changes: 20 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ Unreleased_

These features will be included in the next release:

Added
-----

Fixed
-----


2.0.0_ - 2024-03-13
===================

Added
-----
- The command ``darker --config=check-darker.toml`` now runs Flake8_, Mypy_,
Expand All @@ -14,9 +24,16 @@ Added
- 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
Expand All @@ -26,6 +43,7 @@ Fixed
- `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.


1.7.3_ - 2024-02-27
Expand Down Expand Up @@ -569,7 +587,9 @@ Added
.. _Black 24.2.1: https://github.com/psf/black/blob/master/CHANGES.md#2421
.. _Pylint: https://pypi.org/project/pylint
.. _pygments: https://pypi.org/project/Pygments/
.. _Darkgraylib: https://pypi.org/project/darkgraylib/
.. _Flake8: https://flake8.pycqa.org/
.. _Graylint: https://pypi.org/project/graylint/
.. _Mypy: https://www.mypy-lang.org/
.. _pydocstyle: http://www.pydocstyle.org/
.. _Ruff: https://astral.sh/ruff
Expand Down
16 changes: 8 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
.. |changelog-badge| image:: https://img.shields.io/badge/-change%20log-purple
:alt: Change log
.. _changelog-badge: https://github.com/akaihola/darker/blob/master/CHANGES.rst
.. |next-milestone| image:: https://img.shields.io/github/milestones/progress/akaihola/darker/21?color=red&label=release%201.8.0
.. |next-milestone| image:: https://img.shields.io/github/milestones/progress/akaihola/darker/21?color=red&label=release%202.1.0
:alt: Next milestone
.. _next-milestone: https://github.com/akaihola/darker/milestone/21

Expand Down Expand Up @@ -137,11 +137,11 @@ How?

To install or upgrade, use::

pip install --upgrade darker~=1.7.3
pip install --upgrade darker~=2.0.0

Or, if you're using Conda_ for package management::

conda install -c conda-forge darker~=1.7.3 isort
conda install -c conda-forge darker~=2.0.0 isort
conda update -c conda-forge darker

..
Expand Down Expand Up @@ -639,7 +639,7 @@ do the following:
.. code-block:: yaml
- repo: https://github.com/akaihola/darker
rev: 1.7.3
rev: 2.0.0
hooks:
- id: darker
Expand All @@ -658,7 +658,7 @@ other reformatter/linter tools you use to known compatible versions, for example
.. code-block:: yaml
- repo: https://github.com/akaihola/darker
rev: 1.7.3
rev: 2.0.0
hooks:
- id: darker
args:
Expand Down Expand Up @@ -689,7 +689,7 @@ Note the inclusion of the isort Python package under ``additional_dependencies``
.. code-block:: yaml
- repo: https://github.com/akaihola/darker
rev: 1.7.3
rev: 2.0.0
hooks:
- id: darker
args: [--isort]
Expand Down Expand Up @@ -734,11 +734,11 @@ Create a file named ``.github/workflows/darker.yml`` inside your repository with
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: akaihola/darker@1.7.3
- uses: akaihola/darker@2.0.0
with:
options: "--check --diff --isort --color"
src: "./src"
version: "~=1.7.3"
version: "~=2.0.0"
lint: "flake8,pylint==2.13.1"
There needs to be a working Python environment, set up using ``actions/setup-python``
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ inputs:
required: false
default: "."
version:
description: 'Version of Darker to use, e.g. "~=1.7.3", "1.7.3", "@master"'
description: 'Version of Darker to use, e.g. "~=2.0.0", "2.0.0", "@master"'
required: false
default: "~=1.7.3"
default: "~=2.0.0"
revision:
description: >-
Git revision range to compare when determining modified lines.
Expand Down
2 changes: 1 addition & 1 deletion src/darker/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""The version number for Darker is governed by this file"""

__version__ = "1.7.3"
__version__ = "2.0.0"

0 comments on commit 645ae0b

Please sign in to comment.