System dependencies:
- Python 3.6+
- Python Poetry
- Create a virtual environment.
- Run
poetry install
to install the package.
- If you're getting the error:
ModuleNotFoundError: No module named '_sqlite3'
, you need to installlibsqlite3-dev
(sudo apt install libsqlite3-dev
on Ubuntu) and reinstall Python.
Running the tests:
pytest
Running the tests with code coverage:
pytest --cov=easy_equities_client tests/
With pre-commit:
- Install pre-commit.
- Run
pre-commit install
. - Stage files.
- When you create a commit, pre-commit will automatically lint and check your staged files.
- Stage the files that were modified again.
- Repeat until no more pre-commit errors are raised.
Manually:
black .
flake8
We use MyPy for static type-checking. You can run it with:
mypy easy_equities_client tests
-
Update CHANGELOG.md following the Keep a changelog format.
-
Bump the version number (following semantic versioning):
bump2version < either: major / minor / patch >