Releases: wemake-services/wemake-python-styleguide
Releases · wemake-services/wemake-python-styleguide
Version 0.0.14
Features
- Adds
WrongModuleNamePatternViolation
andWrongModuleNameUnderscoresViolation - Adds
TooManyImportsViolationerror and--max-importsoption - Adds
--i-control-codeoption to ignoreInitModuleHasLogicViolation - Adds check for underscored numbers
- Forbids
u''strings - Adds
noqaandtypecomments checks
Misc
- Changes how many errors are generated for limits violations
- Refactors how visitors are injected into the checker, now using presets
- Creates new visitor type:
BaseTokenVisitorfor working withtokenize - Improves typing support
- Adds
flake8-banditplugin - Adds
flake8-eradicateplugin - Adds
flake8-printplugin for development - Removes
delegateconcept from the codebase
Version 0.0.13 aka The Jones Complexity
This release is the last feature release before 0.1.0.
However, there might be some supporting releases.
Features
- Adds
jonescomplexity checker - Adds
--max-line-complexityand--max-jones-scoreoptions
Misc
- Improves docs: adds detailed installation instructions
- Removes
flake8-blind-exceptplugin
Version 0.0.12
This is just a supporting release.
There are no new features introduced.
We have changed the error codes for general checks.
Bugfixes
- Fixes bug with nested imports missing
parent - Fixes bug with incorrect
pycodestyleversion - Removes
BareRaiseViolationas it does not fit the purpose of this package
Misc
- Improves docs: now all errors are sorted by
code - Improves docs: now all errors have reasoning
- Improves docs: some references are now clickable in web version
- Improves docs: now docs include
CHANGELOG.md - Improves docs: now we have templates for
bugandrule-request - Replaced
pytest-isortwithflake8-isort
Version 0.0.11
This is just a supporting release.
There are no new features introduced.
Bugfixes
Misc
- Introduced the concept of regression testing, see
test/fixtures/regression - Removed
compat.py - Fixes some minor typos, problems, markup inside the docs
- Adds some new configuration to
sphinx - Changes
sphinxdocs structure a little bit
Version 0.0.10 aka The Module Reaper
Features
- Adds
WrongModuleNameViolation,WrongModuleMagicNameViolation,
andTooShortModuleNameViolation - Adds
--min-module-name-lengthconfig option - Adds a blacklist of module names
- Adds
InitModuleHasLogicsViolation - Adds
EmptyModuleViolation - Adds a whitelist of magic module names
Bugfixes
- Fixes
Optionclass to have have incorrecttypefield, now using strings - Fixes that
WrongStringVisitorwas not activated
Misc
- Improved typing support
- Now each error has a link to the corresponding constant (if any)
- Improved docs with links to the corresponding configuration flags
Version 0.0.9
Version 0.0.9
This is just a supporting release.
There are no new features introduced.
Bugfixes
- Fixes
Attribute has no 'id'error - Fixes
missing 'typing_extension'error
Misc
- Errors are now tested
- Complexity tests are refactored
Version 0.0.8 aka The Complex Complexity
Features
- Now all dependencies are direct, they will be installed together
with this package - Adds direct dependencies, now there's no need to install any extra packages
- Adds
TooDeepNestingViolationandTooManyElifsViolationchecks - Adds
--max-offset-blocksand--max-elifsoptions - Adds
TooManyModuleMembersViolationandTooManyMethodsViolationchecks - Adds
--max-module-membersand--max-methodsoptions - Restricts to use
fstrings
Bugfixes
- Removes incorrect
generic_visit()calls - Removes some unused
getattr()calls - Refactors how options are registered
Misc
- Improved type support for options parsing
Version 0.0.7
Features
- Added new magic methods to the black list
- We now do not count
_as a variable inTooManyLocalscheck - We now restrict to nest
lambdas - We now allow to configure the minimal variable's name length via
setup.cfg
Misc
- Refactored how complexity checks are defined
- Refactored how errors are defined
- Now each check has strict
Raises:policy which lists all possible errors
that this check can find and raise - Changed how visiters are initialized in tests
- Tests now cover nested classes' explicit bases
- Tests now cover nested classes and functions
noqacomment
Version 0.0.6
Features
- We now check import aliases to be different from the original name
- Default complexity checks' values have changed
Bugfixes
- ReadTheDocs build is fixed by providing extra dependencies
- Changed how local variables are counted
Misc
- Improved typing support
- Added new documentation sections
Version 0.0.5
Features
- We now allow
generator_stopto be a__future__import - We now restrict dotted raw imports like:
import os.path - We now check import aliases as regular variable names
Misc
- We have added a
CONTRIBUTING.mdfile to help new contributors