Skip to content

Commit be4d735

Browse files
committed
Fix found problems
1 parent 3d0fd13 commit be4d735

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424

2525
steps:
2626
- uses: actions/checkout@v4
27+
with:
28+
persist-credentials: false
2729

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

7981
steps:
8082
- uses: actions/checkout@v4
83+
with:
84+
persist-credentials: false
8185

8286
- name: Set up Python ${{ matrix.python-version }}
8387
uses: actions/setup-python@v5

.pre-commit-config.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
repos:
2-
- repo: meta
3-
hooks:
4-
- id: check-hooks-apply
5-
- id: check-useless-excludes
62
- repo: https://github.com/pre-commit/pre-commit-hooks
73
rev: v5.0.0
84
hooks:
@@ -48,6 +44,12 @@ repos:
4844
args: [--enable=default-role]
4945
files: ^docs/
5046

47+
# Should be the last:
48+
- repo: meta
49+
hooks:
50+
- id: check-hooks-apply
51+
- id: check-useless-excludes
52+
5153
exclude: ^(tests/fixtures/|tests/test_formatter/__snapshots__/)
5254
ci:
5355
autofix_commit_msg: "[pre-commit.ci] auto fixes from pre-commit.com hooks"

docs/pages/curry.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ See ``Limitations`` in the API Reference.
255255
FAQ
256256
---
257257

258-
Why don't you support `*` and `**` arguments?
259-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
258+
Why don't you support ``*`` and ``**`` arguments?
259+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
260260

261261
When you use ``partial(some, *my_args)`` or ``partial(some, **my_args)``
262262
or both of them at the same time,

docs/pages/future.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ What problems do we solve with these containers? Basically these ones:
1212

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

1717

1818
Future container

docs/pages/result.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ use :func:`future_safe <returns.future.future_safe>` instead.
9999
>>> str(divide(0))
100100
'<Failure: division by zero>'
101101
102-
If you want to `safe` handle only a set of exceptions:
102+
If you want ``@safe`` to handle only a set of exceptions:
103103

104104
.. code:: python
105105

0 commit comments

Comments
 (0)