Skip to content

Commit

Permalink
Merge branch 'master' into issue-wemake-services#1172
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Mar 6, 2020
2 parents f5fb255 + e37f2ad commit 633e2f6
Show file tree
Hide file tree
Showing 399 changed files with 452 additions and 1,206 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# These are supported funding model platforms

open_collective: wemake-python-styleguide
patreon: sobolevn
1 change: 1 addition & 0 deletions .importlinter
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ forbidden_modules =
# Important direct and indirect dependencies:
flake8
pygments
pyflakes
isort
bandit
eradicate
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Semantic versioning in our case means:
- Adds baseline information for all complexity violation messages: `x > baseline`
- Changes how cognitive complexity is calculated
- Adds support for positional arguments in different checks
- Removes flake8-coding, all encoding strings, visitor and tests
for `EmptyLineAfterCodingViolation`

### Bugfixes

Expand All @@ -51,6 +53,7 @@ Semantic versioning in our case means:
- Fixes that annotation complexity was not reported for `async` functions
- Fixes that annotation complexity was not reported for lists
- Fixes that annotation complexity was not reported for `*` and `/` args
- Fixes that annotation complexity fails on string expressions
- Fixes bug when `TooManyPublicAttributesViolation`
was counting duplicate fields
- Fixes negated conditions `WPS504` was not reported for `if` expressions
Expand All @@ -71,6 +74,9 @@ Semantic versioning in our case means:
and other builtin functions without keyword arguments
- Fixes `WPS221` reporting differently on different `python` versions
- Fixes `WPS221` reporting nested variable annotations
- Fixes `WPS509` not reporting nested ternary in grandchildren of `if`
- Fixes `WPS509` not reporting nested ternary in ternary
- Fixes `WPS426` not reporting nested `lambda` in comprehensions

### Misc

Expand All @@ -83,6 +89,7 @@ Semantic versioning in our case means:
- Adds `python3.8` to the CI
- Update `astboom` version to 0.4.2


## 0.13.4

This is the last `0.13.x` supporting release,
Expand Down
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Philosophy
1. Done is better than perfect
2. However, we pursuit perfect software
3. False negatives over false positives
4. If you can not sustain your promise - do not promise
4. If you cannot sustain your promise - do not promise
5. Code must be written for people to read,
and only incidentally for machines to execute
6. Value consistency over syntax-ish readability
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ Real world examples of plugins unsuitable for this checker:
Is this rule out off scope?
~~~~~~~~~~~~~~~~~~~~~~~~~~~

There are awesome tools that can not be added
There are awesome tools that cannot be added
because they are just simply out of scope.
This means that they cover very specific case or technology
and not just good-old ``python``.

Real world examples of plugins that are out of scope:

- `flake8-pytest <https://github.com/vikingco/flake8-pytest>`_
- `flake8-pytest-style <https://github.com/m-burst/flake8-pytest-style>`_
- `flake8-django <https://github.com/rocioar/flake8-django>`_
- `flake8-scrapy <https://github.com/stummjr/flake8-scrapy>`_

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/usage/integrations/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Plugins
There are a lot of specific plugins that are not included,
because they are, well, specific:

- `flake8-pytest <https://github.com/vikingco/flake8-pytest>`_
- `flake8-pytest-style <https://github.com/m-burst/flake8-pytest-style>`_
- `flake8-django <https://github.com/rocioar/flake8-django>`_
- `flake8-scrapy <https://github.com/stummjr/flake8-scrapy>`_
- `pandas-vet <https://github.com/deppen8/pandas-vet>`_
Expand Down
1 change: 0 additions & 1 deletion docs/pages/usage/violations/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ Plugin Codes
----------------------------- ------
flake8-builtins `A001 - A002 <https://github.com/gforcada/flake8-builtins/blob/master/flake8_builtins.py>`_
flake8-bugbear `B001 - B008 <https://github.com/PyCQA/flake8-bugbear#list-of-warnings>`_
flake8-coding `C101 - C103 <https://github.com/tk0miya/flake8-coding#rules>`_
flake8-comprehensions `C400 - C411 <https://github.com/adamchainz/flake8-comprehensions>`_
flake8-commas `C812 - C819 <https://pypi.org/project/flake8-commas/>`_
mccabe `C901 <http://flake8.pycqa.org/en/latest/user/error-codes.html>`_
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sphinxcontrib-mermaid==0.3.1
recommonmark==0.6.0
m2r==0.2.1
added-value==0.14.2
tomlkit==0.5.8
tomlkit==0.5.11
docutils==0.14

# Dependencies of our linter that should be documented,
Expand Down
Loading

0 comments on commit 633e2f6

Please sign in to comment.