-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
49 lines (48 loc) · 1.49 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
repos:
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1 # Use the specified version of isort
hooks:
- id: isort
args:
- --profile=black # Set the import order style (change 'google' to your preferred style)
exclude: 'urtypes/__init__.py'
- repo: https://github.com/myint/autoflake
rev: v2.2.1 # Use the latest version of autoflake
hooks:
- id: autoflake
args:
- --remove-all-unused-imports
- --remove-unused-variables
- --in-place
- --exclude=__init__.py
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
language_version: python3.10
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
files: ^bitcoin_qr_tools/[^/]+\.py$
args:
- --follow-imports=skip
- --check-untyped-defs
# - --disallow-untyped-defs
# - --disallow-incomplete-defs
# - --strict-optional
- --implicit-optional
- --strict-equality
# - --warn-return-any
- --warn-redundant-casts
- --warn-unreachable
# - --disallow-any-generics
# - --strict
- --install-types
- --non-interactive
- --ignore-missing-imports
- --show-error-codes
additional_dependencies:
- types-requests
- pyqt6
- bdkpython