Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tox.ini: Replace flake8 with ruff #184

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading