Skip to content

Latest commit

 

History

History
58 lines (35 loc) · 930 Bytes

CONTRIBUTING.md

File metadata and controls

58 lines (35 loc) · 930 Bytes

Contributing

Django Ninja uses Flit to build, package and publish the project.

to install it use:

pip install flit

Once you have it - to install all dependencies required for development and testing use this command:

flit install --deps develop --symlink

Once done you can check if all works with

pytest .

Now you are ready to make your contribution

When you done:

Please make sure you made tests to cover your functionality

and finally check the resulting coverage of your contribution did not suffer

pytest --cov=ninja --cov-report term-missing tests

Code style

Django Ninja uses black for style check

Before your commit please check/format your code with:

black ./ninja

Docs

Please do not forget to document your contribution

Django Ninja uses mkdocs:

cd docs/
mkdocs serve

and go to browser to see changes in real time