Len8

Latest version: v0.7.3.post0

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

Scan your dependencies

Page 2 of 3

0.5.0

This release reimplements the CLI using click, and provides more control to the user.

Additions

- You can now set custom lengths for lines of code by passing `max_code_length` and `max_docs_length` to the checker.
- There is now a built-in default for black's default line length limits.
- You can now use `len8 --version` to get len8's version.

Breaking changes

- `Checker.extend` does not work the same as it used to, and is now an integer designed to provide an additive option to the CLI. Consider using `Checker.max_code_length` instead.
- The `-l` flag now sets the max code length to 88 and not 99 -- use `-ll` to set it to 99.
- `len8 -h` will no longer return help due to difference in how click handles it -- use `len8 --help` instead.

0.4.1

This release fixed various issues with v0.4.0.

Fixes

- Fixed a incompatibility error which prevented len8 from running on Python 3.8 and below (13).
- Fixed some issues surrounding edge-cases pathlib causes.

Devops

- Increased test coverage to 100% (9).

0.4.0

This release adds `pathlib` support, and a small breaking change.

WARNING

This release was yanked from PyPI due to uncaught errors. It is recommended you do not use this version.

Breaking

- Arguments passed when instantiating a `Checker` object now **need** to be kwargs. This was previously optional.

Additions

- Pathlib support (12)

0.3.1

This release adds the ability to set the values of the Checker properties after instantiation.

Features
- Adds a setter for each of the values passed to the Checker's constructor allowing them to be altered after instantiation.

Documentation
- Adds an example of using the Checker in a Python script to the README.

Bugfixes
- Fixes a bug where the default excludes would be overwritten if custom ones were set.

0.3.0

This release adds typing support, and dynamic paths.

Breaking Changes
- Minimum Python version increased from 3.2 to 3.6.
- Remove `-f` flag completely.

Features
- Dynamically accept files or directories as the path argument.
- Add full typing support.

Bugfixes
- Fix bug where files were being recursively excluded.
- Fix all bugs related to `-f`.

0.2.1

This release addresses a bug with the `-f` flag and closes 2 .

Page 2 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.