Skip to content

Commit 42fff5d

Browse files
committed
chore: add codespell pre-commit
1 parent 5ff2582 commit 42fff5d

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

.pre-commit-config.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,10 @@ repos:
2323
rev: v1.11.2
2424
hooks:
2525
- id: mypy
26+
- repo: https://github.com/codespell-project/codespell
27+
rev: v2.2.4
28+
hooks:
29+
- id: codespell
30+
additional_dependencies:
31+
- tomli
32+
args: [--write-changes]

doc/contributing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Code style
2525
----------
2626

2727
We use `ruff <https://docs.astral.sh/ruff/>`_ along with other tools to format our code.
28-
Please run ``tox -e style`` on your patches before submiting them.
28+
Please run ``tox -e style`` on your patches before submitting them.
2929
In order to perform a style check and correction at each commit you can use our
3030
`pre-commit <https://pre-commit.com/>`_ configuration with ``pre-commit install``.
3131

doc/tutorial.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ Pre-defined Error objects
264264
... 'status': '400'
265265
... }
266266
267-
The exhaustive list is availaible in the :class:`reference <scim2_models.Error>`.
267+
The exhaustive list is available in the :class:`reference <scim2_models.Error>`.
268268

269269

270270
Custom models

scim2_models/attributes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def validate_attribute_urn(
4949
) -> str:
5050
"""Validate that an attribute urn is valid or not.
5151
52-
:parm attribute_name: The attribute urn to check.
52+
:param attribute_name: The attribute urn to check.
5353
:default_resource: The default resource if `attribute_name` is not an absolute urn.
5454
:resource_types: The available resources in which to look for the attribute.
5555
:return: The normalized attribute URN.

0 commit comments

Comments
 (0)