-
Notifications
You must be signed in to change notification settings - Fork 18
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
Tutorial docs needed #15
Comments
My apologies for not getting to this sooner. Some docs, as you say, would be very useful. The outline given in the README is very brief, but perhaps I can expand a little more on that here. The first step is to express your lint check as a Generally, I treat lint configs like toolchains: I represent them using build rules that either contain options or point to a config file. I also tend to assume that there's one style used per-repo. I know there's a lot of "generally" and "tend" in there, but When people wire Once you have your test rule, you then use a macro to wrap an existing rule (eg. The complicated bit is figuring out whether or not the user has opted into linting for the target. In order to check that, call get_lint_config passing in the well-known name of your linter, and the If you'd like more help, please feel free to either comment on this issue. I'm also on the public Bazel slack during UK work hours, and I'd be happy to help you there too. I'm leaving the issue open in case you'd like to comment more, but please feel free to close if you think what I've written above is sufficient. |
Hi Simon,
I'm trying to wire this up as py-black or py-ruff and not finding the code obvious. Maybe it's just me.
I got Black working via bazel-super-formatter but keen to implement this as alternative for the learning experience to compare & contrast.
If you could point me in the right direction that would be great. Please.
The text was updated successfully, but these errors were encountered: