Shed

Latest version: v2024.3.1

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

Scan your dependencies

Page 6 of 11

0.5.2

- Fix latent bugs around min-version handling with Black and LibCST
- Fix a rare crash with `--refactor` where com2ann could fail to parse input

0.5.1

- Continue in a single process if `os.fork()` fails with `BlockingIOError`

0.5.0

- Stop removing "unused" imports in code blocks; often they're used in later blocks
- Use custom LibCST refactoring passes instead of `pybetter`; because these are faster
they're also enabled outside of `--refactor` mode
- Replace `raise NotImplemented` with `raise NotImplementedError`
- Replace `assert False [, msg]` with `raise AssertionError [(msg)]`, for all falsey
literals, to avoid surprising behaviour with `PYTHONOPTIMIZE`
(use `if __debug__` if you need such behaviour)
- Remove `assert True`, or other truthy literals, which can never fail

0.4.2

- Warn on invalid syntax, and try to format docstrings anyway
([23](https://github.com/Zac-HD/shed/issues/23))

0.4.1

- Skip files or code-blocks with invalid syntax
([23](https://github.com/Zac-HD/shed/issues/23))

0.4.0

- Add new `--py-37-plus` (etc) arguments to select the minimum Python version
- disable `autoflake`'s remove-unused-variables; allow linters to warn about probable bugs

Page 6 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.