mirror of https://github.com/JoshKarpel/spiel
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
repos:
|
|
- 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-merge-conflict
|
|
- id: check-toml
|
|
- id: check-json
|
|
- id: debug-statements
|
|
- id: end-of-file-fixer
|
|
- id: forbid-new-submodules
|
|
- id: mixed-line-ending
|
|
- id: trailing-whitespace
|
|
exclude_types: [svg]
|
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
rev: v1.10.0
|
|
hooks:
|
|
- id: python-check-mock-methods
|
|
- id: python-no-eval
|
|
- id: python-no-log-warn
|
|
- id: python-use-type-annotations
|
|
- id: python-check-blanket-type-ignore
|
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
rev: 0.22.0
|
|
hooks:
|
|
- id: check-github-workflows
|
|
- id: check-github-actions
|
|
- id: check-dependabot
|
|
- repo: https://github.com/hadialqattan/pycln
|
|
rev: v2.1.3
|
|
hooks:
|
|
- id: pycln
|
|
args: [--config=pyproject.toml]
|
|
- repo: https://github.com/PyCQA/isort
|
|
rev: 5.12.0
|
|
hooks:
|
|
- id: isort
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.3.0
|
|
hooks:
|
|
- id: black
|
|
- repo: local
|
|
hooks:
|
|
- id: generate-screenshots
|
|
name: generate screenshots
|
|
entry: python docs/generate_screenshots.py
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
|
|
ci:
|
|
skip:
|
|
- generate-screenshots
|