-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
53 lines (51 loc) · 1.57 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
repos:
- repo: https://github.com/pycqa/isort
rev: 5.13.2 # Use the specified version of isort
hooks:
- id: isort
args:
- --profile=black # Set the import order style (change 'google' to your preferred style)
- repo: https://github.com/myint/autoflake
rev: v2.3.1 # Use the latest version of autoflake
hooks:
- id: autoflake
args:
- --expand-star-imports
- --remove-all-unused-imports
- --remove-unused-variables
- --in-place
- --exclude=__init__.py
- --remove-duplicate-keys
- repo: https://github.com/ambv/black
rev: 24.8.0
hooks:
- id: black
language_version: python3.10
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2 # Use the latest MyPy version
hooks:
- id: mypy
# Additional arguments to MyPy can be added here
args:
- --check-untyped-defs
# - --disallow-untyped-defs
# - --strict-optional
- --implicit-optional
# - --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
- types-PyYAML
- types-toml
- pytest-mypy
- types-Pillow
- types-reportlab
- pyqt6
- nostr_sdk