Skip to content

Commit 2316166

Browse files
committed
feat: Add black and ruff pre-commit
#1
1 parent d9f6666 commit 2316166

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.pre-commit-config.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.5.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: check-yaml
9+
- id: check-json
10+
11+
- repo: https://github.com/psf/black
12+
rev: 24.1.1
13+
hooks:
14+
- id: black
15+
args: ["-l", "79"]
16+
name: black
17+
description: "Black: The uncompromising Python code formatter"
18+
entry: black
19+
language: python
20+
minimum_pre_commit_version: 2.9.2
21+
require_serial: true
22+
types_or: [python, pyi]
23+
24+
- repo: https://github.com/charliermarsh/ruff-pre-commit
25+
rev: 'v0.1.14'
26+
hooks:
27+
- id: ruff

0 commit comments

Comments
 (0)