-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
151 lines (137 loc) · 3.64 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
144
145
146
147
148
149
150
151
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools"]
[project]
authors = [
{name = "ThreatConnect", email = "[email protected]"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Security",
]
dependencies = [
"arrow",
"black",
"debugpy",
"inflection",
"isort",
"paho-mqtt<2.0.0",
"pyaes",
"pydantic<2.0.0",
"python-dateutil",
"PyYAML",
"redis<5.0.0",
"requests",
"rich",
"semantic_version",
"tinydb",
"typer[all]",
]
description = "ThreatConnect Exchange App CLI Tool"
dynamic = ["readme", "version"]
keywords = ["tcex", "threatconnect"]
license = {text = "Apache-2.0"}
name = "tcex_cli"
requires-python = ">=3.11"
[project.optional-dependencies]
dev = [
"bandit",
"pre-commit",
"pydocstyle",
"pylint",
"pyright",
"pyupgrade",
]
test = [
"pytest",
"pytest-cov",
]
[project.scripts]
tcex = "tcex_cli.cli.cli:app"
[project.urls]
Documentation = "https://github.com/ThreatConnect-Inc/tcex-cli"
Source = "https://github.com/ThreatConnect-Inc/tcex-cli"
[tool.setuptools.dynamic]
readme = {file = ["README.md"], content-type = "text/markdown"}
version = {attr = "tcex_cli.__version__"}
[tool.setuptools.packages.find]
exclude = ["tests*", "local-*"]
#
# Linters / Formatters
#
[tool.black]
line-length = 100
skip-string-normalization = true
[tool.codespell]
# ignore-words-list=
skip = "*.history,*local"
[tool.isort]
dedup_headings = false
import_heading_firstparty = "first-party"
import_heading_stdlib = "standard library"
import_heading_thirdparty = "third-party"
include_trailing_comma = true
known_first_party = ""
known_local_folder = "."
known_third_party = ""
line_length = 100
profile = "black"
[tool.pydocstyle]
ignore = [
"D202", # no blank lines allowed after function docstring
"D203", # 1 blank line required before class docstring (found 0)
"D213", # Multi-line docstring summary should start at the second line
"D400", # First line should end with a period ...
"D406", # Section name should end with a newline ...
"D407", # Missing dashed underline after section ...
"D413", # Missing blank line after last section ...
"D415", # First line should end with a period, question mark, or exclamation point ...
]
[tool.pylint.messages_control]
disable = [
"broad-exception-caught",
"duplicate-code",
"fixme",
"inconsistent-return-statements", # pylint doesn't properly handle "NoReturn" in all cases
"invalid-name",
"logging-fstring-interpolation",
"relative-beyond-top-level", # disable relative rule due to this project being a submodule
"too-few-public-methods",
"too-many-ancestors",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-public-methods",
"too-many-return-statements",
]
extension-pkg-whitelist = "pydantic"
[tool.pyright]
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-pyprojecttoml-file
exclude = [
"**/.history",
"**/__pycache__",
"**/local-*",
"tcex/api/tc/v2",
"tests",
]
pythonPlatform = "Linux"
pythonVersion = "3.11"
reportIncompatibleMethodOverride = false
reportIncompatibleVariableOverride = false
reportPrivateImportUsage = false
[tool.pytest.ini_options]
filterwarnings = []
junit_family = "xunit2"
testpaths = [
"tests",
]