-
Notifications
You must be signed in to change notification settings - Fork 63
/
.pre-commit-config.yaml
48 lines (48 loc) · 1.29 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [--settings-path, pyproject.toml]
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
args: [--config, pyproject.toml]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: insert-license
files: ^src/neptune/(?!new/)[^/]+(?:/[^/]+)*\.py$
args: [ "--license-filepath", ".github/license_header.txt", "--allow-past-years"]
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
entry: pflake8
additional_dependencies: ["pyproject-flake8"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
hooks:
- id: mypy
args: [ --config-file, pyproject.toml ]
pass_filenames: false
additional_dependencies:
- types-click
- mypy-protobuf
- neptune-api
- packaging
exclude: |
(?x)(
^tests/unit/data/|
^.github/license_header\.txt|
^src/neptune/api/proto/
)
default_language_version:
python: python3