This repository was archived by the owner on Oct 7, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
63 lines (58 loc) · 1.8 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/ambv/black
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: requirements-txt-fixer
- id: mixed-line-ending
- id: check-toml
- id: check-merge-conflict
- id: name-tests-test
name: python tests naming
description: verifies that test files are named correctly.
entry: name-tests-test
language: python
exclude: ^tests/context.py$
files: (^|/)tests/.+\.py$
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.285
hooks:
- id: ruff
# - repo: https://github.com/shellcheck-py/shellcheck-py
# rev: v0.9.0.5
# hooks:
# - id: shellcheck
# - repo: local
# hooks:
# - id: simple-pylint
# name: simple-pylint
# entry: pylint
# args: ["api/"]
# language: system
# types: [python]
# pass_filenames: false
# - id: inline-pylint-with-bash
# name: inline-pylint-with-bash
# entry: bash -c 'lines=$(pylint api/ | wc -l) && (( lines > 10)) && exit 1'
# language: system
# types: [python]
# pass_filenames: false
# - id: check-is-disabled-partially
# name: .pre-commit-scripts/check-is-disabled-partially
# entry: python .pre-commit-scripts/check-is-disabled-partially.py
# language: python
# types: [python]
# verbose: true
# pass_filenames: false
default_language_version:
python: python3.11
default_stages: [commit, push]