Replies: 3 comments 1 reply
|
Maybe something like import strawberry
@strawberry.type
class Foo:
x: SomeType | SomeOtherType |
0 replies
|
@strawberry.type
class Foo:
helloWorld: String |
0 replies
|
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... |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)
All reactions