mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-06 11:56:45 +03:00
40 lines
1.8 KiB
YAML
40 lines
1.8 KiB
YAML
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
# Inspired by textual pre-commit config
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.3.0
|
|
hooks:
|
|
- id: check-ast # simply checks whether the files parse as valid python
|
|
- id: check-builtin-literals # requires literal syntax when initializing empty or zero python builtin types
|
|
- id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems
|
|
- id: check-merge-conflict # checks for files that contain merge conflict strings
|
|
- id: check-json # checks json files for parseable syntax
|
|
- id: check-toml # checks toml files for parseable syntax
|
|
- id: check-yaml # checks yaml files for parseable syntax
|
|
args: [ '--unsafe' ] # Instead of loading the files, parse them for syntax.
|
|
- id: check-shebang-scripts-are-executable # ensures that (non-binary) files with a shebang are executable
|
|
- id: check-vcs-permalinks # ensures that links to vcs websites are permalinks
|
|
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline
|
|
- id: mixed-line-ending # replaces or checks mixed line ending
|
|
- id: trailing-whitespace # checks for trailing whitespace
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.12.0
|
|
hooks:
|
|
- id: isort
|
|
name: isort (python)
|
|
language_version: '3.11'
|
|
args: ["--profile", "black", "--filter-files"]
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.1.0
|
|
hooks:
|
|
- id: black
|
|
language_version: '3.11'
|
|
args: ["--preview"]
|
|
- repo: https://github.com/hadialqattan/pycln # removes unused imports
|
|
rev: v2.3.0
|
|
hooks:
|
|
- id: pycln
|
|
language_version: "3.11"
|
|
args: [--all]
|