forked from godaddy/tartufo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
221 lines (204 loc) · 10.1 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry_core>=1.0.0"]
[tool.poetry]
authors = ["Dylan Ayrey <[email protected]>"]
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 <[email protected]>"]
name = "tartufo"
readme = "README.md"
repository = "https://github.com/godaddy/tartufo/"
version = "3.0.0-rc.3"
[tool.poetry.scripts]
tartufo = "tartufo.cli:main"
[tool.poetry.dependencies]
GitPython = "<3.1.20"
pygit2 = "~1.6"
click = "^8.0.3"
colorama = {version = "*", markers = "sys_platform == 'win32'"}
dataclasses = {version = "*", python = "< 3.7"}
python = "^3.6.2"
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}
tomlkit = "^0.7.2"
cached-property = "^1.5.2"
[tool.poetry.dev-dependencies]
black = {version = "21.5b2", allow-prereleases = true, markers = "platform_python_implementation == 'CPython'"}
coverage = {extras = ["toml"], version = "^5.1"}
mypy = {version = "^0.902", markers = "platform_python_implementation == 'CPython'"}
pre-commit = "*"
pylint = "^2.8.3"
pytest = "^6.2.2"
pytest-cov = "^2.11.1"
pytest-sugar = "^0.9.4"
tox = "^3.21.4"
vulture = "^2.3"
types-requests = "^2.25.2"
types-click = "^7.1.2"
cached-property = "^1.5.2"
[tool.poetry.extras]
docs = ["recommonmark", "sphinx", "sphinx-click", "sphinx-rtd-theme", "sphinxcontrib-spelling"]
[tool.tartufo]
cleanup = true
entropy = true
exclude-path-patterns = [
{path-pattern = 'poetry\.lock'},
{path-pattern = 'pyproject\.toml'},
# To not have to escape `\` in regexes, use single quoted
# TOML 'literal strings'
{path-pattern = '\.github/workflows/(.*)\.yml'},
{path-pattern = 'docs/source/(.*)\.rst'},
{path-pattern = 'tests/test_base_scanner\.py'},
{path-pattern = 'tests/test_util\.py'},
{path-pattern = 'tests/data/testRules\.json'},
{path-pattern = 'tartufo/data/default_regexes\.json'},
{path-pattern = '\.git/.*'},
]
exclude-signatures = [
{signature = "62f22e4500140a6ed959a6143c52b0e81c74e7491081292fce733de4ec574542"},
{signature = "ecbbe1edd6373c7e2b88b65d24d7fe84610faafd1bc2cf6ae35b43a77183e80b"},
{signature = "8396b1d3644342be68687c60baa0c514947a378145d73e7024124dc41374716f"},
{signature = "39c9b3d1841fd0a9e2f17cddc42be2f2f860e321026403a0ebee997c0b9cb823"},
{signature = "7ac6c26fb6d5a4de410588cfc372bb7b8de705c081843e34921389be7f66da99"},
{signature = "e427548d2111e3b04aa23c998a8288645385206cea30cf7137acf7147dc32354"},
{signature = "dbc084c22395931afd734a5be53f1cde913c7d988034b856087c744b424d9673"},
{signature = "bc67523b08b2170ca9b802535684454140679af3156bff808508cf32b33aa240"},
{signature = "978dc8605ef9bf471e467dd2d8570fd658f0a5f25378799a2ad8bb6ea480173d"},
{signature = "85109edb8081a60f3a44139a98b643b8cacb777f4d5c814276ae729d50fe414c"},
{signature = "bf48e316ecad0a37071ed81cc54a6b629a1a3bf73cf52d06a77c9fbaf91bc833"},
{signature = "23996f9309c042d37958d28c2cc0c16a060a03376ee075b5b077609e2a299e44"},
{signature = "482e7b31188f1e59dd6eb5b21c46f7467449ffcbeba9a4ca412dfcd8ea9ef66f"},
{signature = "51dad1be0950e627bb3660a6246b42ddc6d6d431267b309af2469114fd2df2e5"},
{signature = "74c056ae650ffb202ea3b68207dce82ebeae0414cfe3b49f9db0c79841473da1"},
{signature = "36617c71d89b78193c99fdd2a28027319dfdb361d649372bc72c45317f9edf24"},
{signature = "52aad73c20887b42debd58c7fb8fb2794ff8990d542e12eb81a8b73f96d48d9e"},
{signature = "c3620c90dbf5ac6d7a1b64ec0d917d15934cef0007dfb8cdac42f2f503626907"},
{signature = "0d63f28f38ef29d7712bd1cb79003396c43eacd05510d1ac1bfe7ab2d0e5a566"},
{signature = "1ee4639648367a6da4eb5fd1d2370792347effe3262a85b6f0dfd4154d44ca73"},
{signature = "9bf77a3d3a3aa28241a06271f3b53adcef5fd9b7a238fd2bba6dbe903b20b46c"},
{signature = "2d2c6b94cef37ee67091eb7f9a3b703a35db478e27480783b1a6214b93b78b41"},
{signature = "95938e68fe1b14e031b39823e3e52751742f11c9ae72768d74e37f54da570a8d"},
{signature = "18569cec99ff6fcb7f8d284feb8986ea60f8de4c7e277e5f351ca46d6a220bb2"},
{signature = "dc619cca965dd9bf04eaa4fcb25e2ca255969a10054eba4f6cd4d18823d04f7d"},
{signature = "2997b5e91c6fce7ac139f7dae75233e92a4071622278f1655a1b6b2da153f369"},
{signature = "06a16d530df98a23aa64849e174e6fcabaf5f9ed694689d52dabbd94c4119d74"},
{signature = "24ea5e2e5cc32d28717d82d0a1590ad2dbeb156f78d6c44e0c532651a30d112a"},
{signature = "7fc09a40d723d6319925807f289ae938555727ae5923ed8d9c33c623be63b377"},
{signature = "2a0942431fa590b69f39dc07deb3a45f7c2c0ed924779cee71d5dca50da3add4"},
{signature = "1bab27e1d3d5c57b1af01801e18859710e96562e90c3614b693ee9c077023d1e"},
{signature = "7b340aece8b98acd35df24e5379960d66d2f0a11eaf5a28ea8c65d0646bd0086"},
{signature = "72d729cd5c77b291c7b91b7ffb07cf349d9de9cc69b5f39c3d4811b7384ce90d"},
{signature = "c4cf271e74541b1e2bf9a051f57f1bf014c6fd66aa3c3d8fc4051d479f8ae3af"},
{signature = "b5fed92561af0d82cda01713676a590dbefe3fdb70b1a56468a74d52432d4ff4"},
{signature = "160436596acda73284ee4300da19785d2bf9a8a2eba48ec66e57bf80590157e4"},
{signature = "95771bfa1cf0f2c66844c06519574d2afe9474d5507f00a5a1d73f2960280484"},
{signature = "cdcf071aa7aa3360f358dc67c34a89dd9f5f8cb566a75b5558687cfca2750296"},
{signature = "7a4ec0657d846e559e6605fb0cb43b74ee4c32d13426fbcc76176604cc749dfb"},
{signature = "948237ebd4761233e14aa6ff0cf8acc9920f0132b270e2af987e7957e6b31f00"},
{signature = "1f08f266f7eb6932cdfcd6ba256067552dec3d85f9d7599612e94360e9890ec1"},
{signature = "0cdf53e226fcbdc95a5f9533de3b79e0d6993a411ebf5976bdacf416d1845e95"},
{signature = "29c93895d1b1703d8a6b9b0210bb2b93dbd210273cf9ee210e740e109533e977"},
{signature = "c7cf2a9e938b89a0fa8850fda1110dd7a1f9263648389fec5b8dbacd9e06c918"},
{signature = "a47a9cc3ceac2df681683678569cde5e5298930090d26665be80066a569378a5"},
{signature = "24db34759e7eee9168990583b3551aa6c019176e75a1655bf94e07c62e26cc19"},
{signature = "ba554d07d9d78f56f9a0e670e094d0247b3d51fb95c4112e0a9317d4cc960855"},
{signature = "baa9ed3d871b6392cfc79a17fcffa562d2b9aa51cb548c5939c2a41f1acc8467"},
{signature = "27eb03ed9af3707094c142b6bd485793e579ae1c59ce13193cb6b9f31c0f011f"},
{signature = "2a3cb329b81351e357b09f1b97323ff726e72bd5ff8427c9295e6ef68226e1d1"},
{signature = "586f9df1870fcfafd3070dc553e97db25b3fce82c9144602567d69a86597c06f"},
{signature = "842533f44cf32fb3d93a7f56227977aa4f16caafe82ace8f5f4de27d750c1ec1"},
{signature = "d039c652f27c4d42026c5b5c9be31bfe368b283b24248e98d92f131272580053"},
# test secrets
{signature = "6c70b4a712ada69f2a6c919edc783cf485b6637e3c5429de376ef1a451a042e4", reason = "tests/data/scan_folder/donotscan.txt"},
{signature = "357841766ca69979608e4e7fb1da2addeafe6d15cade15466c39d903cc0488a8", reason = "tests/data/scan_folder/test.txt"},
{signature = "743b893e30777d9c4e28d3d341ca4ba1c2541a9c62b497dece75c2a64420e770", reason = "tests/test_folder_scanner.py"},
{signature = "358a1ae040ab71b3aafeb4318e5d9e318ff1b681c5bf0e99d381584a33ee7833", reason = "tests/data/scan_folder/scan_sub_folder/sub_folder_test.txt"},
{signature = "9d1b278fa384c9dc58d607130d97740910309d13b29f13f7ed6348738ea4f32c", reason = "tests/test_folder_scanner.py 16-Nov-2021"},
{signature = "9f675d4d7f43e484e07fb199a1e7ec372ef204631c1f4ec054acc3119fbde4cf", reason = "build_and_publish_docker_file 13-Jun-2019"},
{signature = "88152f1d10077f417ee5aea5fa86adaa5b74d3f2de2e87ce4b4aa5cd79c7b2f5", reason = "nothing file, 30-Dec-2016"},
]
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]
python_version = "3.7"
ignore_missing_imports = true
[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,W1514"
[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/"
extension-pkg-whitelist = ["pygit2"]
[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