Skip to content

Commit

Permalink
Don't run pytest-darker in CI build
Browse files Browse the repository at this point in the history
It's a bit outdated. We now run Flake8 in its own workflow, and check
formatting using the Darker GitHub Action in another workflow.
  • Loading branch information
akaihola committed Mar 9, 2024
1 parent df3ce4c commit 84e1f56
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,7 @@ jobs:
if: matrix.constraints == '--constraint constraints-oldest.txt'
run: |
sed -i 's/py311/py39/' pyproject.toml
- name: Run Pytest with the Darker plugin on recent Black versions
if: matrix.constraints != '--constraint constraints-oldest.txt'
run: |
pytest --darker
- name: Run Pytest without the Darker plugin on oldest Black version
# The reformatting rules used to be a bit different. We don't need to
# test reformatting Darker's own code base with old Black versions.
# Interoperability is ensured by unit tests.
if: matrix.constraints == '--constraint constraints-oldest.txt'
run: |
pytest
- run: pytest

build-sdist-validate-dists:
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ test =
pygments
pylint
pytest>=6.2.0
pytest-darker
pytest-kwparametrize>=0.0.3
regex>=2021.4.4
requests_cache>=0.7
Expand Down

0 comments on commit 84e1f56

Please sign in to comment.