-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
41 lines (39 loc) · 1.44 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: no-commit-to-branch
name: Check to see if a commit is pushed to a safe branch
- id: check-toml
name: Check the files with `.toml` format
- id: check-yaml
name: Check the files with `.yaml` format
args: ['--allow-multiple-documents']
- id: end-of-file-fixer
name: Check for an empty line at the end of a file
- id: trailing-whitespace
name: Check for unnecessary white space
args: ['--markdown-linebreak-ext=md']
- id: check-docstring-first
name: Check docstrings location in python files
- id: check-merge-conflict
name: Сheck for no conflicts in the branch
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
hooks:
- id: ruff
types_or: [ python ]
- repo: local
hooks:
- id: export-dev-dependencies
name: Export dev Dependencies
language: system
pass_filenames: false
entry: poetry export --without-hashes --dev --output requirements/dev.txt
files: ^(pyproject.toml|poetry.lock)$
- id: export-prod-dependencies
name: Export prod Dependencies
language: system
pass_filenames: false
entry: poetry export --without-hashes --output requirements/prod.txt
files: ^(pyproject.toml|poetry.lock)$