You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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