-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
38 lines (31 loc) · 782 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
pyenv-init:
pyenv install 3.11.6
pyenv virtualenv 3.11.6 django-reversion-rest-framework
pyenv local django-reversion-rest-framework
style-fix:
isort .
black .
flake8
style-check:
pylint --errors-only --recursive=y src
pylint --load-plugins pylint_django --django-settings-module=test_project.settings --errors-only --recursive=y tests
isort --check-only .
black --check --diff .
flake8
test:
python tests/manage.py test tests
test-coverage:
coverage run tests/manage.py test tests
coverage report -m
coverage html
coverage xml
build:
rm -rf dist
pip install --upgrade build
python -m build
publish-test:
pip install --upgrade twine
python -m twine upload --repository testpypi dist/*
publish:
pip install --upgrade twine
python -m twine upload dist/*