-
Notifications
You must be signed in to change notification settings - Fork 55
/
pyproject.toml
132 lines (115 loc) · 2.88 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
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "cfripper"
description="Library and CLI tool for analysing CloudFormation templates and check them for security compliance."
readme = "README.md"
requires-python = ">=3.8.0"
dynamic = ["version"]
license = { file = "LICENSE.md" }
authors = [
{ name = "Skyscanner Security", email = "[email protected]" }
]
keywords = [
"security",
"cloudformation",
"aws",
"cli"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Security"
]
dependencies = [
"boto3>=1.4.7,<2",
"cfn_flip>=1.2.0",
"click>=8.0.0",
"pluggy~=0.13.1",
"pycfmodel>=1.0.0",
"pydash>=4.7.6",
"PyYAML>=4.2b1"
]
[project.urls]
documentation = "https://cfripper.readthedocs.io/"
repository = "https://github.com/Skyscanner/cfripper"
[project.scripts]
cfripper = "cfripper.cli:cli"
[project.optional-dependencies]
dev = [
"moto[all]>=5",
"pytest-cov>=2.5.1",
"pytest>=3.6",
"ruff",
"uv",
]
docs = [
"mkdocs==1.3.0",
"mkdocs-macros-plugin==0.7.0",
"mkdocs-material==8.2.8",
"mkdocs-material-extensions==1.0.3",
"mkdocs-minify-plugin==0.5.0",
]
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
".git-rewrite",
".pyenv",
".pytest_cache",
".ruff_cache",
".venv",
".vscode",
"__pypackages__",
"_build",
"build",
"dist",
"node_modules",
"site",
"site-packages",
"venv",
]
line-length = 120
indent-width = 4
target-version = "py38"
[tool.ruff.lint]
select = ["E", "F", "W", "A", "PLC", "PLE", "PLW", "I"]
ignore = ["A002", "E501"]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[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]
log_cli = true
log_level = "INFO"
[tool.coverage.report]
show_missing = true
skip_covered = false
[tool.coverage.run]
branch = true
source = ["cfripper"]
[tool.setuptools]
include-package-data = false
[tool.setuptools.packages.find]
# needed only because we did not adopt src layout yet
include = ["cfripper*"]
[tool.setuptools_scm]