forked from binarylane/binarylane-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
42 lines (42 loc) · 1.28 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
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-case-conflict
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-yaml
- id: detect-private-key
- id: trailing-whitespace
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports
args: ['--application-directories','lib:src:.']
- repo: https://github.com/pycqa/isort
rev: 5.11.4
hooks:
- id: isort
args: ['--add-import', 'from __future__ import annotations']
- repo: local
hooks:
- id: black
name: check code is correctly formatted
entry: poetry run task black
pass_filenames: false
language: system
- id: mypy
name: check code passes static type analysis
entry: poetry run task mypy
pass_filenames: false
language: system
- id: pylint
name: check code passes static analyser
entry: poetry run task pylint
pass_filenames: false
language: system