File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,9 @@ ignore = [
208
208
" D107" , # Missing docstring in `__init__`
209
209
" D401" , # First line should be in imperative mood
210
210
]
211
+ unfixable = [
212
+ " T201" ,
213
+ ]
211
214
212
215
[tool .ruff .lint .per-file-ignores ]
213
216
"docs/conf*.py" = [" ALL" ]
Original file line number Diff line number Diff line change
1
+ """Module subliminal."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from textwrap import dedent
6
+
7
+ if not (__name__ == '__main__' and __package__ == 'subliminal' ):
8
+ import sys
9
+
10
+ print ( # noqa: T201
11
+ dedent (
12
+ f"""
13
+
14
+ The '__main__' module does not seem to have been run in the context
15
+ of a runnable package ... did you forget to add the '-m' flag?
16
+
17
+ Usage: { sys .executable } -m subliminal { ' ' .join (sys .argv [1 :])}
18
+
19
+ """
20
+ )
21
+ )
22
+ sys .exit (2 )
23
+
24
+ from subliminal .cli import cli
25
+
26
+ cli ()
You can’t perform that action at this time.
0 commit comments