Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand Down Expand Up @@ -78,6 +80,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand Down
17 changes: 16 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ repos:
rev: v1.7.5
hooks:
- id: actionlint
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v0.8.0
hooks:
- id: zizmor
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
Expand All @@ -33,7 +37,18 @@ repos:
- id: ruff
args: ["--exit-non-zero-on-fix", "--fix"]
- id: ruff-format
exclude: ^(tests/fixtures/|tests/test_formatter/__snapshots__/)
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v1.0.0
hooks:
- id: sphinx-lint
args: [--enable=default-role]
files: ^docs/

# Should be the last:
- repo: meta
hooks:
- id: check-useless-excludes

ci:
autofix_commit_msg: "[pre-commit.ci] auto fixes from pre-commit.com hooks"
autofix_prs: true
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/curry.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ See ``Limitations`` in the API Reference.
FAQ
---

Why don't you support `*` and `**` arguments?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Why don't you support ``*`` and ``**`` arguments?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

When you use ``partial(some, *my_args)`` or ``partial(some, **my_args)``
or both of them at the same time,
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/future.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ What problems do we solve with these containers? Basically these ones:

1. You cannot call async function from a sync one
2. Any unexpectedly thrown exception can ruin your whole event loop
3. Ugly composition with lots of `await` statements
3. Ugly composition with lots of ``await`` statements


Future container
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/result.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ use :func:`future_safe <returns.future.future_safe>` instead.
>>> str(divide(0))
'<Failure: division by zero>'

If you want to `safe` handle only a set of exceptions:
If you want ``@safe`` to handle only a set of exceptions:

.. code:: python

Expand Down
Loading