-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 869 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (21 loc) · 869 Bytes
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
format: ## Black format every python file to line length 100
find . -type f -name "*.py" | xargs black --line-length=100
make clean
github-test: ## Run pytest for every test file in GitHub Actions
pytest -W ignore -vv .
test: ## Run pytest for every test file
pip install -e . > /dev/null
make github-test
make clean
flake8: ## Flake8 every python file
find . -type f -name "*.py" -a | xargs flake8
pylint: ## Pylint every python file
find . -type f -name "*.py" -a | xargs pylint
build: ## Build package distribution files
python -m build
publish: ## Publish package distribution files to PyPI
twine upload dist/*
make clean
clean: ## Remove caches, checkpoints, and distribution artifacts
find . \( -name ".DS_Store" -o -name ".ipynb_checkpoints" -o -name "__pycache__" -o -name ".pytest_cache" \) | xargs rm -rf
rm -rf dist/ build/ **/*.egg-info