diff --git a/justfile b/justfile index 26b5c14..ea04600 100644 --- a/justfile +++ b/justfile @@ -29,8 +29,13 @@ default: # Format @format: bootstrap - ruff format . - ruff check . --fix + ruff format + ruff check --fix + +# Lint +@lint: bootstrap + ruff format --check + ruff check # Test @test: bootstrap diff --git a/tox.ini b/tox.ini index 39eea14..acf00b6 100644 --- a/tox.ini +++ b/tox.ini @@ -11,15 +11,7 @@ envlist = py312-{4.2,5.0,5.1,main}, py313-{4.2,5.0,5.1,main}, docs, - ruff - -[gh-actions] -python = - 3.9: py39 - 3.10: py310 - 3.11: py310 - 3.12: py310, ruff, docs - 3.13: py310 + lint [testenv] basepython = @@ -41,10 +33,13 @@ deps = 5.1: Django==5.1.* main: https://github.com/django/django/archive/main.tar.gz -[testenv:ruff] +[testenv:lint] basepython = python3.12 -deps = ruff -commands = ruff check . +allowlist_externals = just +setenv = + PYTHONWARNINGS=default +commands = + just lint [testenv:docs] basepython = python3.12