Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add codespell to pre-commit hooks #718

Merged
merged 1 commit into from
Apr 17, 2023
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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ repos:
hooks:
- id: pyupgrade
args: ["--py37-plus"]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell

# custom local hooks
- repo: local
Expand Down
2 changes: 1 addition & 1 deletion docs/scopes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Serializing Scopes
~~~~~~~~~~~~~~~~~~

Whenever scopes are being sent to Globus services, they need to be encoded as
strings. All mutabl scope objects support this by means of their defined
strings. All mutable scope objects support this by means of their defined
``serialize`` method. Note that ``__str__`` for a ``MutableScope`` is just an
alias for ``serialize``. For example, the following is valid usage to demonstrate
``str()``, ``repr()``, and ``serialize()``:
Expand Down
2 changes: 1 addition & 1 deletion docs/testing/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ response is ``"default"``.
# or just one response from it by name
rset.activate("default")

Note that activating a whole repsonse set may or may not make sense. For
Note that activating a whole response set may or may not make sense. For
example, the response set for ``AuthClient.get_identities`` provides various
responses for the same API call.

Expand Down
2 changes: 1 addition & 1 deletion src/globus_sdk/exc/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class GlobusConnectionTimeoutError(GlobusTimeoutError):


class GlobusConnectionError(NetworkError):
"""A connection error occured while making a REST request."""
"""A connection error occurred while making a REST request."""


def convert_request_exception(exc: requests.RequestException) -> GlobusError:
Expand Down
2 changes: 1 addition & 1 deletion src/globus_sdk/services/gcs/data/storage_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ class IrodsStoragePolicies(StorageGatewayPolicies):
:param DATA_TYPE: Versioned document type. Defaults to the appropriate type for
this class.
:type DATA_TYPE: str, optional
:param irods_environment_file: Path to iRODS environent file on the endpoint
:param irods_environment_file: Path to iRODS environment file on the endpoint
:type irods_environment_file: str
:param irods_authentication_file: Path to iRODS authentication file on the endpoint
:type irods_authentication_file: str
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/services/transfer/test_task_wait.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_task_wait_bad_args_min_wait(client, mocksleep, add_kwargs):


def test_task_wait_success_case(client, mocksleep):
# first the task will show as active, then as succeded
# first the task will show as active, then as succeeded
register_api_route_fixture_file(
"transfer", f"/task/{TASK1_ID}", "get_task1_active.json"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/errors/test_auth_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def nested_auth_response(make_json_response):
("default_json_response", "400", "Json Error", "json error message"),
# defaults for non-json data
("default_text_response", "401", "Error", "error message"),
# malformed data is at least rendered successully into an error
# malformed data is at least rendered successfully into an error
("malformed_response", "403", "Error", "{"),
),
)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/errors/test_transfer_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def transfer_response(make_json_response):
("default_json_response", "400", "Json Error", "json error message", None),
# defaults for non-json data
("default_text_response", "401", "Error", "error message", None),
# malformed data is at least rendered successully into an error
# malformed data is at least rendered successfully into an error
("malformed_response", "403", "Error", "{", None),
),
)
Expand Down