-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (23 loc) · 956 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
format-isort: ## Fixes .py files with isort
@echo "⚙️ Fixing isort formatting issues"
isort .
format-black: ## Fixes .py files with black
@echo "⚙️ Fixing black formatting issues"
black . --line-length 100
format-unused-imports: ## Fixes unused imports and unused variables
@echo "⚙️ Removing unused imports"
autoflake -i --remove-all-unused-imports --recursive .
format: format-unused-imports format-isort format-black
lint-flake8: ## Checks if .py files follow flake8
@echo "⚙️ Checking flake8 errors"
flake8 --max-line-length=100 .
lint-pylint: ## Checks if .py files follow pylint
@echo "⚙️ Checking pylint errors"
pylint --max-line-length=100 --recursive=y .
check-lint: lint-flake8 lint-pylint
clean: ## Cleans up the local-development environment except .env
rm -rf .mypy_cache
rm -rf .pytest_cache
rm -f .coverage
find . -name __pycache__ -type d -prune -exec rm -rf {} \;
find . -name '.DS_Store' -delete