Releases: wemake-services/wemake-python-styleguide
Releases · wemake-services/wemake-python-styleguide
Version 0.0.4
Features
- We now check
classes to match our styleguide - Classes have their own error group
Z3 - Using
@staticmethodis now forbidden - Declaring
objectas a base class is now required - Now we check that
__del__magic method is not used - Variable names
asyncandawaitare forbidden - We now forbid to use
__future__imports - We now have a whitelist for
__future__imports - Imports are now have its own subgroup
Z10 - General rules now start from
Z11
Version 0.0.3
Features
- We now use
Zas the default code for our errors - We have shuffled errors around, changing code and formats
- Now all name errors share the same class
- Adds
PrivateNameViolation - Now imports inside any structures rather than
Moduleraises an error - Adds
fileandklassas restricted names - Now
__import__is just a bad function name, not a special case - Now version is defined in
poetry.tomlonly - We now have configuration! And it covers all design errors
Bugfixes
- Fixes issue with missing
parents :batman: - Fixes issue with
_$NAMEpatterns being ignored
Version 0.0.2
Features
- Adds some new blacklisted variables' names
- Adds docs for each existing error code
- Adds whitelisted names for nested functions:
decoratorandfactory - Adds new blacklisted module's metadata variables
- Removed
BAD_IMPORT_FUNCTIONSvariable, now just checking__import__
Testing
- Add gen-tests that cover most of the issues
- Removed almost all integration tests, saving just a few of them
Misc
- Adds
poetryas the main project tool - Adds
shpinxas a documentation tool