Skip to content

Commit

Permalink
fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
michalgr committed Sep 10, 2024
1 parent 0bca49e commit d412bec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit d412bec

Please sign in to comment.