-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 777 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 777 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
black: ## Black format every python file to line length 100
find . -type f -name "*.py" | xargs black --line-length=100;
find . -type f -name "*.py" | xargs absolufy-imports;
make clean;
flake: ## 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;
unittest: ## Verbosely test ./tests/test_actransit.py
python tests/test_actransit.py -v;
make clean;
build: ## Build package distribution files
python setup.py sdist bdist_wheel;
publish: ## Publish package distribution files to pypi
twine upload dist/*;
make clean;
clean: ## Remove package distribution files and pycache
rm -rf *.egg-info ./dist ./build;
find . -type d -name "__pycache__" | xargs rm -r;