Files
modorganizer-basic_games/.pre-commit-config.yaml

47 lines
1.3 KiB
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: mixed-line-ending
args: [--fix=lf]
- id: check-case-conflict
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.7 # must match pyproject.toml
hooks:
- id: ruff
args: [--extend-select, I, --fix]
- id: ruff-format
- repo: https://github.com/python-poetry/poetry-plugin-export
rev: "1.9.0"
hooks:
- id: poetry-export
args:
[
"--without=dev",
"-f",
"requirements.txt",
"-o",
"plugin-requirements.txt",
]
- repo: local
hooks:
- id: update-readme-games
name: Update list of games in README.md
entry: python
language: python
# files: ^(.*/)?\.py$
args: [pre-commit-hooks/update-readme-games.py]
additional_dependencies: [jinja2==3.1.6]
ci:
autofix_commit_msg: "[pre-commit.ci] Auto fixes from pre-commit.com hooks."
autofix_prs: true
autoupdate_commit_msg: "[pre-commit.ci] Pre-commit autoupdate."
autoupdate_schedule: quarterly
submodules: false