First, thanks for taking the time to consider contributing! ❤️ All contributions are welcomed and encouraged.
- Create an issue and assign it to yourself.
- Fork the repository.
- Locally clone your fork,
git clone https://github.com/yourname/pyaww
cd pyaww
- Commit your changes,
git add pyaww/x.py
git commit -m "[feat] add support for y in method z"
- Create/update the tests if needed (look at
tests/README.md
), commit them as well,
git add tests/test_x.py
git commit -m "[test] create test for parameter y in method z"
Please look at the following git guide for commits.
- Push your changes via
git push -u origin branch
. - Create a PR, with a good description on the changes you've made.
- Follow the
PEP8
rules. - Use Google-style docstrings.
- You must format your code using black.
- You must sort imports using isort.
- You must run tests using pytest before creating a pull request.
- Your code must be typehinted. Look into
pyright
orpylance
type checkers if you do not have one. - Write clean and efficient code.
- Create/update tests.
- Install the
pytest
,pytest-asyncio
and thepython-dotenv
library. - Navigate to
pyaww/tests/assets
and create.env
. It should contain:
USERNAME=USERNAME
AUTH=TOKEN
STARTED_CONSOLE=ID
To properly test the module, use a "fresh account". Just create an alternative account, make & start a console and you're good to go!
- Ensure your CWD is
pyaww
and notpyaww/tests
or similar. - Run
py -m pytest -s
. - Fix if anything is wrong, if not, your tests are fine.