Darglint2

Latest version: v1.8.2

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

Scan your dependencies

Page 8 of 10

0.3.4

Added

- Previously, *darglint* always exited with status 0, even if errors
were encountered. Now, darglint exists with status 1 if docstring
errors were encountered.
- Add description of errors to both the readme and the driver.
The errors are each described on a single line to make it easy
to search for errors from the command line.

Fixed

- Fix regression in type hints: Deque was only available in Python3.6.

0.3.3

Changed

- Update the line numbers to be closer to the actual source of problems.

0.3.2

Changed

- Change the parser to a recursive descent parser. This allows
greater precision and flexibility. It will also make it possible
to capture and pass along line numbers.

0.3.1

Added

- Line numbers added to `Token`s. The line numbers are added
and incremented in the `lex()` function.

0.3.0

Added

- Message templates for error reports based on Pylint's syntax.
The message template uses a normal Python format string with
named arguments. For example, the default format string
for an error message is '{path}:{obj}:{line}: {msg_id}: {msg}'.

This is passed to the linter by a command-line argument.
For example, to get only the path, line number, and error code,
we could pass something like the following:


darglint -m "{path}:{line} -> {msg_id}" *.py


This value can also be specified in the configuration file
as the value, `message_template`. For example, the above
template could have been specified in the configuration
as


[darglint]
message_template={path}:{line} -> {msg_id}

0.2.0

Added

- Added support for Python3.5. Probably earlier versions of Python
can also be supported, but they need to be tested, first.

- Added *tox* script for running tests against all environments.
To run the tests, make sure the test dependencies are installed,
and run


tox

Page 8 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.