-
Notifications
You must be signed in to change notification settings - Fork 201
/
pyproject.toml
91 lines (80 loc) · 2.35 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "vulnerablecode.settings"
# Fail tests that render templates which make use of invalid template variables.
FAIL_INVALID_TEMPLATE_VARS = true
markers = [
"webtest",
]
norecursedirs = [
".git",
"dist",
"build",
"_build",
"local",
"ci",
"docs",
"man",
"share",
"samples",
".cache",
".settings",
"thirdparty",
"tmp",
"venv",
"*/tests/test_data",
".eggs",
"src/*/data",
"tests/*/data"
]
python_files = "*.py"
python_classes = "Test"
python_functions = "test"
addopts = [
"-rfExXw",
"--strict-markers",
"--doctest-modules",
# Ignore the following doctests until these files are migrated to
# import-improve structure
"--ignore=vulnerabilities/importers/apache_httpd.py",
"--ignore=vulnerabilities/importers/apache_kafka.py",
"--ignore=vulnerabilities/importers/apache_tomcat.py",
"--ignore=vulnerabilities/importers/elixir_security.py",
"--ignore=vulnerabilities/importers/gentoo.py",
"--ignore=vulnerabilities/importers/istio.py",
"--ignore=vulnerabilities/importers/kaybee.py",
"--ignore=vulnerabilities/importers/npm.py",
"--ignore=vulnerabilities/importers/postgresql.py",
"--ignore=vulnerabilities/importers/project_kb_msr2019.py",
"--ignore=vulnerabilities/importers/retiredotnet.py",
"--ignore=vulnerabilities/importers/ruby.py",
"--ignore=vulnerabilities/importers/rust.py",
"--ignore=vulnerabilities/importers/suse_backports.py",
"--ignore=vulnerabilities/importers/suse_scores.py",
"--ignore=vulnerabilities/importers/ubuntu_usn.py",
"--ignore=vulnerabilities/importers/mozilla.py",
"--ignore=vulnerabilities/importers/mattermost.py",
"--ignore=vulnerabilities/importers/xen.py",
"--ignore=vulnerabilities/management/commands/purl2cpe.py",
"--ignore=vulnerabilities/lib_oval.py",
]
[tool.black]
line-length = 100
include = '\.pyi?$'
skip_gitignore = true
# 'extend-exclude' excludes files or directories in addition to the defaults
extend-exclude = '''
(
^/venv/.*
| ^/vulnerabilities/migrations/.*
| ^/vulnerabilities/tests/test_data/.*
)
'''
[tool.isort]
profile = "black"
line_length = 100
force_single_line = true
skip_gitignore = true
skip_glob = "vulnerabilities/migrations/*"