-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (38 loc) · 1.24 KB
/
.pre-commit-config.yaml
File metadata and controls
39 lines (38 loc) · 1.24 KB
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
repos:
- repo: https://github.com/myint/autoflake
rev: v2.2.0
hooks:
- id: autoflake
args:
- --remove-all-unused-imports # Removes all unused imports
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ["--maxkb=2000"]
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
args: ['--ignore=E501,W503'] # Ignoring line length error and line break before binary operator
- repo: https://github.com/pycqa/isort
rev: '5.13.2'
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/python-poetry/poetry
rev: 1.5.0
hooks:
- id: poetry-check # Validates the structure of pyproject.toml files managed by Poetry
#- id: poetry-lock # Ensures the poetry.lock file is up-to-date
- id: poetry-export # Ensures that 'poetry export' command is up-to-date with pyproject.toml