diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b06a468d..554f9a50 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -69,6 +69,15 @@ repos: hooks: - id: flake8 + # Lint: Typos + - repo: https://github.com/codespell-project/codespell + # Configuration for codespell is in pyproject.toml + rev: v2.2.6 + hooks: + - id: codespell + additional_dependencies: + - tomli + # pre-commit.ci config reference: https://pre-commit.ci/#configuration ci: autoupdate_schedule: monthly diff --git a/docs/source/server-process.md b/docs/source/server-process.md index 92a3a661..6915a769 100644 --- a/docs/source/server-process.md +++ b/docs/source/server-process.md @@ -162,7 +162,7 @@ One of: Whether to report activity from the proxy to Jupyter Server. If _True_, Jupyter Server will be notified of new activity. This is primarily used by JupyterHub for idle detection and culling. -Useful if you want to have a seperate way of determining activity through a +Useful if you want to have a separate way of determining activity through a proxied application. Defaults to _True_. diff --git a/jupyter_server_proxy/handlers.py b/jupyter_server_proxy/handlers.py index 965603f5..266b0d61 100644 --- a/jupyter_server_proxy/handlers.py +++ b/jupyter_server_proxy/handlers.py @@ -441,7 +441,7 @@ def rewrite_pe(rewritable_response: RewritableResponse): }, ) - # Now we can cleanly apply the partially evaulated function to a copy of + # Now we can cleanly apply the partially evaluated function to a copy of # the rewritten response. rewritten_response = rewritten_response._apply_to_copy(rewrite_pe) diff --git a/pyproject.toml b/pyproject.toml index 12534cfc..70939b19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -223,3 +223,10 @@ concurrency = [ [tool.coverage.html] show_contexts = true + +[tool.codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = '.git*,*.svg,*.lock' +check-hidden = true +ignore-regex = '\bTE\b' +# ignore-words-list = ''