-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
143 lines (125 loc) · 2.6 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "cally"
dynamic = ["version"]
dependencies = [
"cdktf",
"click",
"dynaconf",
"PyYAML",
]
requires-python = ">=3.8"
authors = [
{name = "Leon Wright", email = "[email protected]"},
]
description = "A config as infrastructure foundation for your Internal Developer Platform"
readme = "README.md"
license = {file = "LICENSE"}
[project.urls]
Repository = "https://github.com/CallyCo-io/Cally/"
Issues = "https://github.com/CallyCo-io/Cally/issues"
[project.optional-dependencies]
development = [
"black",
"build",
"isort",
"mypy",
# test
"coverage",
"pytest",
"pytest-black",
"pytest-mypy",
"pytest-ruff",
"ruff",
"types-PyYAML",
# docs
"sphinx",
"sphinx-autobuild",
"sphinx-issues",
"sphinxcontrib-log-cabinet",
"sphinx-tabs",
"sphinx-click",
"Pallets-Sphinx-Themes",
]
test = [
"black",
"build",
"coverage",
"mypy",
"pytest",
"pytest-black",
"pytest-mypy",
"pytest-ruff",
"ruff",
"types-PyYAML",
]
provider_build = [
"build"
]
docs = [
"sphinx",
"sphinx-issues",
"sphinxcontrib-log-cabinet",
"sphinx-tabs",
"sphinx-click",
"Pallets-Sphinx-Themes",
]
[project.scripts]
cally = "cally.cli:cally"
[tool.black]
skip-string-normalization = true
[tool.coverage.run]
branch = true
omit = ["tests/*", "docs/*", "*/tests/no_testdata.py"]
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
" pass",
]
[[tool.mypy.overrides]]
module = "pallets_sphinx_themes.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "dynaconf.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "cally.providers.*"
ignore_missing_imports = true
[tool.isort]
profile = "black"
src_paths = ["src", "tests"]
[tool.pytest.ini_options]
pythonpath = "src"
testpaths = "tests"
addopts = "--black --mypy --ruff"
filterwarnings = [
"ignore",
"default:::cally.*",
"default:::tests.*"
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.dynamic]
version = {attr = "cally.cli._version.VERSION"}
[tool.ruff]
preview = true
exclude = ["docs"]
[tool.ruff.lint]
select = [
# flake8
"A", "ARG", "B", "BLE", "C4", "PIE", "RET", "SIM", "S",
"F", # pyflakes
"N", # pep8-nameing
"PL", # pylint
"E", # error
"W", # warning
"PTH", # pathlib
"RUF", # ruff
]
[tool.ruff.lint.per-file-ignores]
"src/cally/cli/tools/provider.py" = [
"S404", # `subprocess` module is possibly insecure - used for 'cdktf get'
"S602" # `subprocess` call with `shell=True` identified - required for 'cdktf get'
]