-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
96 lines (80 loc) · 2.5 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
[tool.poetry]
name = "pydantic-glue"
keywords = ["pydantic", "glue", "athena", "types", "convert"]
version = "0.6.1"
description = "Convert pydantic model to aws glue schema for terraform"
authors = ["Serhii Dimchenko <[email protected]>"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/svdimchenko/pydantic-glue"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/svdimchenko/pydantic-glue/issues"
"Releases" = "https://github.com/svdimchenko/pydantic-glue/releases"
[tool.poetry.scripts]
pydantic-glue = "pydantic_glue.cli:cli"
[tool.poetry.dependencies]
python = "^3.9"
jsonref = "^1.1.0"
pydantic = "^2.7.1"
[tool.poetry.group.dev.dependencies]
pytest = "^8.2.0"
cli-test-helpers = "^4.1.0"
mypy = "^1.10.0"
pre-commit = ">=3.7,<5.0"
ruff = "^0.9.4"
pytest-cov = "^6.0.0"
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py39"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# The following rules may cause conflicts when used with the formatter
"COM812",
"ISC001",
# General ignores
"ANN204", # Missing return type annotation for special method `__init__`
"D107", # Missing docstring in `__init__`
"D203", # one-blank-line-before-class
"D213", # multi-line-summary-second-line
"G004", # Logging statement uses f-string
"UP007", # Use `X | Y` for type annotations
]
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"**/{tests}/*" = [
"ANN001", # Missing type annotation for function argument
"ANN201", # Missing return type annotation for public function
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D103", # Missing docstring in public function
"S101", # Use of `assert` detected
"S603", # `subprocess` call: check for execution of untrusted input
]
"__init__.py" = ["D104"] # Missing docstring in public package
"pydantic_glue/errors.py" = [
"D101", # Missing docstring in public class
]
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["pydantic.BaseModel"]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov"
[tool.mypy]
ignore_missing_imports = true
strict = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"