Skip to content

Commit

Permalink
Merge pull request #391 from pcattori/contributor-guide
Browse files Browse the repository at this point in the history
Simplify contributor docs
  • Loading branch information
pcattori committed Jun 25, 2020
2 parents 80dac5d + 2886ff9 commit 50b459a
Show file tree
Hide file tree
Showing 13 changed files with 61 additions and 109 deletions.
30 changes: 21 additions & 9 deletions docs/contributor-guide.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
# Contributor guide

* [Bug Reports and Feature Requests](contributor-guide/bugs-and-features)
* [Code Migrations](contributor-guide/migration)
* [Configure your Text Editor](contributor-guide/config-text-editor)
* [Install](contributor-guide/install)
* [Navigating Inheritance](contributor-guide/navigating-inheritance)
* [Pull Requests](contributor-guide/pull-request)
* [Run and Build](contributor-guide/run-and-build)
* [Style Guide](contributor-guide/style-guide)
* [Toolchain](contributor-guide/toolchain)
Make sure you are viewing the [latest version of Contributor Guide](https://tamr-client.readthedocs.io/en/latest/contributor-guide.html).

## Contributing feedback

Check through existing issues (open and closed) to confirm that the bug or feature hasn’t been reported before.

If the bug/feature has been submitted already, leave a like 👍 on the description of the Github Issue.

### Bug reports
Submit bug reports as [Github issues](https://github.com/Datatamer/tamr-client/issues/new/choose).

### Feature requests
Submit feature requests as [Github issues](https://github.com/Datatamer/tamr-client/issues/new/choose).


## Contributing code
* [Install the codebase](contributor-guide/install)
* [Run dev tasks](contributor-guide/dev-tasks)
* [Configure your text editor](contributor-guide/text-editor)
* [Read the style guide](contributor-guide/style-guide)
* [Submit a pull request](contributor-guide/pull-request)
9 changes: 0 additions & 9 deletions docs/contributor-guide/bugs-and-features.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/contributor-guide/config-text-editor.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Run and Build
# Run dev tasks

This project uses [nox](https://nox.thea.codes/en/stable/).

Expand All @@ -15,7 +15,7 @@ prn # with alias
poetry run nox # without alias
```

## Linting & Formatting
## Linting

To run linter:

Expand All @@ -24,6 +24,8 @@ prn -s lint # with alias
poetry run nox -s lint # without alias
```

## Formatting

To run formatter:

```sh
Expand Down
25 changes: 12 additions & 13 deletions docs/contributor-guide/install.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Install
# Installation

This project uses `pyenv` and `poetry`.
If you do not have these installed, checkout the [toolchain guide](toolchain).
### Pre-requisites

---
1. Install [build dependencies for pyenv](https://github.com/pyenv/pyenv/wiki#suggested-build-environment)
2. Install [pyenv](https://github.com/pyenv/pyenv#installation)
3. Install [poetry](https://python-poetry.org/docs/#installation)

### Clone + install

1. Clone your fork and `cd` into the project:

Expand All @@ -12,20 +15,16 @@ If you do not have these installed, checkout the [toolchain guide](toolchain).
cd tamr-client
```

2. Set a Python version for this project. Must be Python 3.6+ (e.g. `3.7.3`):

```sh
pyenv local 3.7.3
```
2. Install all Python versions in [.python-version](https://github.com/Datatamer/tamr-client/blob/master/.python-version):

3. Check that your Python version matches the version specified in `.python-version`:
[Dev tasks](dev-tasks) will use these Python versions.

```sh
cat .python-version
python --version
# run `pyenv install` for each line in `.python-version`
cat .python-version | xargs -L 1 pyenv install
```

4. Install dependencies via `poetry`:
3. Install project dependencies via `poetry`:

```sh
poetry install
Expand Down
5 changes: 0 additions & 5 deletions docs/contributor-guide/migration.md

This file was deleted.

25 changes: 0 additions & 25 deletions docs/contributor-guide/navigating-inheritance.md

This file was deleted.

27 changes: 15 additions & 12 deletions docs/contributor-guide/pull-request.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# ↪️ Pull Requests
# Contributing pull requests

For larger, new features:
### ️RFCs
If the proposed changes require design input, [open a Request For Comment issue](https://github.com/Datatamer/tamr-client/issues/new/choose).

[Open an RFC issue](https://github.com/Datatamer/tamr-client/issues/new/choose).
Discuss the feature with project maintainers to be sure that your change fits with the project vision and that you won't be wasting effort going in the wrong direction.
Discuss the feature with project maintainers to be sure that your change fits with the project vision and that you won't be wasting effort going in the wrong direction.

Once you get the green light 🚦 from maintainers, you can proceed with the PR.
Once you get the green light 🟢 from maintainers, you can proceed with the PR.

---
### Pull requests

Contributions / PRs should follow the
[Forking Workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/forking-workflow):
[Forking Workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/forking-workflow). In short:

1. Fork it: `https://github.com/[your-github-username]/tamr-client/fork`
2. Create your feature branch:
Expand All @@ -33,12 +33,15 @@ Contributions / PRs should follow the

5. Create a new Pull Request

----
### Commits

We optimize for PR readability, so please squash commits before and during the PR review process if you think it will help reviewers and onlookers navigate your changes.
Split and squash commits as necessary to create a clean `git` history. Once you ask for review, only add new commits (do not change existing commits) for reviewer convenience. You may change commits in your PR only if reviewers are ok with it.

Don't be afraid to `push -f` on your PRs when it helps our eyes read your code.
Also, write [good commit messages](https://chris.beams.io/posts/git-commit/)!

---
### CI checks

Remember to check for any [ongoing code migrations](migration) that may be relevant to your PR.
Continuous integration (CI) checks are run automatically for all pull requests.
CI runs the same [dev tasks](dev-tasks) that you can run locally.

You should run dev tasks locally _before_ submitting your PR to cut down on subsequent commits to fix the CI checks.
Binary file not shown.
Binary file removed docs/contributor-guide/resource:collectionRoute.png
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/contributor-guide/style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Code should generally conform to the [PEP8 style guidelines](https://www.python.org/dev/peps/pep-0008/).
* [Flake8](https://flake8.pycqa.org/en/latest/) is a linter to help check that code is aligned with these formatting requirements
* [Black](https://black.readthedocs.io/en/stable/) is a formatter that can be used to automatically reformat code to resolve many (but not all) formatting issues
* For details on using these tools [see here](run-and-build)
* For details on using these tools, see [the dev tasks guide](dev-tasks)

### Structure
* Classes with methods should be avoided in favor of simple [dataclasses](https://docs.python.org/3/library/dataclasses.html) and functions
Expand Down
8 changes: 8 additions & 0 deletions docs/contributor-guide/text-editor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Configure your Text Editor

### Atom
- [python-black](https://atom.io/packages/python-black)
- [linter-flake8](https://atom.io/packages/linter-flake8)

### VS Code
- [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
28 changes: 0 additions & 28 deletions docs/contributor-guide/toolchain.md

This file was deleted.

0 comments on commit 50b459a

Please sign in to comment.