Skip to content

Commit

Permalink
Activate linting for touched files
Browse files Browse the repository at this point in the history
  • Loading branch information
ubmarco committed Feb 3, 2024
1 parent f7cd2a0 commit 33eb5a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,5 @@ jobs:
tox -e format-check
- name: Run ruff lint
continue-on-error: true # deactivate for now (need to fix the issues over time)
run: |
tox -e lint
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ isolated_build = True
# python 3.11 and 3.12 test ok on Linux but fail on Windows due to Pillow
# Currently used Pillow 9.0.1 only supports Python 3.10 according to
# https://pillow.readthedocs.io/en/latest/installation.html#python-support
envlist = py{38,39,310,311,312}, docs, black
envlist = py{38,39,310,311,312}, docs, lint, format-check

[testenv]
allowlist_externals = poetry
Expand Down Expand Up @@ -36,7 +36,8 @@ basepython = python3.12
commands=
poetry install --no-root
poetry run ruff format --check {[testenv]py_folders}
poetry run ruff {[testenv]py_folders}
# extend the file list once a file is touched so lint issues get fixed over time
poetry run ruff tests/conftest.py tests/test_rects.py

[testenv:format-check]
envdir = {toxworkdir}/py312
Expand Down

0 comments on commit 33eb5a4

Please sign in to comment.