fast-dev-cli 0.26.0__py3-none-any.whl → 0.26.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.
- fast_dev_cli/__init__.py +1 -1
- fast_dev_cli/cli.py +5 -3
- {fast_dev_cli-0.26.0.dist-info → fast_dev_cli-0.26.2.dist-info}/METADATA +1 -1
- fast_dev_cli-0.26.2.dist-info/RECORD +9 -0
- fast_dev_cli-0.26.0.dist-info/RECORD +0 -9
- {fast_dev_cli-0.26.0.dist-info → fast_dev_cli-0.26.2.dist-info}/WHEEL +0 -0
- {fast_dev_cli-0.26.0.dist-info → fast_dev_cli-0.26.2.dist-info}/entry_points.txt +0 -0
- {fast_dev_cli-0.26.0.dist-info → fast_dev_cli-0.26.2.dist-info}/licenses/LICENSE +0 -0
fast_dev_cli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.26.
|
|
1
|
+
__version__ = "0.26.2"
|
fast_dev_cli/cli.py
CHANGED
|
@@ -1159,7 +1159,7 @@ class GitTag(DryRun):
|
|
|
1159
1159
|
|
|
1160
1160
|
def mark_tag(self) -> bool:
|
|
1161
1161
|
if not re.search(r"working (tree|directory) clean", self.git_status) and (
|
|
1162
|
-
"
|
|
1162
|
+
"无文件要提交," not in self.git_status
|
|
1163
1163
|
):
|
|
1164
1164
|
run_and_echo("git status")
|
|
1165
1165
|
echo("ERROR: Please run git commit to make sure working tree is clean!")
|
|
@@ -1268,7 +1268,9 @@ class LintCode(DryRun):
|
|
|
1268
1268
|
if not path_args:
|
|
1269
1269
|
path_args = ["."]
|
|
1270
1270
|
quoted_paths = _join_shell_args(path_args)
|
|
1271
|
-
if path_args != ["."] and all(
|
|
1271
|
+
if path_args != ["."] and all(
|
|
1272
|
+
i.endswith((".html", ".js", ".vue")) for i in path_args
|
|
1273
|
+
):
|
|
1272
1274
|
prettier = "prettier"
|
|
1273
1275
|
abspath = shutil.which(prettier)
|
|
1274
1276
|
if abspath is None and (npx := shutil.which("npx")):
|
|
@@ -1276,7 +1278,7 @@ class LintCode(DryRun):
|
|
|
1276
1278
|
prettier = f"{npx} prettier"
|
|
1277
1279
|
elif is_windows() and abspath:
|
|
1278
1280
|
# If prettier is installed by `npm i -g`
|
|
1279
|
-
prettier = Path(abspath).name # prettier.CMD
|
|
1281
|
+
prettier = Path(abspath).name.removesuffix(".exe") # prettier.CMD
|
|
1280
1282
|
return f"{prettier} -w {quoted_paths}"
|
|
1281
1283
|
ruff_rules = ["I", "B"]
|
|
1282
1284
|
if ruff_check_sim and not load_bool("FASTDEVCLI_NO_SIM"):
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
fast_dev_cli-0.26.2.dist-info/METADATA,sha256=Cdhu5GZtQd9dkHqKAhjEuqMv6ga3h-zyiNwlOaIFIOc,5005
|
|
2
|
+
fast_dev_cli-0.26.2.dist-info/WHEEL,sha256=IuIk3wbaEnFH1cx75iM2R1CmliRI3dFLXTbRakgvgFQ,90
|
|
3
|
+
fast_dev_cli-0.26.2.dist-info/entry_points.txt,sha256=EpnwJ4XPZECHTknQoMggIP3_ylZVqTnbVME-Rr3i__k,63
|
|
4
|
+
fast_dev_cli-0.26.2.dist-info/licenses/LICENSE,sha256=I7slt8TWUmriPWuCsFnZ2brMtfHJsM_5y02rUEUN7yk,1068
|
|
5
|
+
fast_dev_cli/__init__.py,sha256=Crq5hftgS1Lj7H-8uxyxs5fX6lta4LLNjycaIacOoKo,23
|
|
6
|
+
fast_dev_cli/__main__.py,sha256=JYrcqssnrbCeRvq9opGYsyc6pUh38-8aK4TcclYOkqo,42
|
|
7
|
+
fast_dev_cli/cli.py,sha256=IPb7uWdW2Ikj2U-EGaXs0oo6BUD3lsaDIIuAjIQtl20,81477
|
|
8
|
+
fast_dev_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
fast_dev_cli-0.26.2.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
fast_dev_cli-0.26.0.dist-info/METADATA,sha256=wGIqeGimrXC6w-fDaAguLePkk8BS8637TKy7gtUFywE,5005
|
|
2
|
-
fast_dev_cli-0.26.0.dist-info/WHEEL,sha256=IuIk3wbaEnFH1cx75iM2R1CmliRI3dFLXTbRakgvgFQ,90
|
|
3
|
-
fast_dev_cli-0.26.0.dist-info/entry_points.txt,sha256=EpnwJ4XPZECHTknQoMggIP3_ylZVqTnbVME-Rr3i__k,63
|
|
4
|
-
fast_dev_cli-0.26.0.dist-info/licenses/LICENSE,sha256=I7slt8TWUmriPWuCsFnZ2brMtfHJsM_5y02rUEUN7yk,1068
|
|
5
|
-
fast_dev_cli/__init__.py,sha256=S1dNBNSmHJkAHkq1vL1Yg-dFpQk0fri_CstNlL1u5qw,23
|
|
6
|
-
fast_dev_cli/__main__.py,sha256=JYrcqssnrbCeRvq9opGYsyc6pUh38-8aK4TcclYOkqo,42
|
|
7
|
-
fast_dev_cli/cli.py,sha256=aDGVBuB59kyBqZE-tiIRM0HAEtndeReWPP1jwdgEJm4,81435
|
|
8
|
-
fast_dev_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
fast_dev_cli-0.26.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|