From 4665b7731de6cb5a58bc46a5a9b10223b8163f4c Mon Sep 17 00:00:00 2001 From: sobolevn Date: Wed, 23 Jan 2019 11:26:46 +0300 Subject: [PATCH] Version 0.7.0 release --- .gitignore | 1 + CHANGELOG.md | 3 ++- docs/pages/api.rst | 2 +- pyproject.toml | 2 +- .../test_ast/test_statements/test_statements_with_no_effect.py | 1 + wemake_python_styleguide/constants.py | 2 ++ 6 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 1bd287a49..188e75b69 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ wheels/ *.egg-info/ .installed.cfg *.egg +pip-wheel-metadata/ # PyInstaller # Usually these files are written by a python script from a template diff --git a/CHANGELOG.md b/CHANGELOG.md index b8331fcc3..608fcb51b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ We follow Semantic Versions since the `0.1.0` release. We used to have incremental versioning before `0.1.0`. -## WIP +## 0.7.0 ### Features @@ -34,6 +34,7 @@ We used to have incremental versioning before `0.1.0`. - Forbids to have useless `continue` nodes inside the loops - Forbids to have useless nodes - Forbids to have useless `raise` statements +- Adds `params` and `parameters` to black-listed names ### Bugfixes diff --git a/docs/pages/api.rst b/docs/pages/api.rst index fef67115f..05aba88b2 100644 --- a/docs/pages/api.rst +++ b/docs/pages/api.rst @@ -61,7 +61,7 @@ to understand how all components are bound together. flake8->>Checker: flake8 runs our checker alongside with other plugins Checker->>Transformation: Checker asks to perform different ast transformations before we actually start doing anything - Checker->>Visitor: Checker runs all visitors that are it is aware of + Checker->>Visitor: Checker runs all visitors that it is aware of Visitor->>Violation: Visitors raise violations when they find bad code Violation-->>flake8: Raised violations are shown to user by flake8 diff --git a/pyproject.toml b/pyproject.toml index da0b7d6d5..600a4c81d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "poetry.masonry.api" [tool.poetry] name = "wemake-python-styleguide" -version = "0.6.3" +version = "0.7.0" description = "The strictest and most opinionated python linter ever" license = "MIT" diff --git a/tests/test_visitors/test_ast/test_statements/test_statements_with_no_effect.py b/tests/test_visitors/test_ast/test_statements/test_statements_with_no_effect.py index 209418306..80cfc8e3f 100644 --- a/tests/test_visitors/test_ast/test_statements/test_statements_with_no_effect.py +++ b/tests/test_visitors/test_ast/test_statements/test_statements_with_no_effect.py @@ -225,6 +225,7 @@ def test_statement_with_no_effect( 'call()', 'object.mro()', 'del some', + 'some_var: int', ]) def test_statement_with_regular_effect( assert_errors, diff --git a/wemake_python_styleguide/constants.py b/wemake_python_styleguide/constants.py index 21480a221..3f9ec2db3 100644 --- a/wemake_python_styleguide/constants.py +++ b/wemake_python_styleguide/constants.py @@ -81,6 +81,8 @@ 'objs', 'some', 'do', + 'params', + 'parameters', # Confuseables: 'no',