Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix python code formatting #105

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: "--check --verbose --extend-exclude \"codegen\""
options: "--check --verbose
src: "./projects/jdwp"


2 changes: 1 addition & 1 deletion projects/jdwp/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jdwp-check: jdwp-host-prepare
buck2 run //projects/jdwp:main
buck2 test //projects/jdwp/...
pyre check
black projects/jdwp --check --extend-exclude "codegen"
black projects/jdwp --check

jdwp-format: black-host
black projects/jdwp
6 changes: 3 additions & 3 deletions projects/jdwp/codegen/dataclass_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ def compute_struct_names(root: Struct, name: str) -> typing.Mapping[Struct, str]
tagged_union_type = typing.cast(TaggedUnion, type)
for case_value, case_struct in tagged_union_type.cases:
case_name = format_enum_name(case_value)
names[
case_struct
] = f"{names[parent]}{sanitized_field_name}Case{case_name}"
names[case_struct] = (
f"{names[parent]}{sanitized_field_name}Case{case_name}"
)
return names


Expand Down
Loading