Releases: parafoxia/len8
Releases · parafoxia/len8
v0.7.3.post0
Also include the package data in setup.py
.
v0.7.3
v0.7.2
v0.7.1
v0.7.0
v0.6.0
Toml config support
Additions
- Support for toml config files.
__slots__
toChecker
.Checker.from_config
method.--config
cli flag for passing a custom config file (defaults topyproject.toml
)ConfigurationError
for failed configurations.
Changes
paths
is no longer a required command line arg, if a config file is used, andinclude
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
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
andmax_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 usingChecker.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 -- uselen8 --help
instead.
v0.4.1
v0.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)
v0.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.