duty 1.7.0__py3-none-any.whl → 1.7.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- duty/_internal/tools/_ty.py +7 -4
- {duty-1.7.0.dist-info → duty-1.7.2.dist-info}/METADATA +1 -1
- {duty-1.7.0.dist-info → duty-1.7.2.dist-info}/RECORD +6 -6
- {duty-1.7.0.dist-info → duty-1.7.2.dist-info}/WHEEL +0 -0
- {duty-1.7.0.dist-info → duty-1.7.2.dist-info}/entry_points.txt +0 -0
- {duty-1.7.0.dist-info → duty-1.7.2.dist-info}/licenses/LICENSE +0 -0
duty/_internal/tools/_ty.py
CHANGED
|
@@ -54,7 +54,7 @@ class ty(Tool): # noqa: N801
|
|
|
54
54
|
force_exclude: bool | None = None,
|
|
55
55
|
exclude: list[str] | None = None,
|
|
56
56
|
no_progress: bool | None = None,
|
|
57
|
-
color: str | None = None,
|
|
57
|
+
color: str | bool | None = None,
|
|
58
58
|
) -> ty:
|
|
59
59
|
"""Run ty on the given files or directories.
|
|
60
60
|
|
|
@@ -82,7 +82,7 @@ class ty(Tool): # noqa: N801
|
|
|
82
82
|
force_exclude: Enforce exclusions, even for paths passed to ty directly on the command-line.
|
|
83
83
|
exclude: Glob patterns for files to exclude from type checking.
|
|
84
84
|
no_progress: Hide all progress outputs.
|
|
85
|
-
color: Control when colored output is used (possible values: auto, always, never).
|
|
85
|
+
color: Control when colored output is used (possible values: auto, always/true, never/false).
|
|
86
86
|
"""
|
|
87
87
|
cli_args = ["check", *paths]
|
|
88
88
|
|
|
@@ -171,9 +171,12 @@ class ty(Tool): # noqa: N801
|
|
|
171
171
|
if no_progress:
|
|
172
172
|
cli_args.append("--no-progress")
|
|
173
173
|
|
|
174
|
-
if color:
|
|
174
|
+
if color is True:
|
|
175
175
|
cli_args.append("--color")
|
|
176
|
-
cli_args.append(
|
|
176
|
+
cli_args.append("always")
|
|
177
|
+
elif color is False:
|
|
178
|
+
cli_args.append("--color")
|
|
179
|
+
cli_args.append("never")
|
|
177
180
|
|
|
178
181
|
return cls(cli_args)
|
|
179
182
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
duty-1.7.
|
|
2
|
-
duty-1.7.
|
|
3
|
-
duty-1.7.
|
|
4
|
-
duty-1.7.
|
|
1
|
+
duty-1.7.2.dist-info/METADATA,sha256=lBU1_jsadoivWZgKlt-aozjw5z_pVvLDpFC9UrePD0w,2710
|
|
2
|
+
duty-1.7.2.dist-info/WHEEL,sha256=Wb0ASbVj8JvWHpOiIpPi7ucfIgJeCi__PzivviEAQFc,90
|
|
3
|
+
duty-1.7.2.dist-info/entry_points.txt,sha256=aCE5QWIgzL6DnOQTeLmwnOqbV70ERZQ71hFYXAiMDwU,51
|
|
4
|
+
duty-1.7.2.dist-info/licenses/LICENSE,sha256=nQxdYSduhkgEpOTmg4yyIMmFPzcr2qrlUl8Tf9QZPug,754
|
|
5
5
|
duty/__init__.py,sha256=XYIKFqVvQCBDPNCtsCwPpN_mEnKRas5_103x9tdx3Vg,1205
|
|
6
6
|
duty/__main__.py,sha256=uzZGmlxuxHwn-rBp8axUwB57GcnmPGcFmDVHArwrrdI,343
|
|
7
7
|
duty/_internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -49,7 +49,7 @@ duty/_internal/tools/_ruff.py,sha256=JNuXrSwaWesKn7ad6uRZL4suJFlAlAusN6_kU0EkW5w
|
|
|
49
49
|
duty/_internal/tools/_safety.py,sha256=MGFZ3xJ2JqlHQTEfnRaprQl1_Pi6iKCvSzbUC6zlIAY,3418
|
|
50
50
|
duty/_internal/tools/_ssort.py,sha256=s8kxAazD0pbbMsvXK_6xmJUVF1tlXCQuCjmL2zCxawA,1199
|
|
51
51
|
duty/_internal/tools/_twine.py,sha256=GF5FJbyo5-4sx1rGuz5xd9Vy_uIiTVWA_kF3rBpoICY,10519
|
|
52
|
-
duty/_internal/tools/_ty.py,sha256=
|
|
52
|
+
duty/_internal/tools/_ty.py,sha256=JgIwmh-XYCQkAdC4X924gknqyxGn1_Ia-HLY0xp1xlA,6796
|
|
53
53
|
duty/_internal/tools/_yore.py,sha256=wNa7ZeSOg5Ai5ORVVs2kBk3_IJdDqcjGrstbeBjDI1E,3492
|
|
54
54
|
duty/_internal/validation.py,sha256=6gf_uALpLMFOKvipHk_qdDGf9u7vyaN7clivHK63wbE,8168
|
|
55
55
|
duty/callables/__init__.py,sha256=soGDrmBeiJrdSRfx1hFNZWZ6BBglvG4AJ3iJb6_IWug,1071
|
|
@@ -79,4 +79,4 @@ duty/exceptions.py,sha256=p36-9D47b-gWPd_HZoUKl0nivaaLJiuAbNHe3TTYr7w,393
|
|
|
79
79
|
duty/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
80
80
|
duty/tools.py,sha256=4-231PY1yVuOoDAdlEa7e3A3jh_gFkpVaWibJPd3qEk,1226
|
|
81
81
|
duty/validation.py,sha256=U-fSrcMVgKyTCOczNS_TsSNF03U1DVgEg0BF3rJAySo,393
|
|
82
|
-
duty-1.7.
|
|
82
|
+
duty-1.7.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|