Skip to content

Releases: parafoxia/len8

v0.7.3.post0

05 Apr 21:36
c806f79
Compare
Choose a tag to compare

Also include the package data in setup.py.

v0.7.3

05 Apr 21:05
2a95132
Compare
Choose a tag to compare

The patch includes the py.typed file in the package manifest.

v0.7.2

18 Feb 20:16
Compare
Choose a tag to compare

v0.7.1

06 Feb 18:51
Compare
Choose a tag to compare

Fixes

  • Corrected a typo
  • Removed an erroneous error message (#21)

v0.7.0

30 Dec 01:34
Compare
Choose a tag to compare

Improved output

This release improves len8's output. len8 now groups all problem lines under headers of the file paths.

v0.6.0

13 Dec 23:05
Compare
Choose a tag to compare

Toml config support

Additions

  • Support for toml config files.
  • __slots__ to Checker.
  • Checker.from_config method.
  • --config cli flag for passing a custom config file (defaults to pyproject.toml)
  • ConfigurationError for failed configurations.

Changes

  • paths is no longer a required command line arg, if a config file is used, and include is specified.

Valid toml keys:

  • include: list of str, the paths to include.
  • exclude: list of str, the paths to exclude.
  • code-length: int, the maximum code length.
  • docs-length: int, the maximum docs length.
  • strict: bool, whether or not len8 should raise an error.

Full Changelog: v0.5.0...v0.6.0

v0.5.0

16 Nov 21:01
Compare
Choose a tag to compare

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.

v0.4.1

10 Nov 01:21
Compare
Choose a tag to compare

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).

v0.4.0

05 Nov 20:09
Compare
Choose a tag to compare

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)

v0.3.1

03 Nov 03:10
0fe6ecf
Compare
Choose a tag to compare

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.