Skip to content

Commit

Permalink
Add --diff to black check workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsrabin committed Feb 14, 2025
1 parent dc998ec commit ab04d8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ jobs:
with:
# Use options and version identical to the conda environment
# Using pyproject.toml makes sure this testing is consistent with our python directory testing
options: "--check --config python/pyproject.toml"
options: "--check --diff --config python/pyproject.toml"
src: "./python"
# Version should be coordinated with the ctsm_pylib conda environment under the python directory
version: "22.3.0"
# Actions identical to above for each directory and source file we need to check (arrays aren't allowed for src: field)
- uses: psf/black@stable
with:
options: "--check --config python/pyproject.toml"
options: "--check --diff --config python/pyproject.toml"
src: "./cime_config/SystemTests"
version: "22.3.0"
- uses: psf/black@stable
with:
options: "--check --config python/pyproject.toml"
options: "--check --diff --config python/pyproject.toml"
src: "./cime_config/buildlib"
version: "22.3.0"
- uses: psf/black@stable
with:
options: "--check --config python/pyproject.toml"
options: "--check --diff --config python/pyproject.toml"
src: "./cime_config/buildnml"
version: "22.3.0"

0 comments on commit ab04d8f

Please sign in to comment.