Skip to content

Commit 3993dc9

Browse files
authored
Merge pull request #1121 from sirosen/rstbebe
Add rstbebe to hooks + apply fixes
2 parents 5bd9157 + b8b7ef1 commit 3993dc9

File tree

9 files changed

+31
-27
lines changed

9 files changed

+31
-27
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ repos:
4141
hooks:
4242
- id: isort
4343
name: "Sort python imports"
44+
- repo: https://github.com/sirosen/rstbebe
45+
rev: 0.2.0
46+
hooks:
47+
- id: bad-backticks
4448
- repo: https://github.com/sirosen/slyp
4549
rev: 0.7.1
4650
hooks:

changelog.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -643,14 +643,14 @@ Added
643643
``scope`` parameter as a string or iterable of strings. (:pr:`965`)
644644

645645
- Moved scope parsing out of experimental. The ``Scope`` construct is now importable from
646-
the top level `globus_sdk` module. (:pr:`966`)
646+
the top level ``globus_sdk`` module. (:pr:`966`)
647647

648648
- Support updating subscriptions assigned to flows in the Flows service. (:pr:`974`)
649649

650650
Development
651651
~~~~~~~~~~~
652652

653-
- Fix concurrency problems in the test suite caused by isort's `.isorted` temporary files. (:pr:`973`)
653+
- Fix concurrency problems in the test suite caused by isort's ``.isorted`` temporary files. (:pr:`973`)
654654

655655
.. _changelog-3.39.0:
656656

@@ -726,8 +726,8 @@ v3.35.0 (2024-01-29)
726726
Added
727727
~~~~~
728728

729-
- Added a `session_required_mfa` parameter to the `AuthorizationParameterInfo` error
730-
info object and `oauth2_get_authorize_url` method (:pr:`939`)
729+
- Added a ``session_required_mfa`` parameter to the ``AuthorizationParameterInfo`` error
730+
info object and ``oauth2_get_authorize_url`` method (:pr:`939`)
731731

732732
Changed
733733
~~~~~~~
@@ -745,7 +745,7 @@ Deprecated
745745
Fixed
746746
~~~~~
747747

748-
- Included documentation in `AuthorizationParameterInfo` for `session_required_policies`
748+
- Included documentation in ``AuthorizationParameterInfo`` for ``session_required_policies``
749749
(:pr:`939`)
750750

751751
.. _changelog-3.34.0:
@@ -1415,7 +1415,7 @@ Fixed
14151415
with a usage error instead of being translated into the default set of
14161416
``requested_scopes``
14171417

1418-
* Fix the type annotation for `max_sleep` on client transports to allow `float`
1418+
* Fix the type annotation for ``max_sleep`` on client transports to allow ``float``
14191419
values (:pr:`697`)
14201420

14211421
.. _changelog-3.17.0:
@@ -2063,10 +2063,10 @@ Added
20632063

20642064
* Add ``iter_items`` as a method on ``TransferData`` and ``DeleteData`` (:pr:`488`)
20652065

2066-
* Add the `resource_server` property to client classes and objects. For example,
2067-
`TransferClient.resource_server` and `GroupsClient().resource_server` are now usable
2068-
to get the resource server string for the relevant services. `resource_server` is
2069-
documented as part of `globus_sdk.BaseClient` and may be `None`. (:pr:`489`)
2066+
* Add the ``resource_server`` property to client classes and objects. For example,
2067+
``TransferClient.resource_server`` and ``GroupsClient().resource_server`` are now usable
2068+
to get the resource server string for the relevant services. ``resource_server`` is
2069+
documented as part of ``globus_sdk.BaseClient`` and may be ``None``. (:pr:`489`)
20702070

20712071
* The implementation of several properties of ``GlobusHTTPResponse`` has
20722072
changed (:pr:`497`)
@@ -2106,10 +2106,10 @@ Added
21062106
Changed
21072107
~~~~~~~
21082108

