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:
Kyle Altendorf 2022-01-19 14:38:11 -05:00 committed by GitHub
parent 142b0c5c5b
commit 2a6564c0a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 30 additions and 30 deletions

View File

@ -1 +0,0 @@
.github/linters/.flake8

4
.flake8 Normal file
View File

@ -0,0 +1,4 @@
[flake8]
max-line-length = 120
exclude = ./typings/**/*
ignore = E203,W503

View File

@ -1,4 +0,0 @@
[flake8]
max-line-length = 120
exclude = ./typings/**/*
ignore = E203,W503

View File

@ -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

View File

@ -1,2 +0,0 @@
[tool.black]
line_length = 120

View File

@ -55,7 +55,12 @@ jobs:
env:
VALIDATE_ALL_CODEBASE: true
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_CSS: true
VALIDATE_DOCKER: true
@ -65,7 +70,6 @@ jobs:
VALIDATE_JSON: true
VALIDATE_MD: true
VALIDATE_POWERSHELL: true
VALIDATE_PYTHON: true
VALIDATE_PYTHON_PYLINT: true
VALIDATE_PYTHON_FLAKE8: true
VALIDATE_PYTHON_BLACK: true

View File

@ -1 +0,0 @@
.github/linters/.isort.cfg

20
.isort.cfg Normal file
View File

@ -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