Skip to content

Commit

Permalink
Version 0.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Oct 4, 2018
1 parent b5e8917 commit 8767db3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ We follow Semantic Versions since the `0.1.0` release.
We used to have incremental versioning before `0.1.0`.


## WIP
## 0.2.0 aka Revenge of the Async

This release was made possible by awesome people who contributed
to the project during `#hactoberfest`. List of awesome people:

- [@novikovfred](https://github.com/novikovfred)
- [@AlwxSin](https://github.com/AlwxSin)
- [@TyVik](https://github.com/TyVik)
- [@AlexArcPy](https://github.com/AlexArcPy)
- [@tommbee](https://github.com/tommbee)

### Features

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

### Misc

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "wemake-python-styleguide"
version = "0.1.0"
version = "0.2.0"
description = "The most opinionated linter ever, used by wemake.services"

license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion wemake_python_styleguide/violations/best_practices.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class NestedFunctionViolation(ASTViolation):
Pass parameters as normal arguments, do not use closures.
Until you need them for decorators or factories.
We also disallow to nest ``lambda`` functions.
We also disallow to nest ``lambda`` and ``async`` functions.
See
:py:data:`~wemake_python_styleguide.constants.NESTED_FUNCTIONS_WHITELIST`
Expand Down
4 changes: 0 additions & 4 deletions wemake_python_styleguide/visitors/ast/complexity/nested.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ def visit_any_function(self, node: AnyFunctionDef) -> None:
Used to find nested functions.
Uses ``NESTED_FUNCTIONS_WHITELIST`` to respect some nested functions.
Respected usecases for nested functions:
1. decorator
2. factory function
Raises:
NestedFunctionViolation
Expand Down
4 changes: 2 additions & 2 deletions wemake_python_styleguide/visitors/ast/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@


class WrongStringVisitor(BaseNodeVisitor):
"""Restricts to use `f` strings."""
"""Restricts to use ``f`` strings."""

def visit_JoinedStr(self, node) -> None: # type is not defined in ast yet
"""
Restricts to use `f` strings.
Restricts to use ``f`` strings.
Raises:
FormattedStringViolation
Expand Down

0 comments on commit 8767db3

Please sign in to comment.