Skip to content

Commit

Permalink
Merge pull request #419 from akaihola/release-1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola authored Dec 20, 2022
2 parents 3559877 + b2873e2 commit 7057de2
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 13 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.5.1]
- Darker version [e.g. 1.6.0]
- Black version [e.g. 22.3.0]
- other reformatter and linter versions [e.g. `isort==5.10.1`, `mypy==0.942`

Expand Down
16 changes: 14 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ These features will be included in the next release:

Added
-----
- Upgrade to ``setup-python@v4`` in all GitHub workflows. May be required due to
deprecation of ``set-output``.

Fixed
-----


1.6.0_ - 2022-12-19
===================

Added
-----
- Upgrade linters in CI and modify code to satisfy their new requirements.
- Upgrade to ``setup-python@v4`` in all GitHub workflows.
- ``bump_version.py`` now accepts an optional GitHub token with the ``--token=``
argument. The ``test-bump-version`` workflow uses that, which should help deal with
GitHub's API rate limiting.
Expand All @@ -15,6 +25,8 @@ Fixed
-----
- Fix compatibility with ``black-22.10.1.dev19+gffaaf48`` and later – an argument was
replaced in ``black.files.gen_python_files()``.
- Upgrade CI to use environment files instead of the deprecated ``set-output`` method.
- Fix Safety check in CI.
- Don't do a development install in the ``help-in-readme.yml`` workflow. Something
broke this recently.

Expand Down
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
.. |changelog-badge| image:: https://img.shields.io/badge/-change%20log-purple
:alt: Change log
.. _changelog-badge: https:/akaihola/darker/blob/master/CHANGES.rst
.. |next-milestone| image:: https://img.shields.io/github/milestones/progress/akaihola/darker/16?color=red&label=release%201.6.0
.. |next-milestone| image:: https://img.shields.io/github/milestones/progress/akaihola/darker/18?color=red&label=release%201.6.1
:alt: Next milestone
.. _next-milestone: https:/akaihola/darker/milestone/16
.. _next-milestone: https:/akaihola/darker/milestone/18


What?
Expand Down Expand Up @@ -567,7 +567,7 @@ do the following:
3. Append to the created ``.pre-commit-config.yaml`` the following lines::

- repo: https:/akaihola/darker
rev: 1.5.1
rev: 1.6.0
hooks:
- id: darker

Expand All @@ -586,7 +586,7 @@ You can provide arguments, such as enabling isort, by specifying ``args``.
Note the inclusion of the isort Python package under ``additional_dependencies``::

- repo: https:/akaihola/darker
rev: 1.5.1
rev: 1.6.0
hooks:
- id: darker
args: [--isort]
Expand Down Expand Up @@ -627,12 +627,12 @@ Create a file named ``.github/workflows/darker.yml`` inside your repository with
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: akaihola/darker@1.5.1
- uses: akaihola/darker@1.6.0
with:
options: "--check --diff --color"
revision: "master..."
src: "./src"
version: "1.5.1"
version: "1.6.0"
lint: "flake8,pylint==2.13.1"
There needs to be a working Python environment, set up using ``actions/setup-python``
Expand Down
6 changes: 3 additions & 3 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: 'Python Version specifier (PEP440) - e.g. "1.5.1"'
description: 'Python Version specifier (PEP440) - e.g. "1.6.0"'
required: false
default: "1.5.1"
default: "1.6.0"
revision:
description: >-
Git revision range to compare when determining modified lines.
Expand All @@ -37,7 +37,7 @@ runs:
steps:
- name: Commit Range
id: commit-range
uses: akaihola/darker/.github/actions/commit-range@1.5.1
uses: akaihola/darker/.github/actions/commit-range@1.6.0
- name: Run Darker
run: |
# Exists since using github.action_path + path to main script doesn't
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.5.1"
__version__ = "1.6.0"

0 comments on commit 7057de2

Please sign in to comment.