-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
46 lines (34 loc) · 1.25 KB
/
Copy pathmakefile
File metadata and controls
46 lines (34 loc) · 1.25 KB
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
main: fix-isort fix-yapf check-code-style test check-fixtures
test:
poetry run py.test --ff --cov dypendence
test-report:
poetry run py.test --ff --cov dypendence --html=report.html --self-contained-html
check-fixtures:
poetry run py.test dypendence --dead-fixtures --dup-fixtures
check-yapf:
poetry run yapf -d -r -p dypendence
fix-yapf:
poetry run yapf -i -r -p dypendence
check-isort:
poetry run isort -c dypendence
fix-isort:
poetry run isort dypendence
reformat-files: fix-yapf fix-isort
check-code-style: check-isort check-yapf
poetry run flake8 dypendence
badge:
poetry run coverage-badge -o ./coverage.svg
poetry run s3cmd -P -s --mime-type=image/svg+xml --host=$$MINIO_HOST --host-bucket=$$MINIO_HOST --access_key=$$MINIO_KEY --secret_key=$$MINIO_SECRET --signature-v2 --no-check-certificate --check-hostname put ./coverage.svg s3://coverage/$${GITHUB_REPOSITORY}/coverage.svg
release:
git checkout develop
git pull
make test
make check-fixtures
make check-code-style
poetry version patch
git add pyproject.toml
git commit -m "Bump version"
git flow release start -F "v$$(poetry version --short)"
git flow release finish -m "v$$(poetry version --short)" -F -D -p
publish:
poetry publish --build --username=__token__ --password=$$PYPI_TOKEN