fast-dev-cli 0.18.2__tar.gz → 0.18.3__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.
Files changed (34) hide show
  1. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/PKG-INFO +16 -1
  2. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/README.md +15 -0
  3. fast_dev_cli-0.18.3/fast_dev_cli/__init__.py +1 -0
  4. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/fast_dev_cli/cli.py +13 -3
  5. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/pyproject.toml +1 -1
  6. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_lint.py +8 -0
  7. fast_dev_cli-0.18.2/fast_dev_cli/__init__.py +0 -1
  8. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/LICENSE +0 -0
  9. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/fast_dev_cli/__main__.py +0 -0
  10. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/fast_dev_cli/py.typed +0 -0
  11. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/pdm_build.py +0 -0
  12. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/scripts/check.py +0 -0
  13. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/scripts/deps.py +0 -0
  14. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/scripts/format.py +0 -0
  15. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/scripts/test.py +0 -0
  16. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/__init__.py +0 -0
  17. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/assets/uv-tx.lock +0 -0
  18. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/assets/uv.lock +0 -0
  19. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/conftest.py +0 -0
  20. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_bump.py +0 -0
  21. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_deps.py +0 -0
  22. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_exec.py +0 -0
  23. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_fast_test.py +0 -0
  24. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_functions.py +0 -0
  25. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_help.py +0 -0
  26. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_poetry_version_plugin.py +0 -0
  27. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_pypi.py +0 -0
  28. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_runserver.py +0 -0
  29. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_sync.py +0 -0
  30. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_tag.py +0 -0
  31. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_upgrade.py +0 -0
  32. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_upload.py +0 -0
  33. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/test_version.py +0 -0
  34. {fast_dev_cli-0.18.2 → fast_dev_cli-0.18.3}/tests/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fast-dev-cli
3
- Version: 0.18.2
3
+ Version: 0.18.3
4
4
  Summary: Python project development tool.
5
5
  Author-Email: Waket Zheng <waketzheng@gmail.com>>
6
6
  Classifier: Development Status :: 4 - Beta
@@ -131,3 +131,18 @@ fast dev
131
131
  fast upload
132
132
  ```
133
133
  *Note: all command support the `--dry` option*
134
+
135
+ ## Use it without installed
136
+
137
+ ```bash
138
+ uvx --from fastdevcli-slim fast
139
+ ```
140
+
141
+ ## Install global
142
+ ```bash
143
+ pipx install fastdevcli-slim
144
+ ```
145
+ Or:
146
+ ```bash
147
+ uv tool install fastdevcli-slim
148
+ ```
@@ -95,3 +95,18 @@ fast dev
95
95
  fast upload
96
96
  ```
97
97
  *Note: all command support the `--dry` option*
98
+
99
+ ## Use it without installed
100
+
101
+ ```bash
102
+ uvx --from fastdevcli-slim fast
103
+ ```
104
+
105
+ ## Install global
106
+ ```bash
107
+ pipx install fastdevcli-slim
108
+ ```
109
+ Or:
110
+ ```bash
111
+ uv tool install fastdevcli-slim
112
+ ```
@@ -0,0 +1 @@
1
+ __version__ = "0.18.3"
@@ -1058,9 +1058,19 @@ class LintCode(DryRun):
1058
1058
  return cmd
1059
1059
 
1060
1060
  def gen(self) -> str:
1061
- if isinstance(args := self.args, str):
1062
- args = args.split()
1063
- paths = " ".join(map(str, args)) if args else "."
1061
+ paths = "."
1062
+ if args := self.args:
1063
+ ps = args.split() if isinstance(args, str) else [str(i) for i in args]
1064
+ if len(ps) == 1:
1065
+ paths = ps[0]
1066
+ if paths != "." and paths.endswith(".") and not Path(paths).exists():
1067
+ for ft in ("py", "html"):
1068
+ name = paths + ft
1069
+ if Path(name).exists():
1070
+ paths = name
1071
+ break
1072
+ else:
1073
+ paths = " ".join(ps)
1064
1074
  return self.to_cmd(
1065
1075
  paths,
1066
1076
  self.check_only,
@@ -42,7 +42,7 @@ dependencies = [
42
42
  "bumpversion2 >=1.4.3",
43
43
  "pytest >=8.2.0",
44
44
  ]
45
- version = "0.18.2"
45
+ version = "0.18.3"
46
46
 
47
47
  [project.urls]
48
48
  Homepage = "https://github.com/waketzheng/fast-dev-cli"
@@ -187,6 +187,14 @@ def test_lint_with_prefix(mocker):
187
187
  assert "pdm run" in stream.getvalue()
188
188
 
189
189
 
190
+ def test_lint_auto_suffix(tmp_work_dir):
191
+ Path("main.py").touch()
192
+ cmd = "fast lint --dry main."
193
+ assert "main.py" in capture_cmd_output(cmd)
194
+ shutil.move("main.py", "main.html")
195
+ assert "main.html" in capture_cmd_output(cmd)
196
+
197
+
190
198
  def test_fast_lint_with_uv():
191
199
  command = capture_cmd_output("fast lint --tool=uv --prefix --dry")
192
200
  assert (
@@ -1 +0,0 @@
1
- __version__ = "0.18.2"
File without changes