fast-dev-cli 0.26.0__tar.gz → 0.26.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fast-dev-cli
3
- Version: 0.26.0
3
+ Version: 0.26.2
4
4
  Summary: Python project development tool.
5
5
  Author-Email: Waket Zheng <waketzheng@gmail.com>>
6
6
  Classifier: Development Status :: 4 - Beta
@@ -0,0 +1 @@
1
+ __version__ = "0.26.2"
@@ -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
- "无文件要提交,干净的工作区" not in self.git_status
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(i.endswith(".html") for i in path_args):
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"):
@@ -29,7 +29,7 @@ dependencies = [
29
29
  "typer>=0.24.0,<1",
30
30
  "tomli >=2.0.1,<3; python_version < '3.11'",
31
31
  ]
32
- version = "0.26.0"
32
+ version = "0.26.2"
33
33
 
34
34
  [project.urls]
35
35
  Homepage = "https://github.com/waketzheng/fast-dev-cli"
@@ -150,7 +150,7 @@ exclude = [
150
150
  ]
151
151
 
152
152
  [tool.ty.rules]
153
- unresolved-import = "ignore"
153
+ import-not-found = "ignore"
154
154
  unused-ignore-comment = "ignore"
155
155
  unused-type-ignore-comment = "ignore"
156
156
 
@@ -1 +0,0 @@
1
- __version__ = "0.26.0"
File without changes
File without changes