-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
20 lines (15 loc) · 850 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
black: ## black format every python file to line length 100 except ./craigslist_meta/metadata.py
find . -type f -name "*.py" -a ! -name "metadata.py" | xargs black --line-length=100;
find . -type d -name "__pycache__" | xargs rm -r;
flake: ## flake8 every python file except ./craigslist_meta/metadata.py
find . -type f -name "*.py" -a ! -name "metadata.py" | xargs flake8;
pylint: ## pylint every python file except ./craigslist_meta/metadata.py
find . -type f -name "*.py" -a ! -name "metadata.py" | xargs pylint;
setup: ## build package distribution files
python ./setup.py sdist;
upload: ## upload package distribution files to pypi
twine upload ./dist/*;
make clean;
clean: ## remove package distribution files and pycache
rm -rf ./python_craigslist_meta.egg-info ./dist ./build;
find . -type d -name "__pycache__" | xargs rm -r;