-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
42 lines (30 loc) · 899 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
31
32
33
34
35
36
37
38
39
40
41
42
check: format lint test clean
SOURCE_FILES=pybash test_pybash.py
install:
pip install -e .
test:
pytest test_pybash.py -vv -rs
dev:
python run.py
clean:
rm -rf build/ dist/ *.egg-info .pytest_cache
find . -name '*.pyc' -type f -exec rm -rf {} +
find . -name '__pycache__' -exec rm -rf {} +
package: clean
python -m build
publish: package
twine upload dist/*
format:
autoflake --in-place --recursive --remove-all-unused-imports --ignore-init-module-imports ${SOURCE_FILES}
isort --project=pybash ${SOURCE_FILES}
black ${SOURCE_FILES}
lint:
isort --check --diff --project=pybash ${SOURCE_FILES}
black --check --diff ${SOURCE_FILES}
flake8 $(SOURCE_FILES) --count --show-source --statistics
flake8 $(SOURCE_FILES) --count --exit-zero --statistics
shell:
source $(poetry env info --path)/bin/activate
debug:
python -m ideas examples.demo -a pybash.hook -s
.PHONY: test clean