-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
121 lines (103 loc) · 2.94 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
[tool.poetry]
name = "jsonype"
version = "0" # ignored
description = "A package for converting classes with type hints to/from JSON"
homepage = "https://github.com/volkerstampa/jsonype"
authors = ["Volker Stampa <[email protected]>"]
maintainers = ["Volker Stampa <[email protected]>"]
readme = "README.md"
license = "Apache-2.0"
keywords = ["json"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.setuptools_scm]
version_file = "jsonype/_version.py"
local_scheme = "poetry_setuptools_scm_plugin:no_local_scheme"
[tool.pylama]
# dont run mypy through pylama because of:
# https://github.com/klen/pylama/issues/163
linters = "eradicate,mccabe,pycodestyle,pydocstyle,pyflakes,pylint,radon,vulture,isort"
skip = "docs/*"
[tool.pylama.linter.pydocstyle]
ignore = "D100,D101,D102,D103,D104,D105,D107,D203,D213,D410,D411,D406,D413,D407"
[tool.pylama.linter.mypy]
cache_dir = "build/.mypy_cache"
strict = "True"
files = "jsonype,tests"
[tool.pylama.linter.pylint]
# FromJsonConverter.convert has 6 args, one of which is self
# still unsure how to reduce this best so relax the lint check
max_args = 6
max_positional_arguments = 6
[tool.pydocstyle]
ignore = "D100,D101,D102,D103,D104,D105,D107,D203,D213,D410,D411,D406,D413,D407"
[tool.mypy]
cache_dir = "build/.mypy_cache"
strict = "True"
files = "jsonype,tests"
[tool.isort]
line_length = 100
src_paths = ["jsonype", "tests"]
[tool.pylint."messages control"]
disable = ["invalid-name", "missing-module-docstring", "missing-function-docstring", "missing-class-docstring"]
ignore = ["docs"]
recursive = true
[tool.pylint.design]
max-args = 6
max-positional-arguments = 6
[tool.radon]
ignore = ["docs"]
cc_min = "C"
[tool.vulture]
min_confidence = 61
paths = ["jsonype", "tests"]
[tool.ruff]
line-length = 100
cache-dir = "build/ruff_cache"
exclude = ["docs"]
[tool.ruff.lint]
select = ["ALL"]
ignore = ["D100", "D101", "D102", "D103", "D104", "D105", "D107", "D203", "D213",
"D406", "D407", "D410", "D411", "D413",
"ARG002",
"ANN401",
"S101", "S311",
"FA102",
"COM812",
"FBT001", "FBT002",
"PLC0414",
"RUF100",
"FA100",
"I001",
"PT013",
"PYI042"]
[tool.pytest.ini_options]
cache_dir = "build/pytest_cache"
[tool.poetry.dependencies]
python = "^3.11"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.1"
mypy = "^1.10.0"
sphinx = ">=7.3.7,<9.0.0"
pycodestyle = "^2.12.0"
pyflakes = "^3.2.0"
mccabe ="^0.7.0"
radon="^6.0.1"
# pydocstyle>=6.2 breaks lama: https://github.com/klen/pylama/issues/232
pydocstyle = "~6.1.1"
pylint = "^3.2.3"
toml = "^0.10.2"
pylama = "^8.4.1"
vulture = "^2.11"
eradicate = "^2.3.0"
sphinx-rtd-theme = ">=2,<4"
setuptools = ">=70.1,<76.0"
ruff = ">=0.4.10,<0.9.0"