Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 881 Bytes

File metadata and controls

51 lines (33 loc) · 881 Bytes

Contributing to Psycopack

Installing development dependencies

make dev

Running tests

The entire test suite can be run with:

make test

The test suite is supported by pystest. You can pass flags to pytest by running:

PYTEST_FLAGS="tests/test_repack.py --pdb -vv" make test

To run tests against a specific database, set the DATABASE_URL environment variable:

DATABASE_URL=postgres://marcelo.fernandes:postgres@localhost:5415/postgres make test

Coverage

We try to keep code coverage as high as possible. There are a few coverage commands:

Run tests and produce a report in the terminal:

make coverage

Run tests and produce a rich HTML report (more info than int the terminal command):

make coverage_html

Linter

We use ruff and mypy for linting. To run both linters, run:

make lint