-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPipfile
35 lines (31 loc) · 1.15 KB
/
Pipfile
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
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
Deprecated = "~=1.2"
[dev-packages]
build="*"
pycodestyle = "*"
twine="*"
mypy = "~=1.11.0"
# mypy types
types-Deprecated = "*"
types-requests = "*"
[requires]
python_version = "3"
[scripts]
# --- packaging ---------------------------------------------------------------
clean = "rm -rf dist build src/viur_shop.egg-info"
#build = "python -m build --wheel"
build = "python -m build"
release = "python -m twine upload dist/*"
release_test = "python -m twine upload --repository testpypi dist/*"
# --- linters -----------------------------------------------------------------
pep8check = "bash -c \"git diff -U0 | pycodestyle --diff --show-source\""
# mypy must be executed in root dir, therefore we run this in a subshell with a cd before
type_check = "bash -c \"(cd \\\"$(pipenv --where)\\\"; mypy .)\""
lint = "bash -c \"pipenv run pep8check ; pipenv run type_check\""
# --- pre-commit --------------------------------------------------------------
precommit_install = "./hooks/pre-commit_install.sh"
precommit_remove = "bash -c \"rm \\\"$(git rev-parse --git-path hooks)/pre-commit\\\"\""