Add black, pyright, yamllint to pre-commit hooks
- Add black formatter (rev 23.12.1) - Add pyright type checker (rev v1.1.345) - Add yamllint with relaxed mode (rev v1.35.1) - Update flake8 args: max-line-length=88, extend-ignore=E203,W503,E402 - Remove ansible-lint from dev dependencies (no ansible files in repo) - Sync pyproject.toml flake8 config with pre-commit Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>helm-charts-with-caddy
parent
dc36a6564a
commit
ba1aad9fa6
|
|
@ -9,7 +9,26 @@ repos:
|
||||||
- id: check-json
|
- id: check-json
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
|
|
||||||
|
- repo: https://github.com/psf/black
|
||||||
|
rev: 23.12.1
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
|
language_version: python3
|
||||||
|
|
||||||
- repo: https://github.com/PyCQA/flake8
|
- repo: https://github.com/PyCQA/flake8
|
||||||
rev: 7.1.1
|
rev: 7.1.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
|
args: ['--max-line-length=88', '--extend-ignore=E203,W503,E402']
|
||||||
|
|
||||||
|
- repo: https://github.com/RobertCraigie/pyright-python
|
||||||
|
rev: v1.1.345
|
||||||
|
hooks:
|
||||||
|
- id: pyright
|
||||||
|
|
||||||
|
- repo: https://github.com/adrienverge/yamllint
|
||||||
|
rev: v1.35.1
|
||||||
|
hooks:
|
||||||
|
- id: yamllint
|
||||||
|
args: [-d, relaxed]
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,6 @@ dev = [
|
||||||
"black>=22.0.0",
|
"black>=22.0.0",
|
||||||
"flake8>=5.0.0",
|
"flake8>=5.0.0",
|
||||||
"pyright>=1.1.0",
|
"pyright>=1.1.0",
|
||||||
"ansible-lint>=6.0.0",
|
|
||||||
"yamllint>=1.28.0",
|
"yamllint>=1.28.0",
|
||||||
"pre-commit>=3.0.0",
|
"pre-commit>=3.0.0",
|
||||||
]
|
]
|
||||||
|
|
@ -64,7 +63,7 @@ target-version = ['py38']
|
||||||
|
|
||||||
[tool.flake8]
|
[tool.flake8]
|
||||||
max-line-length = 88
|
max-line-length = 88
|
||||||
extend-ignore = ["E203", "W503"]
|
extend-ignore = ["E203", "W503", "E402"]
|
||||||
|
|
||||||
[tool.pyright]
|
[tool.pyright]
|
||||||
pythonVersion = "3.9"
|
pythonVersion = "3.9"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue