1
1
.PHONY = venv, lint, test, clean, release
2
2
3
3
venv :
4
- python3.8 -m venv env
4
+ python3.8 -m venv .venv
5
5
6
6
install : venv
7
- env /bin/python -m pip install --upgrade pip
8
- env /bin/pip install -e " .[dev]"
7
+ .venv /bin/python -m pip install --upgrade pip
8
+ .venv /bin/pip install -e " .[dev]"
9
9
10
10
lint_ruff :
11
- env /bin/ruff check epidatpy tests
11
+ .venv /bin/ruff check epidatpy tests
12
12
13
13
lint_mypy :
14
- env /bin/mypy epidatpy tests
14
+ .venv /bin/mypy epidatpy tests
15
15
16
16
lint_pylint :
17
- env /bin/pylint epidatpy tests
17
+ .venv /bin/pylint epidatpy tests
18
18
19
19
lint : lint_ruff lint_mypy lint_pylint
20
20
21
21
format :
22
- env /bin/ruff format epidatpy tests
22
+ .venv /bin/ruff format epidatpy tests
23
23
24
24
test :
25
- env /bin/pytest .
25
+ .venv /bin/pytest .
26
26
27
27
doc :
28
28
@pandoc --version > /dev/null 2>&1 || (echo " ERROR: pandoc is required (install via your platform's package manager)" ; exit 1)
29
- env /bin/sphinx-build -b html docs docs/_build
30
- env /bin/python -m webbrowser -t " docs/_build/index.html"
29
+ .venv /bin/sphinx-build -b html docs docs/_build
30
+ .venv /bin/python -m webbrowser -t " docs/_build/index.html"
31
31
32
32
clean_doc :
33
33
rm -rf docs/_build
@@ -45,7 +45,7 @@ clean_python:
45
45
clean : clean_doc clean_build clean_python
46
46
47
47
release : clean lint test
48
- env /bin/python -m build --sdist --wheel
48
+ .venv /bin/python -m build --sdist --wheel
49
49
50
50
upload : release
51
- env /bin/twine upload dist/*
51
+ .venv /bin/twine upload dist/*
0 commit comments