-
Notifications
You must be signed in to change notification settings - Fork 23
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
[ENH] Using some Python coding best practices for open source repositories #105
Comments
Agreed. Do you know how we can enforce that by code or linting etc. Another question, do you know how to validate that with IDE as Pycharm? |
I know how to enforce it in pull requests. I can add that to the repo. RE PyCharm: I don't use it myself and can't immediately answer how to configure it, but I assume that it is possible. One part is adding the necessary configuration files for the tools to the repo. For some this is only necessary if we stray awa from the default config.
I just saw in the CI of my last PR that this repo already uses pyre. Is there anyone here who has a preference for either? Using |
For the branch protection an admin needs to go to Setttings -> Branches and then click the "Add rule" in the "Branch protection rules" section, type the name of the branch to be protected (master) and then check at least the top two protections "Require a pull request before merging" and "Require status checks to pass before merging". That should do it. |
I will protect the master. |
DONE. |
I propose that tis project adopts some of the standard Python development tools to make contributions easier and reduce some of the burden of new contributors.
black
andblack-disable-checker
for code formattingisort
to systematically sorting the importspylint
to spot and fix mistakes, errors and code smellsFurther tools that are not yet very useful here but might become handy in the future
blacken-docs
for documentationmypy
if type annotations become a thing in this package.The text was updated successfully, but these errors were encountered: