Skip to content

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

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

6 errors

Pylint found 6 errors

Annotations

Check failure on line 160 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#L160

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

Check failure on line 187 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#L187

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

Check failure on line 42 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#L42

Unused DependencyError imported from darker.exceptions (unused-import, W0611)

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)