-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (34 loc) · 762 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
43
44
45
46
47
48
49
50
51
check: test lint
test: test-runflake8 test-pytest
clean:
rm -rf dist/*
test-runflake8:
tests/run_flake8/Run.sh
test-pytest:
coverage erase
coverage run -m unittest discover -v # tests/test_*.py
coverage xml --fail-under 90
codecov:
codecov
lint: mypy flake8
flake8:
flake8 --version
flake8 --ignore=E501,W503 .
isortify:
isort .
blacken:
black .
mypy:
# Temporarily check only package directory
mypy --strict flake8_no_implicit_str_concat_in_list/
sdist: clean
hatch build -t sdist
wheel: clean
hatch build -t wheel
HATCH_INDEX_REPO ?= test
publish: sdist wheel
hatch publish -r $(HATCH_INDEX_REPO)
# Do not add to devdependencies because different platforms install
# different packages
publish-installdeps:
pip install hatch