2109-
* Adjust package metadata for `cryptography` dependency, specifying
2110-
`cryptography>=3.3.1` and no upper bound. This is meant to help mitigate
2111-
issues in which an older `cryptography` version is installed gets used in
2112-
spite of it being incompatible with `pyjwt[crypto]>=2.0` (:pr:`486`)
2109+
* Adjust package metadata for ``cryptography`` dependency, specifying
2110+
``cryptography>=3.3.1`` and no upper bound. This is meant to help mitigate
2111+
issues in which an older ``cryptography`` version is installed gets used in
2112+
spite of it being incompatible with ``pyjwt[crypto]>=2.0`` (:pr:`486`)
21132113

21142114
.. _changelog-3.0.3:
21152115

docs/authorization/globus_app/apps.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ you can customize and how, see :ref:`globus_app_config`.
9696
:member-order: bysource
9797

9898
..
99-
In the above class, "scope_requirements" is excluded because it's an `@property`.
99+
In the above class, "scope_requirements" is excluded because it's a ``@property``.
100100
Sphinx wants to document it as a method but that's not how it's invoked. Instead
101-
documentation is included in the class docstring as an `ivar`.
101+
documentation is included in the class docstring as an ``ivar``.
102102
103103
Implementations
104104
^^^^^^^^^^^^^^^

docs/authorization/globus_app/config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Data Model
1919
..
2020
In the above class, "token_validation_error_handler" is a callable so sphinx wants
2121
to document it as a method. Instead, we explicitly exclude it and document it in the
22-
class docstring as an `ivar`.
22+
class docstring as an ``ivar``.
2323
2424
Providers
2525
^^^^^^^^^

docs/authorization/token_caching/storage_adapters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ The :class:`SimpleJSONFileAdapter` is good for the "simplest possible"
9595
persistent storage, using a JSON file to store token data.
9696

9797
:class:`MemoryAdapter` is even simpler still, and is great for writing and
98-
testing code which uses the `StorageAdapter` interface backed by an in-memory
98+
testing code which uses the ``StorageAdapter`` interface backed by an in-memory
9999
structure.
100100

101101
The :class:`SQLiteAdapter` is more complex, for applications like the

docs/experimental/examples/oauth2/globus_app.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ client's resource server and configuring the app as the service client's auth pr
9595

9696
.. Note::
9797

98-
``ClientApp.__init__(...)`` requires the `client_secret` keyword argument.
98+
``ClientApp.__init__(...)`` requires the ``client_secret`` keyword argument.
9999
Native clients, which lack secrets, are not allowed.
100100

101101
.. code-block:: python

docs/services/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ Once instantiated, a Client gives you high-level interface to make API calls,
1313
without needing to know Globus API endpoints or their various parameters.
1414

1515
For example, you could use the :class:`TransferClient` to list your task history
16-
very simply::
16+
very simply:
17+
18+
.. code-block:: python
1719
1820
from globus_sdk import TransferClient, AccessTokenAuthorizer
1921
2022
# you must have a valid transfer token for this to work
21-
tc = TransferClient(
22-
authorizer=AccessTokenAuthorizer("TRANSFER_TOKEN_STRING")
23-
)
23+
tc = TransferClient(authorizer=AccessTokenAuthorizer("TRANSFER_TOKEN_STRING"))
2424
2525
print("My Last 25 Tasks:")
2626
# `filter` to get Delete Tasks (default is just Transfer Tasks)

docs/upgrading.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ it can be added to a request has changed as follows:
256256
Responses are always GlobusHTTPResponse
257257
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
258258

259-
In version 2, `GlobusHTTPResponse` inherited from a base class,
260-
`GlobusResponse`. In version 3, the distinction has been eliminated and
261-
responses are only `GlobusHTTPResponse`.
259+
In version 2, ``GlobusHTTPResponse`` inherited from a base class,
260+
``GlobusResponse``. In version 3, the distinction has been eliminated and
261+
responses are only ``GlobusHTTPResponse``.
262262

263263
This may appear in contexts where you type annotate or use ``isinstance`` checks
264264
to check the type of an object.

tests/non-pytest/mypy-ignore-tests/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ This strategy is suggested as a lightweight test in the
88
`Python Typing Quality Documentation
99
<https://typing.readthedocs.io/en/latest/source/quality.html#testing-using-mypy-warn-unused-ignores>`_.
1010

11-
These tests are run by `tox -e mypy` from the repo root.
11+
These tests are run by ``tox -e mypy`` from the repo root.

0 commit comments

Comments
 (0)