Skip to content

Commit

Permalink
fix: pylint import outside toplevel
Browse files Browse the repository at this point in the history
Co-authored-by: csteiner <47841949+clintonsteiner@users.noreply.github.com>
  • Loading branch information
akaihola and clintonsteiner authored Oct 28, 2024
1 parent 0526ca6 commit e53bd88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darker/formatters/black_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def run(self, content: TextDocument) -> TextDocument:
"""
# Local import so Darker can be run without Black installed
from black import format_str
from black import format_str # pylint: disable=import-outside-toplevel

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

View workflow job for this annotation

GitHub Actions / flake8

at least two spaces before inline comment

contents_for_black = content.string_with_newline("\n")
if contents_for_black.strip():
Expand Down

0 comments on commit e53bd88

Please sign in to comment.