-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
30 lines (23 loc) · 885 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
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;
test: ## Verbosely pytest ./tests/
python -m pytest ./tests/ -vv;
make clean;
pre-commit: ## Install and autoupdate pre-commit
pre-commit install;
pre-commit autoupdate;
build: ## Build package distribution files
flit build;
publish: ## Publish package distribution files to pypi
flit publish;
make clean;
clean: ## Remove package distribution files and pycache
rm -rf ./pycraigslist.egg-info ./dist ./build;
find . -type d -name "__pycache__" | xargs rm -r;
find . -type d -name ".pytest_cache" | xargs rm -r;