-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
99 lines (89 loc) · 2.91 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
[build-system]
requires = ["poetry-core==1.9.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "jsnac"
version = "0.2.1"
description = "JSON Schema (for) Network as Code: Build JSON schemas from YAML"
authors = ["Andrew Jones <jsnac@commitconfirmed.com>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/commitconfirmed/jsnac"
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
pyyaml = ">=6.0.2,<7.0.0"
[tool.poetry.scripts]
jsnac = "jsnac.utils.jsnac_cli:main"
[tool.poetry.group.dev.dependencies]
pytest = ">=8.3.0,<9.0.0"
pytest-cov = ">=5.0.0,<6.0.0"
jsonschema = ">=4.23.0,<5.0.0"
tox = ">=4.21.0,<5.0.0"
mypy = ">=1.12.1,<2.0.0"
types-PyYAML = ">=6.0.12,<7.0.0"
ruff = ">=0.7.0,<1.0.0"
[tool.poetry.group.docs.dependencies]
sphinx = ">=8.1.3,<9.0.0"
sphinx-rtd-theme = ">=3.0.1,<4.0.0"
# Basic mypy configuration until I learn more about it
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
exclude = [
"venv.*/",
"data/",
"tests/",
]
# Basic ruff configuration until I learn more about it
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
preview = true
select = ["ALL"]
ignore = [
"COM812", # Recommended to be disabled
"CPY001", # Missing copyright notice at top of file
"D100", # Missing docstring in public module
"D205", # One blank line required between summary line and description
"D203", # One blank line before class
"D212", # Multi-line docstring summary should start at the first line
"D401", # First line of docstring should be in imperative mood
"D400", # First line should end with a period
"D415", # First line should end with a period, question mark, or exclamation point
"ISC001", # Recommended to be disabled
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"ANN001", # Type annotations
"CPY001", # Copyright
"S101", # Use of `assert` detected
"S104", # Valid tests against 0.0.0.0
"D100", # Missing docstring in public module
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
]
"**/__init__.py" = [
"D104", # Missing docstring in public package
"F401", # Imported but unused
"F403", # Wildcard imports
]
"docs/**" = [
"A001", # Variable `copyright` is shadowing a Python builtin
"D100", # Missing docstring in public module
"E402", # Module level import not at top of file
"INP001", # Requires __init__.py but docs folder is not a package.
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"