Replies: 3 comments 1 reply
-
Maybe something like import strawberry
@strawberry.type
class Foo:
x: SomeType | SomeOtherType |
Beta Was this translation helpful? Give feedback.
-
@strawberry.type
class Foo:
helloWorld: String |
Beta Was this translation helpful? Give feedback.
-
ok here's a vibe-coded version of this with pygrep.... https://github.com/magicmark/strawberry-pre-commit-hooks/blob/101cf7eb656d9de9b5c9f8e3c8ec213ab7076520/.pre-commit-hooks.yaml kinda ugly and borderline unmaintanable imo tho ...but maybe it's ok as a black box as long as the tests are ok? a bit philosophical but what do we think? Edit: actually disregard ^ this is garbage Having more success with ast-grep but not with LLMs... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What are some rules we could provide as a provided set of a pre-commit hooks?
Going to use this discussion thread to jot down some things I've run into so far.
no-raw-dataclass
(I see this one a ton)
Beta Was this translation helpful? Give feedback.
All reactions