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

Fix typos #3196

Merged
merged 1 commit into from
Dec 22, 2024
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
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Semantic versioning in our case means:
- Minor releases do bring new features and configuration options.
New violations can be added. Code that passes on `x.0.y`
might not pass on `x.1.y` release because of the new checks.
- Major releases inidicate significant milestones or serious breaking changes.
- Major releases indicate significant milestones or serious breaking changes.
There are no major releases right now: we are still at `0.x.y` version.
But, in the future we might change the configuration names/logic,
change the client facing API, change code conventions significantly, etc.
Expand Down Expand Up @@ -117,7 +117,7 @@ Semantic versioning in our case means:
- Fixes `WPS210` to not count nested local variables in nested scopes #3108
- Fixes `IterableUnpackingViolation` with generic types and `TypeVarTuple`
- Fixes `WPS469` detecting incorrect names of raised exceptions, #3109
- Fixes unnormalized pathes in formatter output
- Fixes unnormalized paths in formatter output
- Fixes `WPS434` to allow reassignment in a form of `x = [y, *x]`
- Fixes `WPS221` to ignore PEP695's `TypeAlias` from line complexity checks
- Fixes `WPS474` to only count import collisions in the same context, #2962
Expand Down Expand Up @@ -194,7 +194,7 @@ In the future this project will be migrated to be used together with `ruff`.

- Fixes `ForbiddenInlineIgnoreViolation` config parsing. #2590
- Fixes `WrongEmptyLinesCountViolation` for func definitions with ellipsis. #2847
- Fixes `WrongEmptyLinesCountViolation` for multiline implicit string concatination. #2787
- Fixes `WrongEmptyLinesCountViolation` for multiline implicit string concatenation. #2787
- Fixes `ObjectInBaseClassesListViolation`, `UnpythonicGetterSetterViolation`,
`ImplicitInConditionViolation`, `RedundantSubscriptViolation`,
`TooLongCompareViolation` to include better error details
Expand Down Expand Up @@ -440,7 +440,7 @@ In the future this project will be migrated to be used together with `ruff`.

### Misc

- Updates lots of dependenices
- Updates lots of dependencies
- Fixed documentation for TooManyPublicAttributesViolation
- Updated isort config
- Introduce helper script to check
Expand Down Expand Up @@ -1292,7 +1292,7 @@ for tests. We also now covering more cases and testing violation texts.
- Refactoring: removed duplicate logic inside `logics/filenames.py`
- Improves tests: now testing almost all violations inside `noqa.py`
- Improves tests: now testing violations text
- Improves tests: now all common patters live in related `conftest.py`
- Improves tests: now all common patterns live in related `conftest.py`
- Improves docs: now all configuration options are listed in the violations


Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ And then you can use them:

```bash
# codespell:
codespell -w wemake_python_styleguide tests docs scripts styles *.md
codespell -w wemake_python_styleguide tests docs scripts styles *.md --ignore-words ./tests/whitelist.txt

# flake8-spellcheck:
flake8 --whitelist ./tests/whitelist.txt .
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/usage/formatter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ We do not include ``show-violation-links`` in our default configuration.
.. rubric:: Disabling colors and text highlight

Set ``NO_COLOR=1`` environment variable
to completely disable all text highligt and colors
to completely disable all text highlight and colors
in ``wemake`` formatter.

See https://no-color.org for more information about ``NO_COLOR``.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
def raise_from_itself():
try:
print('test')
except Exeception as ex:
except Exception as ex:
raise ex from ex
"""

Expand Down
1 change: 1 addition & 0 deletions tests/whitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ notequals
notequals
num
Num
NotIn
numpy
octdigits
OOP
Expand Down
2 changes: 1 addition & 1 deletion wemake_python_styleguide/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

class WemakeFormatter(BaseFormatter): # noqa: WPS214
"""
We need to format our style :term:`violations <violation>` beatifully.
We need to format our style :term:`violations <violation>` beautifully.

The default formatter does not allow us to do that.
What things do we miss?
Expand Down
2 changes: 1 addition & 1 deletion wemake_python_styleguide/logic/complexity/overuses.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def is_decorator(node: ast.AST) -> bool:
"""
Detects if node is used as a decorator.

We use this predicates because decorators can be used miltiple times.
We use this predicates because decorators can be used multiple times.
Like ``@auth_required(login_url=LOGIN_URL)`` and similar.
"""
parent = walk.get_closest_parent(node, FunctionNodes)
Expand Down
2 changes: 1 addition & 1 deletion wemake_python_styleguide/logic/tree/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def is_annotation(node: ast.AST) -> bool:
"""
Detects if node is an annotation. Or a part of it.

We use this predicate to allow all types of repetetive
We use this predicate to allow all types of repetitive
function and instance annotations.
"""
if not (
Expand Down
2 changes: 1 addition & 1 deletion wemake_python_styleguide/options/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
NESTED_CLASSES_WHITELIST: Final = (
'Meta', # django forms, models, drf, etc
'Params', # factoryboy specific
'Config', # pydantic spesific
'Config', # pydantic specific
)

#: Domain names that are removed from variable names' blacklist.
Expand Down
2 changes: 1 addition & 1 deletion wemake_python_styleguide/violations/oop.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ class User:
def __init__(self):
self.login = lambda: ...

See als:
See also:
https://docs.astral.sh/ruff/rules/lambda-assignment

.. versionadded:: 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion wemake_python_styleguide/visitors/tokenize/primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class WrongStringTokenVisitor(BaseTokenVisitor):
"""Checks incorrect string tokens usages."""

def __init__(self, *args, **kwargs) -> None:
"""Check string defitions."""
"""Check string definitions."""
super().__init__(*args, **kwargs)
self._checker = _StringTokenChecker(
self.file_tokens,
Expand Down
Loading