Hi! thanks for considering contribution to this project.
this is a community project and maintained by people, so we appreciate any help.
if you want to add a new future, please open an issue first.
Requirements:
- python >= 3.10
- poetry >= 2.0
contribution steps:
-
fork the project from the repository
-
clone the forked repo (you can find it in your own repositories)
-
go to the cloned project's directory (probably
cd django-async-extensions
will do it for you) -
install dependencies: this project uses poetry to manage dependencies, so you want to install poetry first if you haven't.
in the project directory (where
pyproject.toml
exists) runpoetry sync --with dev
to get the packages. if you are writing documentations, runpoetry sync --with doc
if you want to use ipython so you canawait
in the shell, runpoetry sync --with ipython
if you need al of these, runpoetry sync --all-groups
-
activate the virtual env: to activate poetry follow one of the ways explained here depending on your OS and shell.
-
write the code/document you want
-
testing: tests are written using pytest. to run the test suits simply run
python tests/runtest.py
currently these flags are avilable:- --quite
- -v={0,2,3}
- --failfast
- --keepdb
-
documentation: docs are written using mkdocs you can run
mkdocs serve
so you can see the changes you make as you develop. -
git: we expect a clean git history, you can use the many sources available online to see how you can keep a clean git history.
-
sending the codes: first push your changes to your forked repo (using
git push origin main
or the like) then go to the repo and click on the button sayingContribute
then open a pull request, we'll check the code and either accept or add notes to it.
Extra tips:
- if you need to run a django shell to use some stuff,
run
export DJANGO_SETTINGS_MODULE=tests.settings
then rundjango-admin shell