mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-24 08:04:35 +03:00
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
4
.flake8
Normal file
4
.flake8
Normal file
@ -0,0 +1,4 @@
|
||||
[flake8]
|
||||
max-line-length = 120
|
||||
exclude = ./typings/**/*
|
||||
ignore = E203,W503
|
4
.github/linters/.flake8
vendored
4
.github/linters/.flake8
vendored
@ -1,4 +0,0 @@
|
||||
[flake8]
|
||||
max-line-length = 120
|
||||
exclude = ./typings/**/*
|
||||
ignore = E203,W503
|
20
.github/linters/.isort.cfg
vendored
20
.github/linters/.isort.cfg
vendored
@ -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
|
2
.github/linters/.python-black
vendored
2
.github/linters/.python-black
vendored
@ -1,2 +0,0 @@
|
||||
[tool.black]
|
||||
line_length = 120
|
8
.github/workflows/super-linter.yml
vendored
8
.github/workflows/super-linter.yml
vendored
@ -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
|
||||
|
@ -1 +0,0 @@
|
||||
.github/linters/.isort.cfg
|
20
.isort.cfg
Normal file
20
.isort.cfg
Normal 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
|
Loading…
Reference in New Issue
Block a user