forked from interactions-py/interactions.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
56 lines (56 loc) · 1.55 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: requirements-txt-fixer
name: Requirements
types: [file]
exclude_types: ['image']
- id: debug-statements
name: Debugging
language: python
types: [file, python]
exclude_types: ['image']
- id: trailing-whitespace
name: Trailing Whitespace
language: python
types: [file]
exclude_types: ['image', 'binary', 'executable']
- id: end-of-file-fixer
name: EOF Newlines
language: python
types: [file]
exclude_types: ['image', 'binary', 'executable']
- id: check-yaml
name: YAML Structure
language: python
args: ['--unsafe']
- id: check-toml
name: TOML Structure
- id: check-merge-conflict
name: Merge Conflicts
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.261'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
name: Black Formatting
language: python
types: [ file, python ]
# - repo: https://github.com/pycqa/isort
# rev: 5.11.4
# hooks:
# - id: isort
# name: isort Formatting
# language: python
# types: [file, python]
ci:
autoupdate_branch: "unstable"
autofix_prs: true
autoupdate_commit_msg: "ci: weekly check."
autoupdate_schedule: weekly
autofix_commit_msg: "ci: correct from checks."