- Fork flask-smorest on Github.
$ git clone https://github.com/marshmallow-code/flask-smorest.git $ cd flask-smorest
- Install development requirements. It is highly recommended that you use a virtualenv. Use the following command to install an editable version of flask-smorest along with its development requirements.
# After activating your virtualenv $ pip install -e '.[dev]'
- Install the pre-commit hooks, which will format and lint your git staged files.
# The pre-commit CLI was installed above $ pre-commit install
Always make a new branch for your work, no matter how small. Also, do not put unrelated changes in the same branch or pull request. This makes it more difficult to merge your changes.
- Create a new local branch.
# For a new feature or bugfix $ git checkout -b name-of-feature-or-bugfix dev
- Commit your changes.
Write good commit messages.
$ git commit -m "Detailed commit message" $ git push origin name-of-feature-or-bugfix
- Before submitting a pull request, check the following:
- If the pull request adds functionality, it is tested and the docs are updated.
- You've added yourself to
AUTHORS.rst
.
- Submit a pull request to
marshmallow-code:master
.
The CI build must be passing before your pull request is merged.
To run all tests:
$ pytest
To run formatting and syntax checks:
$ pre-commit run --all-files