Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Automate the basic review process to the bot #8578

dhruvmanila started this conversation in Team Posts
Discussion options

I have been using the fixit framework which is itself based on libcst to create custom rules and lint all the Python files. The module fixit provides built-in rules with the package. Here's a link to the documentation for fixit 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 the algorithms.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.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /