neggles commited on
Commit
d1210e4
·
1 Parent(s): c17e2d8

add pre-commit

Browse files
Files changed (1) hide show
  1. .pre-commit-config.yaml +27 -0
.pre-commit-config.yaml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # See https://pre-commit.com for more information
2
+ ci:
3
+ autofix_prs: true
4
+ autoupdate_branch: "main"
5
+ autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
6
+ autoupdate_schedule: monthly
7
+
8
+ repos:
9
+ - repo: https://github.com/astral-sh/ruff-pre-commit
10
+ rev: "v0.0.287"
11
+ hooks:
12
+ - id: ruff
13
+ args: ["--fix", "--exit-non-zero-on-fix", "--line-length=110"]
14
+
15
+ - repo: https://github.com/psf/black
16
+ rev: 23.7.0
17
+ hooks:
18
+ - id: black
19
+ args: ["--line-length=110"]
20
+
21
+ - repo: https://github.com/pre-commit/pre-commit-hooks
22
+ rev: v4.4.0
23
+ hooks:
24
+ - id: trailing-whitespace
25
+ - id: end-of-file-fixer
26
+ - id: check-yaml
27
+ - id: check-added-large-files