Skip to content

Commit e34e07e

Browse files
authored
Update precommit
1 parent 71355d8 commit e34e07e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.5.0
3+
rev: v4.5.0
44
hooks:
55
- id: check-merge-conflict
66
- id: check-toml
@@ -9,12 +9,12 @@ repos:
99
- id: trailing-whitespace
1010

1111
- repo: https://github.com/pre-commit/pygrep-hooks
12-
rev: v1.5.1
12+
rev: v1.10.0
1313
hooks:
1414
- id: python-check-blanket-noqa
1515

1616
- repo: https://github.com/PyCQA/isort
17-
rev: 5.10.1
17+
rev: 5.13.2
1818
hooks:
1919
- id: isort
2020

tools/generate_config_stub.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88

99
import yaml
1010

11-
from starbot.configuration.definition import SPECIAL_TYPES
11+
SPECIAL_TYPES = {
12+
"discord_role": "int",
13+
"discord_permission": "disnake.Permissions",
14+
"discord_channel": "int",
15+
"choice": "str",
16+
}
1217

1318
HELP_TEXT = """
1419
This script generates the typing stub for the config module.

0 commit comments

Comments
 (0)