-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-hooks.yaml
40 lines (40 loc) · 1.39 KB
/
.pre-commit-hooks.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
- id: codemod_batch
name: "OctoPrint codemod: batch"
description: "Batch runs codemods in a single command (and traversal)"
entry: codemod_batch
language: python
language_version: python3
require_serial: false
types: [python]
- id: codemod_not_in
name: "OctoPrint codemod: not_in"
description: "Converts 'not foo in bar' to 'foo not in bar' constructs."
entry: codemod_not_in
language: python
language_version: python3
require_serial: false
types: [python]
- id: codemod_remove_float_conversion
name: "OctoPrint codemod: remove_float_conversion"
description: "Removes unnecessary float conversions."
entry: codemod_remove_float_conversion
language: python
language_version: python3
require_serial: false
types: [python]
- id: codemod_remove_builtins_imports
name: "OctoPrint codemod: remove_builtins_imports"
description: "Removes 'from builtins import ...' and 'import builtins'."
entry: codemod_remove_builtins_imports
language: python
language_version: python3
require_serial: false
types: [python]
- id: codemod_detect_past_builtins_imports
name: "OctoPrint codemod: detect_past_builtins_imports"
description: "Detects 'from past import ...', 'from past.builtins import ...', 'import past', 'import past.builtins' imports"
entry: codemod_detect_past_builtins_imports
language: python
language_version: python3
require_serial: false
types: [python]