forked from LooseLab/readfish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (35 loc) · 1.01 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
repos:
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
name: black (python)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: end-of-file-fixer
exclude: '^.+\.(patch|diff|fasta|fastq|sam|rbt|bit|target|svg)$'
- id: trailing-whitespace
exclude: '^(README.md)|.+\.(patch|diff|fasta|fastq|sam|rbt|bit|target|svg)$'
- id: check-ast
- id: check-toml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.276
hooks:
- id: ruff
- repo: local
hooks:
- id: ReadFish-checker
name: disallow "ReadFish"
types: [text]
exclude: '^.pre-commit-config.yaml$'
entry: 'Read[ _-]*Fish'
language: pygrep
- id: read-fish-checker
name: disallow "read fish"
types: [text]
exclude: '^.pre-commit-config.yaml$'
entry: '(?i)read fish'
language: pygrep
files: .+\.(yml|yaml|py|md|rst)
exclude: '^tests/static'