Skip to content
This repository was archived by the owner on Dec 11, 2020. It is now read-only.

Latest commit

 

History

History
75 lines (60 loc) · 3 KB

CONTRIBUTING.md

File metadata and controls

75 lines (60 loc) · 3 KB

How to Contribute

We're excited you're interested in contributing to Marquez! We'd love your help, and there are plenty of ways to contribute:

We feel that a welcoming community is important and we ask that you follow the Contributor Covenant Code of Conduct in all interactions with the community.

Development

We recommend installing the following tools to run the tests:

Install pyenv: brew install pyenv pyenv-virtualenv Add it to your profile: ~/.zshrc or ~/.bashrc depending on your shell

if command -v pyenv 1>/dev/null 2>&1; then
  eval "$(pyenv init -)"
  eval "$(pyenv virtualenv-init -)"
fi

create a marquez-airflow virtual env:

pyenv virtualenv marquez-airflow
pyenv activate marquez-airflow

(depending on the version of python you're running, you may need to alias pip to pip3)

Install the test dependencies:

pip3 install -r test-requirements.txt

Init the airflow local db:

airflow initdb

now you can run the tests: python -m pytest --ignore=tests/integration tests/

To run the linter locally: install flake8

pip install flake8

and run it:

python -m flake8

Submitting a pull request

  1. Fork and clone the repository
  2. Make sure all tests pass locally: python -m pytest --ignore=tests/integration
  3. Create a new branch: git checkout -b my-cool-new-branch
  4. Make change on your cool new branch
  5. Write a test for your change
  6. Push change to your fork and submit a pull request
  7. Add the "review" label to your pull request
  8. Work with project maintainers to get your change reviewed and merged into the main branch
  9. Delete your branch

To ensure your pull request is accepted, follow these guidelines:

Resources