- make sure you are using python > 3.7+
- setup virtualenv using
virtualenv env
and activate it - run
pip install -e "."
to install dependencies. keep setup.py updated- rerun
pip install -e "."
if you make changes to models/source code. not needed for testcase changes
- rerun
- run
pytest --mypy --black --isort --cov=rush --cov-report=xml --cov-report=term
to run your tests- if black formatting tests fail, just run
black .
from your top level directory. Alternatively you can setup black in vscode (I highly recommend setting up all three "format on paste/save/type") - if isort formatting tests fail, just run
isort .
from your top level directory.
- if black formatting tests fail, just run
- to run tests on a particular file, go to pytest.ini file and add the file name to the end
- example:
[pytest] addopts = -p no:warnings src/test/test_reset_card.py
- example:
- all source code is under
src/rush/
. That is where you should make your code - docker kill rush_pg
- psql postgresql://alem_user:password@localhost:5680/alem_db
-
Notifications
You must be signed in to change notification settings - Fork 1
License
RedCarpetUp/ledger
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published