Skip to content

Commit

Permalink
Also check formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Sep 21, 2024
1 parent 25a0e66 commit c3f2be0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
run: |
ruff -V
ruff check --output-format=github nutree tests setup.py
ruff format --check nutree tests setup.py
- name: Test with pytest
run: |
Expand Down
33 changes: 1 addition & 32 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,7 @@ deps =
commands =
ruff -V
ruff check nutree tests setup.py


; [testenv:check]
; description = Check Black formatting, isort compliance, and flake8
; ; skip_install = true
; deps =
; black[jupyter] ~=24.3
; isort
; {[testenv:lint]deps}
; changedir = {toxinidir}
; commands =
; isort --check-only --profile black nutree tests setup.py
; black --check --diff nutree tests setup.py
; {[testenv:lint]commands}
ruff format --check nutree tests setup.py


[testenv:format]
Expand All @@ -96,23 +83,6 @@ commands =
; black nutree tests setup.py
{[testenv:lint]commands}

; [testenv:format-no-pyupgrade]
; description = Same a `format` but without pyupgrade, so it runs on windows
; # skip_install = true
; deps =
; {[testenv:check]deps}
; pyupgrade
; allowlist_externals:
; bash
; changedir = {toxinidir}
; commands =
; ; bash -ec 'pyupgrade --py38-plus --exit-zero-even-if-changed nutree/*.py tests/*.py setup.py'
; ruff check --fix nutree tests setup.py
; ; ruff format nutree tests setup.py
; isort --profile black nutree tests setup.py {posargs}
; black nutree tests setup.py
; {[testenv:lint]commands}


[testenv:docs]
description = Build Sphinx documentation (output directory: docs/sphinx-build)
Expand All @@ -122,7 +92,6 @@ deps =
fabulist
pydot
rdflib
; recommonmark
sphinx
sphinx_rtd_theme
myst-parser[linkify]
Expand Down

0 comments on commit c3f2be0

Please sign in to comment.