-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
103 lines (85 loc) · 2.45 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
[tool.poetry]
name = "hypermodern-python"
version = "0.2.0"
description = "My python modern config"
authors = ["Duk <[email protected]>"]
license = "MIT"
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Topic :: Games/Entertainment :: Fortune Cookies",
]
homepage = "https://github.com/duksosleepy/hypermodern-python"
repository = "https://github.com/duksosleepy/hypermodern-python"
keywords = ["hypermodern"]
documentation = "https://hypermodern-python.readthedocs.io"
packages = [{include = "hypermodern_python", from = "src"}]
include = ["tests"]
[tool.poetry.dependencies]
python = "^3.12"
safety-db = "^2021.7.17"
codecov = "^2.1.13"
httpx = "^0.27.0"
jsonargparse = {extras = ["all"], version = "^4.32.0"}
loguru = "^0.7.2"
cattrs = {extras = ["orjson"], version = "^23.2.3"}
[tool.poetry.group.dev.dependencies]
pytest = "^7.2.1"
coverage = {extras = ["toml"], version = "^7.1.0"}
pytest-cov = "^4.0.0"
pytest-mock = "^3.10.0"
mypy = "^1.0.1"
xdoctest = "^1.1.1"
sphinx = "^6.1.3"
sphinx-autodoc-typehints = "^1.22"
codecov = "^2.1.12"
factory-boy = "^3.3.0"
pytest-httpserver = "^1.0.12"
pytest-xdist = "^3.6.1"
ruff = "^0.5.5"
typeguard = "^4.3.0"
[tool.poetry.urls]
Issues = "https://github.com/duksosleepy/hypermodern-python/issues"
[tool.poetry.scripts]
hypermodern-python = "hypermodern_python.console:main"
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.coverage.run]
parallel = true
branch = true
source = ["hypermodern_python", "tests"]
[tool.coverage.report]
show_missing = true
fail_under = 100
[tool.black]
line-length = 88
target-version = ['py37', 'py38']
include = '\.pyi?$'
preview = true
[tool.ruff]
src = ["src"]
preview = true
extend-exclude = ["example.py"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", # flake8-annotations
"COM812", # missing-trailing-comma
"CPY001", # missing-copyright-notice
"D", # pydocstyle
"PT001", # pytest-fixture-incorrect-parentheses-style
"ISC001", # single-line-implicit-string-concatenation
]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["INP001"] # implicit-namespace-package
"tests/*" = ["S101"] # assert
[tool.mypy]
strict = true
pretty = true
[tool.poetry-dynamic-versioning]
enable = true
substitution.folders = [{path = "src"}]
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"