Skip to content

Commit

Permalink
Fix some errors and clean up files (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve authored Dec 9, 2024
1 parent 2c10419 commit e1122e8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
9 changes: 7 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 7 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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
Expand Down

0 comments on commit e1122e8

Please # to comment.