feat: create requirements-txt linter #304
Annotations
6 errors and 8 warnings
|
lintrunner_adapters/adapters/requirements_txt_linter.py#L82
Undefined name `PASS`.
See https://beta.ruff.rs/docs/rules/.
To disable, use ` # noqa: F821`
|
lintrunner_adapters/adapters/requirements_txt_linter.py#L82
undefined name 'PASS'
See https://www.flake8rules.com/rules/F821.html.
To disable, use ` # noqa: F821`
|
lintrunner_adapters/adapters/requirements_txt_linter.py#L82
Returning Any from function declared to return "bytes"
To disable, use ` # type: ignore[no-any-return]`
|
lintrunner_adapters/adapters/requirements_txt_linter.py#L82
Name "PASS" is not defined
To disable, use ` # type: ignore[name-defined]`
|
lintrunner_adapters/adapters/requirements_txt_linter.py#L82
Undefined variable 'PASS' (undefined-variable)
See [undefined-variable](https://pylint.pycqa.org/en/latest/user_guide/messages/error/undefined-variable.html).
To disable, use ` # pylint: disable=undefined-variable`
|
.lintrunner.toml#L1
Run `lintrunner -a` to apply this patch.
|
requirements-test.txt#L1
Run `lintrunner -a` to apply this patch.
|
lintrunner_adapters/adapters/requirements_txt_linter.py#L106
Use ternary operator `rest = requirements.pop().comments if requirements[-1].value is None else []` instead of `if`-`else`-block.
See https://beta.ruff.rs/docs/rules/.
To disable, use ` # noqa: SIM108`
|
lintrunner_adapters/adapters/requirements_txt_linter.py#L1
Run `lintrunner -a` to apply this patch.
|
lintrunner_adapters/adapters/requirements_txt_linter.py#L1
Run `lintrunner -a` to apply this patch.
|
lintrunner_adapters/adapters/requirements_txt_linter.py#L153
expected 2 blank lines, found 1
See https://www.flake8rules.com/rules/E302.html.
To disable, use ` # noqa: E302`
|
lintrunner_adapters/adapters/requirements_txt_linter.py#L51
Unnecessary "elif" after "return", remove the leading "el" from "elif" (no-else-return)
See [no-else-return](https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/no-else-return.html).
To disable, use ` # pylint: disable=no-else-return`
|
lintrunner_adapters/adapters/requirements_txt_linter.py#L88
Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
See [use-implicit-booleaness-not-len](https://pylint.pycqa.org/en/latest/user_guide/messages/convention/use-implicit-booleaness-not-len.html).
To disable, use ` # pylint: disable=use-implicit-booleaness-not-len`
|
The logs for this run have expired and are no longer available.
Loading