Skip to content

Commit

Permalink
Run ruff format check
Browse files Browse the repository at this point in the history
  • Loading branch information
ubmarco committed Jan 22, 2024
1 parent 5d08891 commit e0b17a8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ jobs:
run: |
python -m pip install poetry tox
- name: Run ruff
- name: Run ruff format check
run: |
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
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ commands=
poetry run ruff format --check {[testenv]py_folders}
poetry run ruff {[testenv]py_folders}

[testenv:format-check]
envdir = {toxworkdir}/py312
basepython = python3.12
commands=
poetry install --no-root
poetry run ruff format --check {[testenv]py_folders}

[testenv:format]
envdir = {toxworkdir}/py312
basepython = python3.12
Expand Down

0 comments on commit e0b17a8

Please sign in to comment.