This repository was archived by the owner on Feb 27, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
56 lines (50 loc) · 1.57 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
56 lines (50 loc) · 1.57 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
45
46
47
48
49
50
51
52
53
54
55
56
# Note: Keep versions in sync with the poetry.lock file.
# To install new hooks run `pre-commit install`.
repos:
- repo: https://github.com/psf/black
rev: "22.10.0"
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.2.0"
hooks:
- id: check-added-large-files
args: ["--maxkb=2000"]
exclude: "V5Automation.chm"
- id: "no-commit-to-branch"
args: ["--branch", "main"]
- repo: local
hooks:
# - id: pylint
# name: pylint
# entry: poetry run pylint pytia/
# language: system
# always_run: true
# pass_filenames: false
# args:
# - --rcfile=./.pylintrc
# - --fail-under=9
- id: poetry-check
name: poetry-check
description: run poetry check to validate config
entry: poetry check
language: python
language_version: python3
pass_filenames: false
files: ^pyproject.toml$
# - id: poetry-lock
# name: poetry-lock
# description: run poetry lock to update lock file
# entry: poetry lock
# language: python
# language_version: python3
# pass_filenames: false
# - id: poetry-export
# name: poetry-export
# description: run poetry export to sync lock file with requirements.txt
# entry: poetry export
# language: python
# language_version: python3
# pass_filenames: false
# files: ^poetry.lock$
# args: ["--dev", "-f", "requirements.txt", "-o", "requirements.txt"]