Skip to content

Commit 8767db3

Browse files
committed
Version 0.2.0 release
1 parent b5e8917 commit 8767db3

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@ We follow Semantic Versions since the `0.1.0` release.
44
We used to have incremental versioning before `0.1.0`.
55

66

7-
## WIP
7+
## 0.2.0 aka Revenge of the Async
8+
9+
This release was made possible by awesome people who contributed
10+
to the project during `#hactoberfest`. List of awesome people:
11+
12+
- [@novikovfred](https://github.com/novikovfred)
13+
- [@AlwxSin](https://github.com/AlwxSin)
14+
- [@TyVik](https://github.com/TyVik)
15+
- [@AlexArcPy](https://github.com/AlexArcPy)
16+
- [@tommbee](https://github.com/tommbee)
817

918
### Features
1019

@@ -17,6 +26,8 @@ We used to have incremental versioning before `0.1.0`.
1726
- We now check `async` functions names and arguments
1827
- We now count `async` functions complexity
1928
- We now ignore `async` functions in jones complexity check
29+
- We now check for nested `async` functions
30+
- We now check for `async` functions with `@staticmethod` decorator
2031

2132
### Misc
2233

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "wemake-python-styleguide"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
description = "The most opinionated linter ever, used by wemake.services"
55

66
license = "MIT"

wemake_python_styleguide/violations/best_practices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ class NestedFunctionViolation(ASTViolation):
392392
Pass parameters as normal arguments, do not use closures.
393393
Until you need them for decorators or factories.
394394
395-
We also disallow to nest ``lambda`` functions.
395+
We also disallow to nest ``lambda`` and ``async`` functions.
396396
397397
See
398398
:py:data:`~wemake_python_styleguide.constants.NESTED_FUNCTIONS_WHITELIST`

wemake_python_styleguide/visitors/ast/complexity/nested.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ def visit_any_function(self, node: AnyFunctionDef) -> None:
7474
Used to find nested functions.
7575
7676
Uses ``NESTED_FUNCTIONS_WHITELIST`` to respect some nested functions.
77-
Respected usecases for nested functions:
78-
79-
1. decorator
80-
2. factory function
8177
8278
Raises:
8379
NestedFunctionViolation

wemake_python_styleguide/visitors/ast/strings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88

99
class WrongStringVisitor(BaseNodeVisitor):
10-
"""Restricts to use `f` strings."""
10+
"""Restricts to use ``f`` strings."""
1111

1212
def visit_JoinedStr(self, node) -> None: # type is not defined in ast yet
1313
"""
14-
Restricts to use `f` strings.
14+
Restricts to use ``f`` strings.
1515
1616
Raises:
1717
FormattedStringViolation

0 commit comments

Comments
 (0)