-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpyproject.toml
97 lines (84 loc) · 2.21 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
[build-system]
requires = ["setuptools >= 61.0.0", "setuptools-scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "pydantic_yaml"
description = "Adds some YAML functionality to the excellent `pydantic` library."
readme = "README.md"
requires-python = ">=3.8"
dynamic = ["version"]
keywords = ["pydantic", "yaml"]
license = { file = "LICENSE" }
authors = [{ name = "NowanIlfideme", email = "[email protected]" }]
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development",
"Typing :: Typed",
"Operating System :: OS Independent",
]
dependencies = [
"pydantic>=1.8", # including pydantic>=2.0.0!
"ruamel.yaml>=0.16.0,<0.19.0", # recommended ~=0.17.21
"typing_extensions>=4.5.0",
]
urls = { github = "https://github.com/NowanIlfideme/pydantic-yaml", docs = "https://pydantic-yaml.readthedocs.io/en/latest/" }
[project.optional-dependencies]
dev = [
"setuptools>=61.0.0",
"setuptools-scm[toml]>=6.2",
"pre-commit==3.5.0",
"ruff==0.8.1",
"black==24.8.0",
"mypy==1.13.0",
"pytest==8.3.4",
]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocstrings[python]",
"pymdown-extensions",
"pygments",
]
[project.scripts]
[tool.setuptools]
zip-safe = false
package-dir = { "" = "src" }
packages = ["pydantic_yaml"]
[tool.setuptools.package-data]
[tool.setuptools.dynamic]
version = { attr = "pydantic_yaml.version.__version__" }
[tool.black]
line-length = 105
target-version = ['py38']
include = '^/src/pydantic_yaml.*\.py' # all .py files
extend-exclude = '''
^/setup.py
|^/docs
|^/dist
'''
[tool.ruff]
line-length = 105
target-version = 'py38'
src = ["src"]
select = [
"E", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade
"D", # pydocstyle
]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.pytest.ini_options]
testpaths = ["src/test"]
[tool.mypy]
files = 'src/pydantic_yaml/**/*.py'
warn_unused_configs = true
[[tool.mypy.overrides]]
module = 'ruamel.*'
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = 'setuptools_scm.*'
ignore_missing_imports = true