Skip to content

Commit 75d5c85

Browse files
committed
Improved docs
1 parent 007fd20 commit 75d5c85

File tree

16 files changed

+799
-284
lines changed

16 files changed

+799
-284
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,3 @@ jobs:
1818
pip install tox tox-gh-actions
1919
- name: Test with tox
2020
run: tox
21-
- name: Upload coverage reports to Codecov
22-
uses: codecov/codecov-action@v4.0.1
23-
with:
24-
verbose: true
25-
env:
26-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Justfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ update:
2626
{{PIP}} install -U \
2727
build \
2828
pytest \
29+
docutils \
2930
pytest-sugar \
3031
pytest-clarity \
3132
freezegun \
@@ -66,8 +67,7 @@ test-all:
6667
# Run coverage report from test suite
6768
cov:
6869
-{{BIN}}/coverage run -m pytest -vv -s
69-
-{{BIN}}/coverage report --fail-under=80 src/when/timezones.py src/when/utils.py
70-
{{BIN}}/coverage report
70+
-{{BIN}}/coverage report --fail-under=95 --omit "__main__.py"
7171
{{BIN}}/coverage html
7272
echo HTML coverage report: {{DEV}}/coverage/index.html
7373
# open {{DEV}}/coverage/index.html
@@ -132,3 +132,8 @@ strftime:
132132
f"Format Specifiers:\n{pt.get_string()}\n\n"
133133
"Notes:\n* - Locale-dependent\n+ - C99 extension\n! - when extension"
134134
)
135+
136+
# Preview README.rst
137+
docs:
138+
rst2html5 --output README.html README.rst
139+
open README.html

0 commit comments

Comments
 (0)