Skip to content

Commit

Permalink
Merge pull request #235 from macisamuele/create-pull-request/bump-rel…
Browse files Browse the repository at this point in the history
…eases

[Automated PR] Bump external tools (KTLint, Google Java Formatter, ktfmt, Pantlir)
  • Loading branch information
macisamuele authored Jul 14, 2024
2 parents fc0ab1d + 0ba8757 commit fd08295
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 24 deletions.
2 changes: 1 addition & 1 deletion language_formatters_pre_commit_hooks/ktfmt.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.47
0.51
2 changes: 1 addition & 1 deletion language_formatters_pre_commit_hooks/ktlint.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.1
1.3.1
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def pretty_format_kotlin(argv: typing.Optional[typing.List[str]] = None) -> int:
)
parser.add_argument(
"--ktfmt-style",
choices=["dropbox", "google", "kotlinlang"],
choices=["google", "kotlinlang"],
dest="ktfmt_style",
help="Which style to use",
)
Expand Down

This file was deleted.

18 changes: 0 additions & 18 deletions tests/pretty_format_kotlin_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def test_pretty_format_kotlin_checksum(undecorate_method, checksum, expected_ret
@pytest.mark.parametrize(
("filename", "expected_retval"),
(
("NotPrettyFormattedFixedKtfmtDropbox.kt", 1),
("NotPrettyFormattedFixedKtfmtGoogle.kt", 0),
("NotPrettyFormattedFixedKtfmtKotlinlang.kt", 1),
("NotPrettyFormatted.kt", 1),
Expand Down Expand Up @@ -119,21 +118,6 @@ def test_pretty_format_kotlin_ktfmt_checksum(undecorate_method, checksum, expect
@pytest.mark.parametrize(
("filename", "expected_retval"),
(
("NotPrettyFormattedFixedKtfmtDropbox.kt", 0),
("NotPrettyFormattedFixedKtfmtGoogle.kt", 1),
("NotPrettyFormattedFixedKtfmtKotlinlang.kt", 0),
("NotPrettyFormatted.kt", 1),
("Invalid.kt", 1),
),
)
def test_pretty_format_kotlin_ktfmt_dropbox_style(undecorate_method, filename, expected_retval):
assert undecorate_method(["--ktfmt", "--ktfmt-style=dropbox", filename]) == expected_retval


@pytest.mark.parametrize(
("filename", "expected_retval"),
(
("NotPrettyFormattedFixedKtfmtDropbox.kt", 1),
("NotPrettyFormattedFixedKtfmtGoogle.kt", 0),
("NotPrettyFormattedFixedKtfmtKotlinlang.kt", 1),
("NotPrettyFormatted.kt", 1),
Expand All @@ -147,7 +131,6 @@ def test_pretty_format_kotlin_ktfmt_google_style(undecorate_method, filename, ex
@pytest.mark.parametrize(
("filename", "expected_retval"),
(
("NotPrettyFormattedFixedKtfmtDropbox.kt", 0),
("NotPrettyFormattedFixedKtfmtGoogle.kt", 1),
("NotPrettyFormattedFixedKtfmtKotlinlang.kt", 0),
("NotPrettyFormatted.kt", 1),
Expand All @@ -164,7 +147,6 @@ def test_pretty_format_kotlin_ktfmt_kotlinglang_style(undecorate_method, filenam
("NotPrettyFormatted.kt", "NotPrettyFormattedFixedKtlint.kt", []),
("NotPrettyFormatted.kt", "NotPrettyFormattedFixedKtfmtGoogle.kt", ["--ktfmt"]),
("NotPrettyFormatted.kt", "NotPrettyFormattedFixedKtfmtGoogle.kt", ["--ktfmt", "--ktfmt-style=google"]),
("NotPrettyFormatted.kt", "NotPrettyFormattedFixedKtfmtDropbox.kt", ["--ktfmt", "--ktfmt-style=dropbox"]),
("NotPrettyFormatted.kt", "NotPrettyFormattedFixedKtfmtKotlinlang.kt", ["--ktfmt", "--ktfmt-style=kotlinlang"]),
),
)
Expand Down

0 comments on commit fd08295

Please sign in to comment.