-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
79 lines (64 loc) · 1.37 KB
/
pyproject.toml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.black]
line-length = 88
target-version = ['py37']
[project]
name = "shopauth"
dynamic = ["version"]
license = {text = "MIT"}
dependencies = [
"pyjwt",
"requests",
"zope.interface",
]
[project.optional-dependencies]
pyramid = [
"pyramid",
]
sqlalchemy = [
"sqlalchemy",
]
[tool.hatch]
[tool.hatch.version]
path = "src/shopauth/__version__.py"
[tool.hatch.build.targets.sdist]
include = [
"/src/shopauth",
]
# @TODO
[tool.hatch.envs.testing]
skip-install=false
dependencies=[
]
template = "testing"
# @TODO
[tool.hatch.envs.docs]
skip-install = true
dependencies = [
]
template = "docs"
[tool.hatch.envs.docs.scripts]
[tool.hatch.envs.default]
# This is for working natively in the repo.
skip-install = true
dependencies = [
# Linter
"flake8",
# Code formatter
"black",
# Extension to find bugs when running linter.
"flake8-bugbear",
# Manages pre commits like black/flake8.
"pre-commit",
]
[tool.hatch.envs.default.scripts]
# Re-install precommit hooks if we changed hatch VE.
pre-commit-install="pre-commit install"
# Tag current revision and push tag to origin.
tag=[
"git tag -a v`hatch version` -m Version' '`hatch version`",
"git push origin v`hatch version`"
]
bump-changelog="python changelogger.py {root}/CHANGELOG.rst v`hatch version`"