replyowl 0.2.2__tar.gz → 0.2.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.
@@ -0,0 +1,8 @@
1
+ # Environment/Tools
2
+
3
+ * Python project with `uv`, use `uv add`/`uv run python` instead of bare `pip`/`python`
4
+ * `poe setup`: One-time after-clone setup (dependencies, install pre-commit hooks).
5
+ * `poe lint`: Pre-commit hooks (via `pre-commit`-compatible `prek`) including lint, format, type check (ruff, ty)
6
+ * `poe test`: Run tests (accepts pytest arguments)
7
+ * `poe lt`: Lint+test (no arguments)
8
+ * `poe snapup`: Update test snapshots (syrupy, accepts pytest arguments)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: replyowl
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Email reply body generator for HTML and text in Python
5
5
  Project-URL: Homepage, https://smkent.github.io/replyowl
6
6
  Project-URL: Repository, https://github.com/smkent/replyowl
@@ -27,7 +27,7 @@ To apply updates without being prompted (reusing all previous answers), run:
27
27
  copier update -l
28
28
  ```
29
29
 
30
- When `copier update` is finished, view changes with `git status` and `git diff`.
31
- Resolve any conflicts, and then commit the result.
30
+ When [`copier update`][copier-update] is finished, view changes with
31
+ `git status` and `git diff`. Resolve any conflicts, and then commit the result.
32
32
 
33
33
  [copier-update]: https://copier.readthedocs.io/en/stable/updating/
@@ -29,6 +29,15 @@ The `lint` and `test` tasks can also be run as a single combined command with:
29
29
  poe lt
30
30
  ```
31
31
 
32
+ ### Test snapshots
33
+
34
+ Some tests compare test results with saved snapshots. Test snapshots can be
35
+ updated by running:
36
+
37
+ ```sh
38
+ poe snapup
39
+ ```
40
+
32
41
  ## Documentation server
33
42
 
34
43
  Start the development server with:
@@ -37,6 +46,8 @@ Start the development server with:
37
46
  poe docs
38
47
  ```
39
48
 
40
- The documentation site will be served at **<http://localhost:8000>**.
49
+ The documentation site will be served at:
50
+
51
+ [**http://localhost:8000**](http://localhost:8000){ .md-button .md-button--primary target="_blank" }
41
52
 
42
53
  To use a different bind host/port, run `poe --help docs` for arguments info.
@@ -55,7 +55,6 @@ need to be stored as secrets.
55
55
  [pypi-publishing-settings]: https://pypi.org/manage/account/publishing/
56
56
  [pypi-trusted-publishing]: https://docs.pypi.org/trusted-publishers/
57
57
  [renovate]: https://github.com/apps/renovate
58
- [repo-releases]: https://github.com/smkent/replyowl/releases
59
58
  [repo-settings]: https://github.com/smkent/replyowl/settings
60
59
  [repo-settings-envs]: https://github.com/smkent/replyowl/settings/environments
61
60
  [repo-settings-branches]: https://github.com/smkent/replyowl/settings/branches
@@ -47,17 +47,19 @@ Issues = "https://github.com/smkent/replyowl/issues"
47
47
  dev = [
48
48
  "bump-my-version>=1.3.0",
49
49
  "poethepoet>=0.42",
50
- "prek>=0.3",
50
+ "prek>=0.4",
51
51
  "pysentry-rs>=0.4",
52
52
  "pytest>=9",
53
53
  "pytest-cov>=7",
54
54
  "pytest-sugar>=1",
55
+ "pytest-xdist>=3",
55
56
  "ruff>=0.15",
56
- "ty>=0.0.31",
57
+ "syrupy>=5",
58
+ "ty>=0.0.38",
57
59
  ]
58
60
  docs = [
59
61
  "mkdocstrings[python]>=1",
60
- "zensical>=0.0.33",
62
+ "zensical>=0.0.43",
61
63
  ]
62
64
 
63
65
  [tool.bumpversion]
@@ -136,6 +138,10 @@ sequence = [
136
138
  ]
137
139
  help = "Install project dependencies and git hooks"
138
140
 
141
+ [tool.poe.tasks.snapup]
142
+ cmd = "pytest --snapshot-update --numprocesses 0"
143
+ help = "Update test snapshots"
144
+
139
145
  [tool.poe.tasks.test]
140
146
  cmd = "pytest"
141
147
  help = "Run tests"
@@ -169,12 +175,18 @@ cmd = "pytest"
169
175
  executor = {isolated = true, python = "3.14"}
170
176
  help = "Run tests using Python 3.14"
171
177
 
178
+ [tool.poe.tasks.ti]
179
+ cmd = "pytest --numprocesses 0 --no-cov -vv"
180
+ help = "Run tests with debug friendly options"
181
+
172
182
  [tool.pytest]
173
183
  addopts = [
174
184
  "-ra",
175
- "--cov",
185
+ "--cov=replyowl",
176
186
  "--strict-config",
177
187
  "--strict-markers",
188
+ "--numprocesses",
189
+ "auto",
178
190
  ]
179
191
  testpaths = ["tests"]
180
192
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes