Silence-lint-error

Latest version: v1.4.0

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

Scan your dependencies

1.4.0

Added

- Silence errors with `semgrep`.

1.3.0

Added

- Apply auto-fixes with `ruff`.

1.2.1

Fixed

- Fix bug where `noqa` is used for all linters' silence comments

We forgot to pass through the comment type when adding to existing comments.
These were always added as `noqa` comments, even for `fixit`.

1.2.0

Added

- Silence `fixit` errors with *inline* comments.

`fixit` does not always respect `lint-fixme` comments when they are on the
line above the line causing the error. This is a known bug and is reported
in https://github.com/Instagram/Fixit/issues/405.

In some of these cases (e.g. decorators), placing the comment on the same line
as the error can ensure it is respected. The `fixme-inline` linter option
allows the comments to be added inline instead of on the lien above.

N.B. This might prevent the comments from being successfully removed by the
`fix fixit` command, if there are other errors ignored on the same line.

1.1.0

Added

- Silence errors with `ruff`

Fixed

- Show helpful error message if the linting tool is not installed

Until this release, if the tool you were trying to use to find errors wasn't
installed, this tool would succeed with a 'no errors found' message. This is
unhelpful, so we now show the 'No module named ...' error from Python and exit
with a non-zero return code.

1.0.0

This tool replaces
[`ignore-flake8-error`](https://github.com/samueljsb/ignore-flake8-error) and
[`silence-fixit-error`](https://github.com/samueljsb/silence-fixit-error). It is
feature-compatible with those tools.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.