Skip to content

Commit

Permalink
ci: simplify 'linters' GitHub Actions workflow (hhursev#1361)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison authored Nov 7, 2024
1 parent 5adf7a0 commit c7d2ebc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: pip install tox
- run: tox -e lint
cache: pip
cache-dependency-path: .pre-commit-config.yaml
- run: pip install pre-commit
- run: pre-commit run --all-files
8 changes: 0 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,3 @@ platform =
install_command =
py: python -I -m pip install {opts} {packages}
workaround-darwin: python -I -m pip install --only-binary=lxml {opts} {packages}

[testenv:lint]
# note: skip_install affects whether the package-under-test is installed; not whether deps are installed
skip_install = true
install_command = python -I -m pip install {opts} {packages}
# end skip_install note
deps = pre-commit >= 2.20.0
commands = pre-commit run --all-files

0 comments on commit c7d2ebc

Please sign in to comment.