Skip to content

Commit

Permalink
Improved docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dakrauth committed Feb 6, 2025
1 parent 007fd20 commit f755aea
Show file tree
Hide file tree
Showing 17 changed files with 1,013 additions and 296 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,3 @@ jobs:
pip install tox tox-gh-actions
- name: Test with tox
run: tox
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
9 changes: 7 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ update:
{{PIP}} install -U \
build \
pytest \
docutils \
pytest-sugar \
pytest-clarity \
freezegun \
Expand Down Expand Up @@ -66,8 +67,7 @@ test-all:
# Run coverage report from test suite
cov:
-{{BIN}}/coverage run -m pytest -vv -s
-{{BIN}}/coverage report --fail-under=80 src/when/timezones.py src/when/utils.py
{{BIN}}/coverage report
-{{BIN}}/coverage report --fail-under=95 --omit "__main__.py"
{{BIN}}/coverage html
echo HTML coverage report: {{DEV}}/coverage/index.html
# open {{DEV}}/coverage/index.html
Expand Down Expand Up @@ -132,3 +132,8 @@ strftime:
f"Format Specifiers:\n{pt.get_string()}\n\n"
"Notes:\n* - Locale-dependent\n+ - C99 extension\n! - when extension"
)
# Execute the when command with any arbitrary arguments
when *args:
@{{BIN}}/when "$@"

Loading

0 comments on commit f755aea

Please sign in to comment.