-
Notifications
You must be signed in to change notification settings - Fork 73
/
pyproject.toml
204 lines (188 loc) · 8.09 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry_core>=1.0.0"]
[tool.poetry]
authors = ["Dylan Ayrey <dxa4481@rit.edu>"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Security",
"Topic :: Software Development :: Version Control :: Git",
"Typing :: Typed",
]
description = "tartufo is a tool for scanning git repositories for secrets/passwords/high-entropy data"
documentation = "https://tartufo.readthedocs.io/"
include = ["CHANGELOG.md", "README.md"]
keywords = ["git", "security", "secrets", "entropy", "scanner"]
license = "GPL-2.0-only"
maintainers = ["GoDaddy <oss@godaddy.com>"]
name = "tartufo"
readme = "README.md"
repository = "https://github.com/godaddy/tartufo/"
version = "2.4.0"
[tool.poetry.scripts]
tartufo = "tartufo.cli:main"
[tool.poetry.dependencies]
GitPython = ">= 2.1.1, <4.0.0"
click = "^7"
colorama = {version = "*", markers = "sys_platform == 'win32'"}
dataclasses = {version = "*", python = "< 3.7"}
python = "^3.6"
recommonmark = {version = "^0.6", optional = true}
sphinx = {version = "^3.2", optional = true}
sphinx-click = {version = "^2.5.0", optional = true}
sphinx-rtd-theme = {version = "^0.5.0", optional = true}
sphinxcontrib-spelling = {version = "^5.4.0", optional = true}
toml = "^0.10"
truffleHogRegexes = "^0.0.7"
[tool.poetry.dev-dependencies]
black = {version = "20.8b1", allow-prereleases = true, markers = "platform_python_implementation == 'CPython'"}
coverage = {extras = ["toml"], version = "^5.1"}
mypy = {version = "^0.800", markers = "platform_python_implementation == 'CPython'"}
pre-commit = "*"
pylint = "^2.6.0"
pytest = "^6.2.2"
pytest-cov = "^2.11.1"
pytest-sugar = "^0.9.4"
tox = "^3.21.4"
vulture = "^2.3"
[tool.poetry.extras]
docs = ["recommonmark", "sphinx", "sphinx-click", "sphinx-rtd-theme", "sphinxcontrib-spelling"]
[tool.tartufo]
cleanup = true
entropy = true
exclude-path-patterns = [
'poetry.lock',
'pyproject.toml',
# To not have to escape `\` in regexes, use single quoted
# TOML 'literal strings'
'.github/workflows/(.*)\.yml',
'docs/source/(.*)\.rst',
'tests/test_base_scanner\.py',
'tests/test_util.py',
'tests/data/testRules.json',
]
exclude-signatures = [
"62f22e4500140a6ed959a6143c52b0e81c74e7491081292fce733de4ec574542",
"ecbbe1edd6373c7e2b88b65d24d7fe84610faafd1bc2cf6ae35b43a77183e80b",
"8396b1d3644342be68687c60baa0c514947a378145d73e7024124dc41374716f",
"39c9b3d1841fd0a9e2f17cddc42be2f2f860e321026403a0ebee997c0b9cb823",
"7ac6c26fb6d5a4de410588cfc372bb7b8de705c081843e34921389be7f66da99",
"e427548d2111e3b04aa23c998a8288645385206cea30cf7137acf7147dc32354",
"dbc084c22395931afd734a5be53f1cde913c7d988034b856087c744b424d9673",
"bc67523b08b2170ca9b802535684454140679af3156bff808508cf32b33aa240",
"978dc8605ef9bf471e467dd2d8570fd658f0a5f25378799a2ad8bb6ea480173d",
"85109edb8081a60f3a44139a98b643b8cacb777f4d5c814276ae729d50fe414c",
"bf48e316ecad0a37071ed81cc54a6b629a1a3bf73cf52d06a77c9fbaf91bc833",
"23996f9309c042d37958d28c2cc0c16a060a03376ee075b5b077609e2a299e44",
"482e7b31188f1e59dd6eb5b21c46f7467449ffcbeba9a4ca412dfcd8ea9ef66f",
"51dad1be0950e627bb3660a6246b42ddc6d6d431267b309af2469114fd2df2e5",
"74c056ae650ffb202ea3b68207dce82ebeae0414cfe3b49f9db0c79841473da1",
"36617c71d89b78193c99fdd2a28027319dfdb361d649372bc72c45317f9edf24",
"52aad73c20887b42debd58c7fb8fb2794ff8990d542e12eb81a8b73f96d48d9e",
"c3620c90dbf5ac6d7a1b64ec0d917d15934cef0007dfb8cdac42f2f503626907",
"0d63f28f38ef29d7712bd1cb79003396c43eacd05510d1ac1bfe7ab2d0e5a566",
"1ee4639648367a6da4eb5fd1d2370792347effe3262a85b6f0dfd4154d44ca73",
"9bf77a3d3a3aa28241a06271f3b53adcef5fd9b7a238fd2bba6dbe903b20b46c",
"2d2c6b94cef37ee67091eb7f9a3b703a35db478e27480783b1a6214b93b78b41",
"95938e68fe1b14e031b39823e3e52751742f11c9ae72768d74e37f54da570a8d",
"18569cec99ff6fcb7f8d284feb8986ea60f8de4c7e277e5f351ca46d6a220bb2",
"dc619cca965dd9bf04eaa4fcb25e2ca255969a10054eba4f6cd4d18823d04f7d",
"2997b5e91c6fce7ac139f7dae75233e92a4071622278f1655a1b6b2da153f369",
"06a16d530df98a23aa64849e174e6fcabaf5f9ed694689d52dabbd94c4119d74",
"24ea5e2e5cc32d28717d82d0a1590ad2dbeb156f78d6c44e0c532651a30d112a",
"7fc09a40d723d6319925807f289ae938555727ae5923ed8d9c33c623be63b377",
"2a0942431fa590b69f39dc07deb3a45f7c2c0ed924779cee71d5dca50da3add4",
"1bab27e1d3d5c57b1af01801e18859710e96562e90c3614b693ee9c077023d1e",
"7b340aece8b98acd35df24e5379960d66d2f0a11eaf5a28ea8c65d0646bd0086",
"72d729cd5c77b291c7b91b7ffb07cf349d9de9cc69b5f39c3d4811b7384ce90d",
"c4cf271e74541b1e2bf9a051f57f1bf014c6fd66aa3c3d8fc4051d479f8ae3af",
"b5fed92561af0d82cda01713676a590dbefe3fdb70b1a56468a74d52432d4ff4",
"160436596acda73284ee4300da19785d2bf9a8a2eba48ec66e57bf80590157e4",
"95771bfa1cf0f2c66844c06519574d2afe9474d5507f00a5a1d73f2960280484",
"cdcf071aa7aa3360f358dc67c34a89dd9f5f8cb566a75b5558687cfca2750296",
"7a4ec0657d846e559e6605fb0cb43b74ee4c32d13426fbcc76176604cc749dfb",
"948237ebd4761233e14aa6ff0cf8acc9920f0132b270e2af987e7957e6b31f00",
"1f08f266f7eb6932cdfcd6ba256067552dec3d85f9d7599612e94360e9890ec1",
"0cdf53e226fcbdc95a5f9533de3b79e0d6993a411ebf5976bdacf416d1845e95",
"29c93895d1b1703d8a6b9b0210bb2b93dbd210273cf9ee210e740e109533e977",
"c7cf2a9e938b89a0fa8850fda1110dd7a1f9263648389fec5b8dbacd9e06c918",
"a47a9cc3ceac2df681683678569cde5e5298930090d26665be80066a569378a5",
"24db34759e7eee9168990583b3551aa6c019176e75a1655bf94e07c62e26cc19",
"ba554d07d9d78f56f9a0e670e094d0247b3d51fb95c4112e0a9317d4cc960855",
"baa9ed3d871b6392cfc79a17fcffa562d2b9aa51cb548c5939c2a41f1acc8467",
"27eb03ed9af3707094c142b6bd485793e579ae1c59ce13193cb6b9f31c0f011f",
"2a3cb329b81351e357b09f1b97323ff726e72bd5ff8427c9295e6ef68226e1d1",
"586f9df1870fcfafd3070dc553e97db25b3fce82c9144602567d69a86597c06f",
"842533f44cf32fb3d93a7f56227977aa4f16caafe82ace8f5f4de27d750c1ec1",
"d039c652f27c4d42026c5b5c9be31bfe368b283b24248e98d92f131272580053",
]
json = false
regex = true
repo-path = "."
[tool.black]
exclude = '''
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.mypy_cache
| \.pytest_cache
| \.tox
| \.venv
| _build
| build
| dist
)/
'''
target-version = ['py36', 'py37', 'py38']
[tool.pytest]
# Not yet supported, see https://github.com/pytest-dev/pytest/issues/1556
[tool.mypy]
# Not yet supported, see https://github.com/python/mypy/issues/5205
[tool.pylint.'MESSAGES CONTROL']
# C0111: Missing docstrings
# C0301: Line too long (Note: This is all handled by black now)
# C0330: Wrong hanging indentation before block (Note: black disagrees on this)
# R0201: Method could be a function
# R0801: Similar lines in other files
# R0903: Too few public methods
# R0912: Too many branches
# R0914: Too many local variables
# W0511: FIXME
# E1136: Unsubscriptable object (Disabled due to Python 3.9 compatibility bug in pylint)
disable = "C0111,C0301,C0330,R0201,R0801,R0903,R0912,R0914,W0511,E1136"
[tool.pylint.BASIC]
module-rgx = "(([a-z_][a-z0-9_]*)|([a-z][a-zA-Z0-9]+))$"
[tool.pylint.FORMAT]
max-line-length = "120"
[tool.pylint.DESIGN]
max-args = "14"
[tool.pylint.MASTER]
ignore = "docs/"
[tool.coverage.run]
branch = true
source = ["tartufo"]
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover", # Don't complain about missing debug-only code:
"def __repr__",
"if self.debug", # Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError", # Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:", # Don't complain about mypy-specific code
"if TYPE_CHECKING:",
]
ignore_errors = true