Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Fix typos #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def foo():
### PIE784: celery-explicit-crontab-args

The `crontab` class provided by Celery has some default args that are
suprising to new users. Specifically, `crontab(hour="0,12")` won't run a task
surprising to new users. Specifically, `crontab(hour="0,12")` won't run a task
at midnight and noon, it will run the task at every minute during those two
hours. This lint makes that call an error, forcing you to write
`crontab(hour="0, 12", minute="*")`.
Expand Down Expand Up @@ -138,7 +138,7 @@ if len(foo) == 0: ...

### PIE788: no-bool-condition

If statements/expressions evalute the truthiness of the their test argument,
If statements/expressions evaluate the truthiness of the their test argument,
so calling `bool()` is unnecessary.

Comparing to `True`/`False` is allowed.
Expand Down Expand Up @@ -173,7 +173,7 @@ if isinstance(foo, (int, str)): ...

### PIE790: no-unnecessary-pass

`pass` is unnecessary when definining a `class` or function with an empty
`pass` is unnecessary when defining a `class` or function with an empty
body.

```python
Expand Down Expand Up @@ -204,7 +204,7 @@ def foo() -> None:

### PIE791: no-pointless-statements

Comparisions without an assignment or assertion are probably a typo.
Comparisons without an assignment or assertion are probably a typo.

```python
# error
Expand Down
2 changes: 1 addition & 1 deletion flake8_pie/pie792_no_inherit_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ def pie792_no_inherit_object(node: ast.ClassDef, errors: list[Error]) -> None:

PIE792 = partial(
Error,
message="PIE792 no-inherit-object: Inheriting from object is unnecssary in python3.",
message="PIE792 no-inherit-object: Inheriting from object is unnecessary in python3.",
)
2 changes: 1 addition & 1 deletion flake8_pie/pie806_no_assert_except.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ def PIE806(lineno: int, col_offset: int) -> Error:
return Error(
lineno=lineno,
col_offset=col_offset,
message="PIE806 no-assert-except: Instead of asserting and catching, use an if statment.",
message="PIE806 no-assert-except: Instead of asserting and catching, use an if statement.",
)