Wps-light

Latest version: v0.16.1

Safety actively analyzes 625610 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 10

0.17.1

Features
- Adds `__init_subclass__` in the beginning of accepted methods order as per WPS338

0.16.2

Misc
- Adds full violation codes to docs and `BaseViolation.full_code` 2409

0.16.1

Bugfixes

- Fixes crash on `'Literal["raise"]'` annotation 2341
- Fixes `WPS471` was not detected on complex assignment targets 2301
- Fixes `flake8-bandit` and `bandit` version conflict 2368

0.16.0

Features

- Supports new `flake8` version `4.x`
- Now `InconsistentYieldViolation` and `InconsistentReturnViolation` are raised
when `yield` or `return` is used with `None`
where plain version should be used 2151
- Dot `'.'` and comma `','` do not count against string literal overuse limit anymore 2209
- Added `RedundantEnumerateViolation` 1825
- Adds `RaiseFromItselfViolation` 2133
- Adds `ConsecutiveSlicesViolation` 2064
- Adds `KwargsUnpackingInClassDefinitionViolation` 1754
- `DirectMagicAttributeAccessViolation` now only flags instances for which
a known alternative exists 2268
- Forbids getting collection element of list by unpacking 1824
- Now `WPS227` forbids returning tuples that are too long 1731

Bugfixes

- Fixes that `InconsistentComprehensionViolation` was ignoring
misaligned `in` expressions 2075
- Fixes some common magic methods not being recognized as such 2281

Misc

- Removes all `Raises:` from docstrings, they were unused
- Added example to `README.md`
- Added `why strict is good`
- Replaced all `python` with `Python` in `README.md`
- Improve Docs: Fixed all typos and grammatical errors in `CHANGELOG.md`
- Updated documentation with the recommended `isort` config. 1934
- Updates `typing_extensions` to `4.x`

0.15.3

Bugfixes

- Fixes crash on `python3.10`
- Fixes `UselessReturningElseViolation` to not report `else` with `break` 1958
- Fixes `ReassigningVariableToItselfViolation` to not report on `x = (x,)` 1807
- Fixes `ReassigningVariableToItselfViolation` to extract variables
from unary operators 1874
- Fixes that `f'{some:,}'` was considered too complex 1921
- Fixes that `range(len(x))` was not allowed even outside `for` loops 1883
- Fixes `UselessReturningElseViolation` to not report `else` with `break` 2187
(even if we have `except` in loop)
- Fixes fixture in `UselessReturningElseViolation` 2191

Misc

- Adds documentation (and tests) for how to run project on Jupyter Notebooks
- Updates `mypy` to `0.902` and fixes type issues

0.15.2

Bugfixes

- Fixes `BitwiseAndBooleanMixupViolation` work with PEP 604 union types 1884
- Fixes `CognitiveModuleComplexityViolation` to not trigger
for a single-item modules
- Fixes that `ConstantConditionViolation` was not reported for a `BoolOp`
- Functions and methods marked as `overload` or `typing.overload`
do not count in complexity rules

Misc

- Updates GitHub Action's base Python image version to `3.8.8`

Features

- Adds a math operations evaluator to improve and allow several violation checks.

Page 1 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.