Skip to content

Commit

Permalink
tox.ini: Replace flake8 with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Apr 29, 2024
1 parent 8f3b470 commit d844a9e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ on:
branches: [main]

jobs:
tox-jobs:
strategy:
fail-fast: false
matrix:
tox-job: [doc, pep8]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install tox
- run: tox -e ${{ matrix.tox-job }}
build:
runs-on: ${{ matrix.os }}
strategy:
Expand Down
12 changes: 3 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,12 @@ basepython = python3
[testenv:doc]
basepython = python3
deps = sphinx
whitelist_externals = make
allowlist_externals = make
commands=
make -C doc html

[testenv:pep8]
basepython = python3
deps = flake8
deps = ruff
commands =
flake8 pyperf setup.py doc/examples/

[flake8]
# E501 line too long (88 > 79 characters)
# F812 list comprehension redefines 'loops' from line 56
# W503 line break before binary operator
ignore = E501,F812,W503
ruff check

0 comments on commit d844a9e

Please sign in to comment.