Skip to content

Commit b88c8da

Browse files
Merge pull request #2338 from VWS-Python/entry-path
Specify Python module use in pre-commit hooks
2 parents 7c97877 + dd43450 commit b88c8da

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,85 +61,85 @@ repos:
6161
- id: mypy
6262
name: mypy
6363
stages: [push]
64-
entry: mypy .
64+
entry: python -m mypy .
6565
language: system
6666
types_or: [python, toml]
6767
pass_filenames: false
6868

6969
- id: check-manifest
7070
name: check-manifest
7171
stages: [push]
72-
entry: check-manifest .
72+
entry: python -m check_manifest .
7373
language: system
7474
pass_filenames: false
7575

7676
- id: pyright
7777
name: pyright
7878
stages: [push]
79-
entry: pyright .
79+
entry: python -m pyright .
8080
language: system
8181
types_or: [python, toml]
8282
pass_filenames: false
8383

8484
- id: vulture
8585
name: vulture
86-
entry: vulture --min-confidence 100 --exclude .eggs
86+
entry: python -m vulture --min-confidence 100 --exclude .eggs
8787
language: system
8888
types_or: [python]
8989

9090
- id: pyroma
9191
name: pyroma
92-
entry: pyroma --min 10 .
92+
entry: python -m pyroma --min 10 .
9393
language: system
9494
pass_filenames: false
9595
types_or: [toml]
9696

9797
- id: deptry
9898
name: deptry
99-
entry: deptry src/
99+
entry: python -m deptry src/
100100
language: system
101101
pass_filenames: false
102102

103103
- id: pylint
104104
name: pylint
105-
entry: pylint *.py src/ tests/ docs/
105+
entry: python -m pylint *.py src/ tests/ docs/
106106
language: system
107107
stages: [manual]
108108
pass_filenames: false
109109

110110
- id: ruff-check
111111
name: Ruff check
112-
entry: ruff check
112+
entry: python -m ruff check
113113
language: system
114114
types_or: [python]
115115

116116
- id: ruff-format-diff
117117
name: Ruff format diff
118-
entry: ruff format --diff
118+
entry: python -m ruff format --diff
119119
language: system
120120
types_or: [python]
121121

122122
- id: ruff-check-fix
123123
name: Ruff check fix
124-
entry: ruff check --fix
124+
entry: python -m ruff check --fix
125125
language: system
126126
types_or: [python]
127127

128128
- id: ruff-format-fix
129129
name: Ruff format
130-
entry: ruff format
130+
entry: python -m ruff format
131131
language: system
132132
types_or: [python]
133133

134134
- id: doc8
135135
name: doc8
136-
entry: doc8
136+
entry: python -m doc8
137137
language: system
138138
types_or: [rst]
139139

140140
- id: interrogate
141141
name: interrogate
142-
entry: interrogate
142+
entry: python -m interrogate
143143
language: system
144144
types_or: [python]
145145

@@ -183,7 +183,7 @@ repos:
183183
- id: pyright-verifytypes
184184
name: pyright-verifytypes
185185
stages: [push]
186-
entry: pyright --verifytypes vws
186+
entry: python -m pyright --verifytypes vws
187187
language: system
188188
pass_filenames: false
189189
types_or: [python]

0 commit comments

Comments
 (0)