Skip to content

fix: improve Black import error [optional-black-improvement]

Sign in for the full log view
GitHub Actions / Pylint failed Jan 2, 2025 in 0s

5 errors

Pylint found 5 errors

Annotations

Check failure on line 159 in src/darker/formatters/black_formatter.py

See this annotation in the file changed.

@github-actions github-actions / Pylint

src/darker/formatters/black_formatter.py#L159

Import outside toplevel (darker.formatters.black_wrapper.format_str) (import-outside-toplevel, C0415)

Check failure on line 186 in src/darker/formatters/black_formatter.py

See this annotation in the file changed.

@github-actions github-actions / Pylint

src/darker/formatters/black_formatter.py#L186

Import outside toplevel (darker.formatters.black_wrapper.FileMode, darker.formatters.black_wrapper.TargetVersion) (import-outside-toplevel, C0415)

Check failure on line 22 in src/darker/formatters/black_wrapper.py

See this annotation in the file changed.

@github-actions github-actions / Pylint

src/darker/formatters/black_wrapper.py#L22

Constant name "message" doesn't conform to UPPER_CASE naming style (invalid-name, C0103)

Check failure on line 25 in src/darker/formatters/black_wrapper.py

See this annotation in the file changed.

@github-actions github-actions / Pylint

src/darker/formatters/black_wrapper.py#L25

Import "from black import FileMode, TargetVersion, format_str, parse_pyproject_toml, re_compile_maybe_verbose" should be placed at the top of the module (wrong-import-position, C0413)

Check failure on line 10 in src/darker/formatters/black_wrapper.py

See this annotation in the file changed.

@github-actions github-actions / Pylint

src/darker/formatters/black_wrapper.py#L10

Unused import black (unused-import, W0611)