Skip to content

Commit

Permalink
move all linter config to the root (#9830)
Browse files Browse the repository at this point in the history
This reduces duplication, symlinks, and makes the configurations
available by default for the linting tools.
  • Loading branch information
altendky committed Jan 19, 2022
1 parent 142b0c5 commit 2a6564c
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 30 deletions.
1 change: 0 additions & 1 deletion .flake8

This file was deleted.

4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 120
exclude = ./typings/**/*
ignore = E203,W503
4 changes: 0 additions & 4 deletions .github/linters/.flake8

This file was deleted.

20 changes: 0 additions & 20 deletions .github/linters/.isort.cfg

This file was deleted.

2 changes: 0 additions & 2 deletions .github/linters/.python-black

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion .isort.cfg

This file was deleted.

20 changes: 20 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
File renamed without changes.

0 comments on commit 2a6564c

Please sign in to comment.