Skip to content

Commit 24b7eb4

Browse files
committed
fix: check spelling using typos
1 parent c7a1aaf commit 24b7eb4

7 files changed

Lines changed: 21 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ repos:
7272
hooks:
7373
- id: shellcheck
7474
require_serial: true
75+
- repo: https://github.com/crate-ci/typos
76+
rev: v1.38.1
77+
hooks:
78+
- id: typos
79+
args: []
80+
require_serial: true
81+
pass_filenames: false
7582
- repo: https://github.com/gitleaks/gitleaks
7683
rev: v8.28.0
7784
hooks:

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
----
33

44
* Not yet released.
5-
* Fixed downloading components based on configration.
5+
* Fixed downloading components based on configuration.
66
* Improved error reporting with Weblate 5.10 and newer.
77
* Improved handling of categorized components.
88
* Dropped support for Python 3.8 and 3.9.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ wlc is a [Weblate](https://weblate.org/) command-line client using [Weblate's RE
1111
[![Translation status](https://hosted.weblate.org/widgets/weblate/-/svg-badge.svg)](https://hosted.weblate.org/engage/weblate/?utm_source=widget)
1212
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/552/badge)](https://bestpractices.coreinfrastructure.org/projects/552)
1313
[![PyPI package](https://img.shields.io/pypi/v/wlc.svg)](https://pypi.org/project/wlc/)
14-
[![Documenation](https://readthedocs.org/projects/weblate/badge/)](https://docs.weblate.org/en/latest/wlc.html)
14+
[![Documentation](https://readthedocs.org/projects/weblate/badge/)](https://docs.weblate.org/en/latest/wlc.html)
1515

1616
## PIP Installation
1717

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,9 @@ wlc = "wlc"
159159
[tool.setuptools.packages.find]
160160
include = ["wlc*"]
161161
namespaces = true
162+
163+
[tool.typos.default]
164+
extend-ignore-re = [
165+
"\"shortrevision\": \"[a-f0-9]+\"",
166+
"code\": \"[a-z]+\""
167+
]

wlc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def create_language(self, code, name, direction="ltr", plural=None):
369369

370370
@staticmethod
371371
def _should_verify_ssl(path):
372-
"""Cheks if it should verify ssl certificates."""
372+
"""Checks if it should verify ssl certificates."""
373373
url = urlparse(path)
374374
is_localhost = url.netloc.startswith(LOCALHOST_NETLOC)
375375
return url.scheme == "https" and (not is_localhost)

wlc/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,10 @@ def run(self) -> None:
591591

592592
@register_command
593593
class Lock(ComponentCommand):
594-
"""Lock component for transaltion."""
594+
"""Lock component for translation."""
595595

596596
name = "lock"
597-
description = "Locks componets from translations"
597+
description = "Locks components from translations"
598598

599599
def run(self) -> None:
600600
"""Executor."""
@@ -604,10 +604,10 @@ def run(self) -> None:
604604

605605
@register_command
606606
class Unlock(ComponentCommand):
607-
"""Unock component for transaltion."""
607+
"""Unock component for translation."""
608608

609609
name = "unlock"
610-
description = "Unlocks componets from translations"
610+
description = "Unlocks components from translations"
611611

612612
def run(self) -> None:
613613
"""Executor."""

wlc/test_wlc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ def test_download(self) -> None:
613613
self.assertIn(b"Plural-Forms:", content)
614614

615615
def test_download_csv(self) -> None:
616-
"""Test dowload of file converted to CSV."""
616+
"""Test download of file converted to CSV."""
617617
obj = self.get()
618618
content = obj.download("csv")
619619
self.assertIn(b'"location"', content)

0 commit comments

Comments
 (0)