-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpyproject.toml
136 lines (124 loc) · 3.13 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
[tool.poetry]
name = 'skjold'
version = '0.6.2'
description = 'Security audit Python project dependencies against security advisory databases.'
authors = ["Thomas Wurmitzer <stdin@twu.codes>"]
packages = [{ include="skjold/**/*.py", from = "src" }]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/twu/skjold"
repository = "https://github.com/twu/skjold"
keywords = [
"security",
"security-vulnerability",
"vulnerability-scanners",
"vulnerabilities",
"vulnerability-detection"
]
# https://pypi.org/classifiers/
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Build Tools",
"Topic :: Utilities",
"Topic :: Security",
"Typing :: Typed",
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/twu/skjold/issues"
"Changelog" = "https://github.com/twu/skjold/releases"
[tool.poetry.scripts]
skjold = 'skjold.cli:cli'
[tool.poetry.dependencies]
python = "^3.7"
click = ">=8,<9"
packaging = ">=21,<25"
pyyaml = "^6.0"
toml = ">=0.10.0"
[tool.poetry.dev-dependencies]
pytest-watch = "^4.2.0"
pytest-sugar = "^1.0.0"
pytest-mock = "^3.11.1"
pre-commit = ">=2.2.0"
black = ">=22.1.0"
mypy = "^1.4"
coverage = {extras = ["toml"], version = "^7"}
pytest-cov = "^4.1.0"
pytest = "^7.4.4"
types-toml = "^0.10.8"
types-PyYAML = "^6.0.12"
[tool.skjold]
report_only = false
report_format = 'cli'
sources = ["pyup", "github", "gemnasium", "osv", "pypa"]
cache_dir = ".skjold_cache"
cache_expires = 43200
ignore_file = ".skjoldignore"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-s"
log_cli_level = "INFO"
testpaths = [
"tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
"ignore::UserWarning",
]
[tool.black]
line-length = 88
target-version = ['py37', 'py38', 'py39']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
known_first_party = "skjold"
src_paths = ["src", "tests"]
[tool.mypy]
python_version = "3.7"
files = ["src", "tests"]
ignore_missing_imports = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
warn_redundant_casts = true
disallow_untyped_defs = true
disallow_untyped_calls = true
follow_imports = "skip"
no_implicit_optional = true
warn_no_return = true
strict_optional = true
check_untyped_defs = true
ignore_errors = false
[tool.coverage.run]
branch = true
source = ["src"]
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == \"__main__\":",
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"