-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
154 lines (136 loc) · 3.99 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = 'convoke'
description = 'A Python app configuration toolkit that tries to do things right.'
version = "2.2.9"
authors = [
"David Eyk <[email protected]>"
]
homepage = "https://github.com/eykd/convoke/"
repository = "https://github.com/eykd/convoke"
documentation = "https://eykd.github.io/convoke/latest/"
packages = [
{ include = "convoke", from = "src" },
]
license = "BSD"
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Environment :: Plugins",
"License :: OSI Approved :: BSD License",
]
[tool.poetry.dependencies]
python = "^3.11"
funcy = "^2.0"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
coverage = "^7.4"
hypothesis = "^6.92"
moto = {extras = ["server"], version = "^4.2"}
mypy = "^1.8"
pytest = "^7.4"
pytest-asyncio = "^0.23"
pytest-cov = "^4.1"
pytest-profiling = "^1.7"
pytest-random-order = "^1.1"
pytest-vcr = "^1.0"
pytest-xdist = "^3.5"
ruff = "^0.1"
tox = "^4.12.1"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
black = ">=23.12,<25.0"
fakemail = "^0.1"
nest-asyncio = "^1.5"
pre-commit = "^3.6"
ipython = "^8.19"
isort = "^5.13"
mkdocs = "^1.5"
pdbpp = "^0.10"
snakeviz = "^2.2"
tox = "^4.11"
watchfiles = "^0.21"
mkdocstrings = "^0.24.0"
mkdocstrings-python = "^1.8.0"
mkdocs-autorefs = "^0.5.0"
mkdocs-material = "^9.5.6"
mike = "^2.0.0"
[tool.ruff]
# Python linter & formatter
# https://docs.astral.sh/ruff/
line-length = 120
src = ["src"]
target-version = "py311"
[tool.ruff.lint]
select = [
"E4", # https://docs.astral.sh/ruff/rules/#error-e
"E7",
"E9",
"F", # https://docs.astral.sh/ruff/rules/#pyflakes-f
"W", # https://docs.astral.sh/ruff/rules/#warning-w
"C901", # https://docs.astral.sh/ruff/rules/#mccabe-c90
"D", # https://docs.astral.sh/ruff/rules/#pydocstyle-d
]
ignore = [
"D105", # https://docs.astral.sh/ruff/rules/undocumented-magic-method/
"D106", # https://docs.astral.sh/ruff/rules/undocumented-public-nested-class/
"D107", # https://docs.astral.sh/ruff/rules/undocumented-public-init/
"D203", # https://docs.astral.sh/ruff/rules/one-blank-line-before-class/
"D213", # https://docs.astral.sh/ruff/rules/multi-line-summary-second-line/
"D400", # https://docs.astral.sh/ruff/rules/ends-in-period/
"D401", # https://docs.astral.sh/ruff/rules/non-imperative-mood/
"D404", # https://docs.astral.sh/ruff/rules/docstring-starts-with-this/
"D415", # https://docs.astral.sh/ruff/rules/ends-in-punctuation/
"E501", # https://docs.astral.sh/ruff/rules/line-too-long/
]
[tool.black]
# Python style formatter
# https://black.readthedocs.io/en/stable/index.html
line-length = 120
target-version = ['py311']
[tool.isort]
# Python import sorter
# https://pycqa.github.io/isort/
profile = "black"
[tool.pytest.ini_options]
# The best Python test runner
# https://docs.pytest.org/en/latest/contents.html
markers = [
# If you have slow tests that you want to exclude, mark them like so:
# @pytest.mark.slow
# def test_my_slow_test():
# # ...
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
[tool.coverage.run]
# Python test coverage tool
# https://coverage.readthedocs.io/
branch = true
source = ['src']
omit = [
'*/test*.py',
'*/conftest.py',
]
[tool.coverage.report]
show_missing = true
[tool.mypy]
# Python type checking
# https://www.mypy-lang.org/
plugins = ["pydantic.mypy"]
[tool.pip-tools]
# Python dependency pinning
# https://github.com/jazzband/pip-tools
index-url = 'https://pypi.org/simple'
emit-options = true
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "pep440"
version_provider = "poetry"
update_changelog_on_bump = true