Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf3e826 commit 926071bCopy full SHA for 926071b
1 file changed
testing/languages
@@ -16,6 +16,15 @@ EXCLUDED = frozenset((
16
))
17
18
19
+def _always_run() -> frozenset[str]:
20
+ ret = ['.github/workflows/languages.yml', 'testing/languages']
21
+ ret.extend(
22
+ os.path.join('pre_commit/resources', fname)
23
+ for fname in os.listdir('pre_commit/resources')
24
+ )
25
+ return frozenset(ret)
26
+
27
28
def _lang_files(lang: str) -> frozenset[str]:
29
prog = f'''\
30
import json
@@ -47,10 +56,12 @@ def main() -> int:
47
56
if fname.endswith('.py') and fname != '__init__.py'
48
57
]
49
58
59
+ triggers_all = _always_run()
60
50
61
if not args.all:
51
62
with concurrent.futures.ThreadPoolExecutor(os.cpu_count()) as exe:
52
63
by_lang = {
53
- lang: files
64
+ lang: files | triggers_all
54
65
for lang, files in zip(langs, exe.map(_lang_files, langs))
55
66
}
67
0 commit comments