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 <[email protected]>
  • Loading branch information
akaihola and clintonsteiner authored Oct 28, 2024
1 parent 19d0347 commit ee8e218
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 @@ -176,7 +176,7 @@ def _make_black_options(self) -> Mode:

# Local import so Darker can be run without Black installed
from black import FileMode as Mode # pylint: disable=import-outside-toplevel

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

View workflow job for this annotation

GitHub Actions / flake8

at least two spaces before inline comment
from black import TargetVersion
from black import TargetVersion # pylint: disable=import-outside-toplevel

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

View workflow job for this annotation

GitHub Actions / flake8

at least two spaces before inline comment

mode = BlackModeAttributes()
if "line_length" in self.config:
Expand Down

0 comments on commit ee8e218

Please sign in to comment.