mirror of
https://github.com/BrianPugh/gnwmanager.git
synced 2025-12-05 13:15:58 +01:00
75 lines
2.0 KiB
YAML
75 lines
2.0 KiB
YAML
exclude: ^(poetry.lock|.idea/|Drivers/)
|
|
repos:
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
rev: "v0.0.284"
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix, --exit-non-zero-on-fix]
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.7.0
|
|
hooks:
|
|
- id: black
|
|
args:
|
|
- "--line-length=120"
|
|
- "--target-version=py38"
|
|
- "--target-version=py39"
|
|
- "--target-version=py310"
|
|
- "--target-version=py311"
|
|
types: [python]
|
|
|
|
- repo: https://github.com/adamchainz/blacken-docs
|
|
rev: 1.15.0
|
|
hooks:
|
|
- id: blacken-docs
|
|
additional_dependencies:
|
|
- "black==23.3.0"
|
|
args:
|
|
- "--line-length=120"
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- id: check-ast
|
|
- id: check-builtin-literals
|
|
- id: check-case-conflict
|
|
- id: check-docstring-first
|
|
- id: check-shebang-scripts-are-executable
|
|
- id: check-merge-conflict
|
|
- id: check-json
|
|
- id: check-toml
|
|
- id: check-xml
|
|
- id: check-yaml
|
|
- id: debug-statements
|
|
exclude: ^(gnwmanager/cli/debug.py)
|
|
- id: destroyed-symlinks
|
|
- id: detect-private-key
|
|
- id: end-of-file-fixer
|
|
exclude: ^LICENSE|\.(html|csv|txt|svg|py)$
|
|
- id: pretty-format-json
|
|
args: ["--autofix", "--no-ensure-ascii", "--no-sort-keys"]
|
|
- id: requirements-txt-fixer
|
|
- id: trailing-whitespace
|
|
args: [--markdown-linebreak-ext=md]
|
|
exclude: \.(html|svg)$
|
|
|
|
- repo: https://github.com/codespell-project/codespell
|
|
rev: v2.2.5
|
|
additional_dependencies:
|
|
- tomli
|
|
hooks:
|
|
- id: codespell
|
|
|
|
ci:
|
|
autofix_commit_msg: |
|
|
[pre-commit.ci] auto fixes from pre-commit.com hooks
|
|
|
|
for more information, see https://pre-commit.ci
|
|
autofix_prs: false
|
|
autoupdate_branch: ""
|
|
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
|
|
autoupdate_schedule: weekly
|
|
skip: []
|
|
submodules: false
|