Skip to content

Commit

Permalink
use black 24 and add black preview job to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Apr 12, 2024
1 parent 9a754fa commit 7b1fd1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
source_check:
name: source check
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4
Expand All @@ -38,6 +36,10 @@ jobs:
run: |
python -m black --check --diff --color .
- name: black preview
run: |
python -m black --preview --diff --color .
- name: isort check
run: |
python -m isort --check --diff --color .
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ plotting = [
rust = ["gstools_core>=0.2.0,<1"]
test = ["pytest-cov>=3"]
lint = [
"black>=23,<24",
"black>=24",
"pylint",
"isort[colors]",
"cython-lint",
Expand Down

0 comments on commit 7b1fd1e

Please sign in to comment.