Skip to content

Commit 2655d41

Browse files
Merge pull request #206 from BrainBlend-AI/fix/pre-commit-config
chore: add pre-commit configuration
2 parents 9487597 + fe0bb2b commit 2655d41

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files
9+
10+
- repo: https://github.com/psf/black
11+
rev: 24.10.0
12+
hooks:
13+
- id: black
14+
args: [--line-length=127]
15+
16+
- repo: https://github.com/pycqa/flake8
17+
rev: 7.1.1
18+
hooks:
19+
- id: flake8
20+
args: [--max-line-length=127]

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ atomic = "atomic_assembler.main:main"
4747
dev = [
4848
"black>=24.8.0,<25.0.0",
4949
"flake8>=7.1.1,<8.0.0",
50+
"pre-commit>=4.0.0,<5.0.0",
5051
"pdoc3>=0.11.1,<1.0.0",
5152
"pytest>=8.3.3,<9.0.0",
5253
"pytest-cov>=5.0.0,<6.0.0",

0 commit comments

Comments
 (0)