-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (42 loc) · 1.51 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
44 lines (42 loc) · 1.51 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
40
41
42
43
44
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.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
- id: detect-private-key
name: Checks for the existence of private keys
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.5
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: local
hooks:
- id: export-dev-dependencies
name: Export dev Dependencies
language: system
pass_filenames: false
entry: poetry export --without-hashes --with 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)$