move all linter config to the root (#9830)
This reduces duplication, symlinks, and makes the configurations available by default for the linting tools.
This commit is contained in:
parent
142b0c5c5b
commit
2a6564c0a7
|
@ -0,0 +1,4 @@
|
||||||
|
[flake8]
|
||||||
|
max-line-length = 120
|
||||||
|
exclude = ./typings/**/*
|
||||||
|
ignore = E203,W503
|
|
@ -1,4 +0,0 @@
|
||||||
[flake8]
|
|
||||||
max-line-length = 120
|
|
||||||
exclude = ./typings/**/*
|
|
||||||
ignore = E203,W503
|
|
|
@ -1,20 +0,0 @@
|
||||||
[settings]
|
|
||||||
profile=
|
|
||||||
|
|
||||||
; vertical hanging indent mode also used in black configuration
|
|
||||||
multi_line_output = 3
|
|
||||||
|
|
||||||
; necessary because black expect the trailing comma
|
|
||||||
include_trailing_comma = true
|
|
||||||
|
|
||||||
; black compatibility
|
|
||||||
force_grid_wrap = 0
|
|
||||||
|
|
||||||
; black compatibility
|
|
||||||
use_parentheses = True
|
|
||||||
|
|
||||||
; black compatibility
|
|
||||||
ensure_newline_before_comments = True
|
|
||||||
|
|
||||||
; we chose 120 as line length
|
|
||||||
line_length = 120
|
|
|
@ -1,2 +0,0 @@
|
||||||
[tool.black]
|
|
||||||
line_length = 120
|
|
|
@ -55,7 +55,12 @@ jobs:
|
||||||
env:
|
env:
|
||||||
VALIDATE_ALL_CODEBASE: true
|
VALIDATE_ALL_CODEBASE: true
|
||||||
DEFAULT_BRANCH: main
|
DEFAULT_BRANCH: main
|
||||||
LINTER_RULES_PATH: .github/linters
|
LINTER_RULES_PATH: .
|
||||||
|
MARKDOWN_CONFIG_FILE: .markdown-lint.yml
|
||||||
|
PYTHON_BLACK_CONFIG_FILE: pyproject.toml
|
||||||
|
PYTHON_FLAKE8_CONFIG_FILE: .flake8
|
||||||
|
PYTHON_ISORT_CONFIG_FILE: .isort.cfg
|
||||||
|
PYTHON_PYLINT_CONFIG_FILE: pylintrc
|
||||||
VALIDATE_BASH: true
|
VALIDATE_BASH: true
|
||||||
VALIDATE_CSS: true
|
VALIDATE_CSS: true
|
||||||
VALIDATE_DOCKER: true
|
VALIDATE_DOCKER: true
|
||||||
|
@ -65,7 +70,6 @@ jobs:
|
||||||
VALIDATE_JSON: true
|
VALIDATE_JSON: true
|
||||||
VALIDATE_MD: true
|
VALIDATE_MD: true
|
||||||
VALIDATE_POWERSHELL: true
|
VALIDATE_POWERSHELL: true
|
||||||
VALIDATE_PYTHON: true
|
|
||||||
VALIDATE_PYTHON_PYLINT: true
|
VALIDATE_PYTHON_PYLINT: true
|
||||||
VALIDATE_PYTHON_FLAKE8: true
|
VALIDATE_PYTHON_FLAKE8: true
|
||||||
VALIDATE_PYTHON_BLACK: true
|
VALIDATE_PYTHON_BLACK: true
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
.github/linters/.isort.cfg
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
[settings]
|
||||||
|
profile=
|
||||||
|
|
||||||
|
; vertical hanging indent mode also used in black configuration
|
||||||
|
multi_line_output = 3
|
||||||
|
|
||||||
|
; necessary because black expect the trailing comma
|
||||||
|
include_trailing_comma = true
|
||||||
|
|
||||||
|
; black compatibility
|
||||||
|
force_grid_wrap = 0
|
||||||
|
|
||||||
|
; black compatibility
|
||||||
|
use_parentheses = True
|
||||||
|
|
||||||
|
; black compatibility
|
||||||
|
ensure_newline_before_comments = True
|
||||||
|
|
||||||
|
; we chose 120 as line length
|
||||||
|
line_length = 120
|
Loading…
Reference in New Issue