Skip to content

Commit

Permalink
fix: linter check for black and isort not failing when changes requir…
Browse files Browse the repository at this point in the history
…ed (#631)

- black and isort returncode is 0 when fixes required and applied, so
  add arguments that make it returncode 1 when fixes required
- flake8 and pycodestyle return 1 already
  • Loading branch information
lindsay-stevens authored Nov 29, 2022
1 parent a6f5b98 commit 056e7ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
pip list
# Linters.
- run: black pyxform tests
- run: isort pyxform tests
- run: black pyxform tests --check --diff
- run: isort pyxform tests --check-only --diff
- run: flake8 pyxform tests
- run: pycodestyle pyxform tests

Expand Down
2 changes: 1 addition & 1 deletion pyxform/xlsparseutils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re
from pyxform import constants
from typing import KeysView, Optional

from pyxform import constants
from pyxform.utils import levenshtein_distance

# http://www.w3.org/TR/REC-xml/
Expand Down

0 comments on commit 056e7ac

Please sign in to comment.