-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (20 loc) · 812 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
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;
test: ## Run pytest for every test file
pytest -W ignore -vv .;
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
flit build;
publish: ## Publish package distribution files to pypi
flit publish;
make clean;
clean: ## Remove package distribution files, caches, and .DS_Store
rm -rf ./sgd.egg-info ./dist ./build;
find . -type d -name "__pycache__" -o -name ".pytest_cache" | xargs rm -r;
find . -type f -name ".DS_Store" | xargs rm -r;