Skip to content

Commit 7820ad8

Browse files
committed
repo: (for uv compatibility) change makefile venv from env to .venv
1 parent f7195ea commit 7820ad8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
.PHONY = venv, lint, test, clean, release
22

33
venv:
4-
python3.8 -m venv env
4+
python3.8 -m venv .venv
55

66
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]"
99

1010
lint_ruff:
11-
env/bin/ruff check epidatpy tests
11+
.venv/bin/ruff check epidatpy tests
1212

1313
lint_mypy:
14-
env/bin/mypy epidatpy tests
14+
.venv/bin/mypy epidatpy tests
1515

1616
lint_pylint:
17-
env/bin/pylint epidatpy tests
17+
.venv/bin/pylint epidatpy tests
1818

1919
lint: lint_ruff lint_mypy lint_pylint
2020

2121
format:
22-
env/bin/ruff format epidatpy tests
22+
.venv/bin/ruff format epidatpy tests
2323

2424
test:
25-
env/bin/pytest .
25+
.venv/bin/pytest .
2626

2727
doc:
2828
@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"
3131

3232
clean_doc:
3333
rm -rf docs/_build
@@ -45,7 +45,7 @@ clean_python:
4545
clean: clean_doc clean_build clean_python
4646

4747
release: clean lint test
48-
env/bin/python -m build --sdist --wheel
48+
.venv/bin/python -m build --sdist --wheel
4949

5050
upload: release
51-
env/bin/twine upload dist/*
51+
.venv/bin/twine upload dist/*

0 commit comments

Comments
 (0)