Skip to content

Commit

Permalink
Add code linting to tox configuration and allow makefile commands to …
Browse files Browse the repository at this point in the history
…reuse caches where it makes sense
  • Loading branch information
ushkarev committed Jan 13, 2023
1 parent 8f17000 commit 31c3513
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ clean:
test: clean
python setup.py test

test-all: clean
pip install tox
test-all:
pip install --upgrade tox
tox

coverage: clean
pip install coverage
coverage:
pip install --upgrade coverage
coverage run setup.py test
coverage report --show-missing

Expand Down
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ envlist =
{py38,py39,py310}-django32
{py38,py39,py310,py311}-django40
{py38,py39,py310,py311}-django41
lint

[testenv]
description = run tests
commands = python setup.py test
deps =
django22: django~=2.2.0
Expand All @@ -17,3 +19,8 @@ deps =
django32: django~=3.2.0
django40: django~=4.0.0
django41: django~=4.1.0

[testenv:lint]
description = lint code
deps = -r requirements-lint.txt
commands = flake8 --verbose

0 comments on commit 31c3513

Please sign in to comment.