Slyp

Latest version: v0.8.1

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

Scan your dependencies

Page 2 of 4

0.5.0

-----

- Replace the W101 lint with autofixer behavior, which will insert the
necessary parentheses
- Improve the way that files are handled to read only once from disk per file
- ``slyp`` now processes files in parallel and produces its output at the end of
its run (with some simple sorting)

0.4.1

-----

- Fix passing file caching to correctly record successes after a failure
- The cache implementation has been improved to cache by file contents rather
than path, allowing duplicate files to share a cache entry

0.4.0

-----

- Various performance improvements, especially for fixing
- ``slyp`` will now cache results for files which pass all checks in
``.slyp_cache``, thus avoiding rechecking files which pass and have
not changed

- this behavior can be disabled with ``--no-cache``
- the cache is maintained independently for each possible set of
``--enable/--disable`` options passed to ``slyp``
- projects which fully pass ``slyp`` checking should experience the greatest
improvement -- as great as 50x faster on sizable production codebases with
a populated cache

0.3.0

-----

- Fix the handling of parenthesized lambdas in the fixer. The innermost
parentheses arounda lambda are now preserved.
- Minor speed enhancements.
- Fix the handling of autofixing in certain expressions when there is no
whitespace between a hard keyword and a parenthesis, inserting spaces when
necessary.
- Fix unnecessarily parenthesized ``with`` and ``from ... import ...`` statements.
- Preserve parentheses immediately under unary operations, as they may aid
readability.
- Remove W120. It is automatically fixed by the latest ``black`` versions.
- In restricted cases, the fixer will now automatically join implicitly
concatenated strings when there is no newline. This autofix covers some cases
of E100.

0.2.2

-----

- Preserve the innermost parentheses when used inside of splat-argument
expansion. e.g., ``foo(*("a b".split()))`` is NOT fixed to
``foo(*"a b".split())``. This is semantically equivalent to the version with
the parentheses removed, but not as obvious to readers.

0.2.1

-----

- Fix unnecessary paren fixer aggressively fixing Comparison nodes. Add this to
the set of nodes which retain their innermost parens.

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.