-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.mega-linter.yml
31 lines (25 loc) · 950 Bytes
/
.mega-linter.yml
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
---
# Configuration file for MegaLinter
# See all available variables at https://megalinter.io/configuration/ and in linters documentation
VALIDATE_ALL_CODEBASE: false
SPELL_MISSPELL_DISABLE_ERRORS: true
DISABLE_LINTERS:
- SPELL_CSPELL
- MARKDOWN_MARKDOWN_LINK_CHECK
- REPOSITORY_CHECKOV
- PYTHON_MYPY
- PYTHON_PYRIGHT
- MAKEFILE_CHECKMAKE
PYTHON_PYLINT_PRE_COMMANDS:
# Help pylint understand pydantic models
- command: pip install pylint-pydantic
venv: pylint
continue_if_failed: false
PYTHON_PYLINT_ARGUMENTS:
# Disable import checks because it needs all the Python dependencies installed in the linter
# https://github.com/oxsecurity/megalinter/issues/2030
- "--disable=E0401,E0611"
# Help pylint understand pydantic models
- "--load-plugins=pylint_pydantic"
# Exclude test files from linting since they make use of the `assert` statement that bandit does not like
PYTHON_BANDIT_FILTER_REGEX_EXCLUDE: test_