All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
- Silence errors with
mypy
.
- Use
ruff check
instead ofruff
for runningruff
. This makes the tool compatible with ruff>=0.5.0.
The tests are no longer included in the built package.
- Silence errors with
semgrep
.
- Apply auto-fixes with
ruff
.
-
Fix bug where
noqa
is used for all linters' silence commentsWe forgot to pass through the comment type when adding to existing comments. These were always added as
noqa
comments, even forfixit
.
-
Silence
fixit
errors with inline comments.fixit
does not always respectlint-fixme
comments when they are on the line above the line causing the error. This is a known bug and is reported in Instagram/Fixit#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.
- Silence errors with
ruff
-
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.
This tool replaces
ignore-flake8-error
and
silence-fixit-error
. It is
feature-compatible with those tools.