Skip to content

Commit beca891

Browse files
committed
Fix megalinter issue
1 parent 84b8648 commit beca891

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.mega-linter.yml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ DISABLE_ERRORS_LINTERS:
2121
- REPOSITORY_SEMGREP
2222
DOCKERFILE_HADOLINT_ARGUMENTS: "--ignore DL3008 --ignore DL3018 --ignore DL3013 --ignore DL3059 --ignore DL3005"
2323
COPYPASTE_JSCPD_ARGUMENTS: "--ignore '**/handlers/**,**/vector*'"
24+
COPYPASTE_JSCPD_DISABLE_ERRORS_IF_LESS_THAN: 28
2425
MARKDOWN_MARKDOWN_LINK_CHECK_CONFIG_FILE: ".markdown-link-check-config.json"
2526
MARKDOWN_MARKDOWN_LINK_CHECK_DISABLE_ERRORS: true
2627
REPOSITORY_CHECKOV_DISABLE_ERRORS: true

pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
9292
# Python 3.10.
9393
target-version = "py310"
9494

95+
[tool.ruff]
96+
# Ignore a variety of commonly ignored directories.
97+
ignore = ["databases/**"]
98+
9599
[tool.ruff.mccabe]
96100
max-complexity = 10
97101

98-
[tool.ruff.ignore]
99-
# Ignore a variety of commonly ignored directories.
100-
exclude = ["databases/**"]
101-
102102
[tool.ruff.per-file-ignores]
103103
"**/database/*" = [
104104
"A003", # We should allow shadowing

0 commit comments

Comments
 (0)