forked from godaddy/tartufo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
140 lines (120 loc) · 3.65 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
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.poetry]
name = "tartufo"
version = "2.0.0-dev1"
description = "tartufo is a tool for scanning git repositories for secrets/passwords/high-entropy data"
authors = ["Dylan Ayrey <[email protected]>"]
maintainers = ["GoDaddy <[email protected]>"]
license = "GPL-2.0-only"
readme = "README.md"
repository = "https://github.com/godaddy/tartufo/"
documentation = "https://tartufo.readthedocs.io/"
keywords = ["git", "security", "secrets", "entropy", "scanner"]
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",
"Topic :: Security",
"Topic :: Software Development :: Version Control :: Git",
"Typing :: Typed",
]
include = ["CHANGELOG.md", "README.md"]
[tool.poetry.scripts]
tartufo = "tartufo.cli:main"
[tool.poetry.dependencies]
python = "^3.6"
click = "^7"
colorama = {version = "*", markers = "sys_platform == 'win32'"}
GitPython = ">= 2.1.1, <4.0.0"
toml = "^0.10"
truffleHogRegexes = "^0.0.7"
recommonmark = {version = "^0.6", optional = true}
sphinx = {version = "^2.3", optional = true}
sphinx-rtd-theme = {version = "^0.4.3", optional = true}
[tool.poetry.dev-dependencies]
black = {version = "19.10b0", allow-prereleases = true}
coverage = {extras = ["toml"], version = "^5.1"}
pre-commit = "*"
pytest = "^5.4.1"
pytest-sugar = "^0.9.3"
mypy = "^0.770"
pytest-cov = "^2.8.1"
tox = "^3.14.6"
vulture = "^1.4"
pylint = "^2.5.2"
[tool.poetry.extras]
docs = ["recommonmark", "sphinx", "sphinx-rtd-theme"]
[tool.tartufo]
repo-path = "."
json = false
cleanup = true
regex = true
entropy = true
exclude-paths = ".tartufo-excludes"
[tool.black]
target-version = ['py35', 'py36', 'py37', 'py38']
exclude = '''
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.mypy_cache
| \.pytest_cache
| \.tox
| \.venv
| _build
| build
| dist
)/
'''
[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
disable="C0111,C0301,C0330,R0201,R0801,R0903,R0912,R0914,W0511"
[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]
ignore_errors = true
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:",
]