Skip to content
This repository was archived by the owner on May 4, 2021. It is now read-only.

Add to contributing guidelines, especially about git/github#215

Merged
juga0 merged 5 commits intomasterfrom
contributing_additions
Jul 1, 2018
Merged

Add to contributing guidelines, especially about git/github#215
juga0 merged 5 commits intomasterfrom
contributing_additions

Conversation

@pastly
Copy link
Copy Markdown
Member

@pastly pastly commented Jun 25, 2018

Closes #208

@pastly pastly requested a review from juga0 June 25, 2018 19:15
**Write many small commits** each containing an atomic change instead of one
large mega-commit. This not only makes code review easier, but it also makes
commits that show up in ``git blame`` 10 years from now make more sense.
Strive to **write many small commits** each containing an atomic change instead
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, small commits makes not clear what is a complete feature.
In other projects, any commit should pass all tests, and if adding a new feature, it should contain also the test. Following that, commits can be actually quite big.
So far i never heard of a workflow that would prioritize git blame. If a project is mature/in production, developers try to modify code making as less changes as possible to other parts of the code (probably made by other developers).

of one large mega-commit. This not only makes code review easier, but it also
makes commits that show up in ``git blame`` 10 years from now make more sense.

**Prefer a rebase workflow instead of merge**. Incorporating PRs should be done
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebase workflow makes commits cleaner, however, unless done in different branches as you commente below, it would imply "lying" for remote branches.

not merge master into your topic branch**; instead, rebase your topic branch on
top of master or cherry-pick the changes.

**Do not force push lightly** unless branches are clearly labeled as ones that
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we haven't being following this so far, personally i didn't cause it was just you and me.

We use flake8 to check some PEP8 errors/warnings. This will be checked with
``tox`` and Travis.

Simple Bandwidth Scanner is moving towards 100% test coverage. Please help us
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're at 68% currently, and i think we were already when you wrote that.
I'd rather say that any new feature should come with the test

=================

**Strongly prefer Unix timestamps** over ``datetime`` structures and always
**Strongly prefer Unix timestamps or datetime objects in UTC** and always
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and that means using pytz, what has been only needed when converting from unix timestamp to datetime, but not the other way around, because there was not functionality in datetime for that.
However, working on UTC when possible, it's right.

Copy link
Copy Markdown
Contributor

@juga0 juga0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding single comments, but i'd just reuse one CONTRIBUTING file from the many great ones in many great projects and say where it comes from.

@juga0
Copy link
Copy Markdown
Contributor

juga0 commented Jun 25, 2018

@juga0
Copy link
Copy Markdown
Contributor

juga0 commented Jul 1, 2018

I think this text is fine, though could be more detailed.
Merging now, maybe when we are done with milestone 1.0, i would propose additional text to add.

@juga0 juga0 closed this Jul 1, 2018
@juga0 juga0 reopened this Jul 1, 2018
@juga0 juga0 merged commit 0f82e0b into master Jul 1, 2018
@pastly pastly deleted the contributing_additions branch July 5, 2018 17:24
@juga0 juga0 mentioned this pull request Aug 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants