Skip to content

Commit

Permalink
Bump black from 23.12.1 to 24.1.1 (#282)
Browse files Browse the repository at this point in the history
* Bump black from 23.12.1 to 24.1.1

Bumps [black](https://github.com/psf/black) from 23.12.1 to 24.1.1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@23.12.1...24.1.1)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fixup formatting

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Amethyst Reese <[email protected]>
  • Loading branch information
dependabot[bot] and amyreese authored Feb 12, 2024
1 parent 971c908 commit 37f39b2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dynamic = ["version"]
[project.optional-dependencies]
dev = [
"click==8.1.7", # pinning until mypy issues blow over
"black==23.12.1",
"black==24.1.1",
"coverage==7.4.1",
"flake8==7.0.0",
"hatch==1.9.3",
Expand Down
16 changes: 10 additions & 6 deletions usort/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,11 @@ def import_to_node(

def import_to_node_single(imp: SortableImport, module: cst.Module) -> cst.BaseStatement:
leading_lines = [
cst.EmptyLine(indent=True, comment=cst.Comment(line))
if line.startswith("#")
else cst.EmptyLine(indent=False)
(
cst.EmptyLine(indent=True, comment=cst.Comment(line))
if line.startswith("#")
else cst.EmptyLine(indent=False)
)
for line in imp.comments.before
]

Expand Down Expand Up @@ -413,9 +415,11 @@ def import_to_node_multi(imp: SortableImport, module: cst.Module) -> cst.BaseSta

# comment lines above import
leading_lines = [
cst.EmptyLine(indent=True, comment=cst.Comment(line))
if line.startswith("#")
else cst.EmptyLine(indent=False)
(
cst.EmptyLine(indent=True, comment=cst.Comment(line))
if line.startswith("#")
else cst.EmptyLine(indent=False)
)
for line in imp.comments.before
]

Expand Down

0 comments on commit 37f39b2

Please sign in to comment.