-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.import_linter_config
More file actions
29 lines (27 loc) · 1022 Bytes
/
.import_linter_config
File metadata and controls
29 lines (27 loc) · 1022 Bytes
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
[importlinter]
root_package = exasol.toolbox
include_external_packages = True
[importlinter:contract:security-contract]
name = Security module should not import from toolbox
type = forbidden
source_modules = exasol.toolbox.tools.security
forbidden_modules =
exasol.toolbox.nox
exasol.toolbox.sphinx
exasol.toolbox.templates
exasol.toolbox.util
ignore_imports =
# importlinter lacks an option to ignore a specific line, so we must ignore this in
# total, as this is needed for Python security audits.
exasol.toolbox.tools.security -> exasol.toolbox.util.dependencies.audit
[importlinter:contract:restrict-noxconfig]
name = Only exasol.toolbox.nox submodules can import noxconfig
type = forbidden
source_modules =
exasol.toolbox
forbidden_modules =
noxconfig
ignore_imports =
# To reduce the effort in using nox sessions (i.e. having to pass the config path
# in each CLI usage), we allow the noxconfig to be imported within these modules.
exasol.toolbox.nox.* -> noxconfig