-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add contributing policy #14
Comments
pep8 (with cammelCase) is all we need:p In seriousnes:
|
@bennuttall – Great idea. I agree with all @jvlomax's points but would also add:
|
We're leaving Are we adding |
I would rather we stated desired results rather than implementation method; something like "Ensure you do not break backwards-compatibility if renaming/deleting anything" |
@bennuttall, @doismellburning – Agree with you both, lets codify this as:
|
I disagree with the vectors. They're harder to understand than passing in x, y and z coordinates. Additionally you then need to differentiate between 2d and 3d coordinates. As for PEP8, could we set 79 columns as soft limit and 99 as hard limit? I found that 79 sometimes makes the code harder to read than if you go over that limit by a little bit. Also, people should add themselves to (Edit: More arguments concerning the vector thing in #10). |
I can't help but recall @Lukasa mentioning how requests deliberately doesn't follow PEP8, and iirc that specifically included line length limit (+ continuation indentation), and I'm inclined to agree |
Django has a similar guideline: https://docs.djangoproject.com/en/1.5/internals/contributing/writing-code/coding-style/
In other projects, I always use this guideline:
|
@dbrgn @jvlomax – Can I confirm you're both talking about a Vector as in the @dbrgn @doismellburning – PEP8 was modified recently to add a caveat on line length (along with some other changes) stating projects can go up to 99 characters. I'd be pro on taking this route too as I agree a hard limit of 80 characters can make the code less readable in places. @dbrgn – Could you add what E126-E128 are please so it's explicit here? |
Yes. Or actually, a general concept of a position type.
They all concern continuation indentation, as @doismellburning already mentioned:
|
@dbrgn @jvlomax – I think separate parameters is likely to be easier to work with for new users who are unlikely to know or understand the concept of a vector. I had to go look it up and I've been programming for well over a decade! @dbrgn – Yup, totally agree on ignoring those with |
I am massively pro:
|
Also, as a community based project, can we agree that no contribution should land in the main code base without a pull request and at least 1 review with a good-to-go? |
Absolutely |
Most definitely. (and I apologise for no doubt breaking this rule before now!) |
We should add a
CONTRIBUTING.md
file in the root containing the rules for contributors to follow. GitHub's convention means they're prompted to read this before opening an issue or creating a PR.It should contain any actual rules like PEP8 compliance, style guide, stuff about compatibility, etc. and general house rules.
So - what do we think they should be?
The text was updated successfully, but these errors were encountered: