Automate the basic review process to the bot #8578
dhruvmanila
started this conversation in
Team Posts
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been using the
fixit
framework which is itself based onlibcst
to create custom rules and lint all the Python files. The modulefixit
provides built-in rules with the package. Here's a link to the documentation forfixit
and on the left side you will see the Rules section.I am thinking of integrating some of the useful ones in the bot. It's as simple as importing the rule class in the
__init__.py
of thealgorithms.parser.rules
package, the rest will be taken care of by the code. A lot of them are taken directly from the PEP8 style guide.Some of the useful ones:
We can define any arbitrary rule, so if there is something that you have in mind, please do share.
Beta Was this translation helpful? Give feedback.
All reactions