Skip to content

Commit 98e3a62

Browse files
Add support for new unsupported and unsupported_script languages explicitly to pre-commit scheama
1 parent de72743 commit 98e3a62

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • src/usethis/_integrations/pre_commit

src/usethis/_integrations/pre_commit/schema.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# plus manually remove default for LocalRepo.repo
99
# plus manually add HookDefinition.require_serial for type hinting
1010
# plus manually set default to None for roundtripping
11+
# plus manually add unsupported and unsupported_script to Language
1112

1213

1314
from __future__ import annotations
@@ -74,6 +75,8 @@ class Language(
7475
"pygrep",
7576
"script",
7677
"system",
78+
"unsupported", # Added manually https://github.com/usethis-python/usethis-python/issues/1149
79+
"unsupported_script", # Added manually https://github.com/usethis-python/usethis-python/issues/1149
7780
]
7881
| str
7982
]
@@ -100,6 +103,8 @@ class Language(
100103
"pygrep",
101104
"script",
102105
"system",
106+
"unsupported", # Added manually https://github.com/usethis-python/usethis-python/issues/1149
107+
"unsupported_script", # Added manually https://github.com/usethis-python/usethis-python/issues/1149
103108
]
104109
| str
105110
)

0 commit comments

Comments
 (0)