Skip to content

thegangtechnology/thai-national-id-smartcard

Repository files navigation

Link: Sonarqube

Setup Instruction

poetry install

Run Test

poetry run pytest

What to do next

Install Pre-commit (Recommended)

poetry run pre-commit install

If you wish to edit pre-commit behavior see .pre-commit-config.yaml. Normally it checks only the file you are committing. But if you wish to run it manually for all files do

poetry run pre-commit run --all

Install Jupyter Notebook Kernel

poetry run python -m ipykernel install --user --name thai_national_id_smartcard

Adjusting the Dependencies

edit pyproject.toml or just do

poetry add numpy

or for dev dependencies

poetry add --dev numpy

See python-poetry.org

Change Pytest, Flake, Coverage Setting

See tox.ini

Change how sonarqube behaves.

See sonar-project.properties

Get Pycharm to show the correct coverage

Ironically in pycharm test configuration add --no-cov to Additional Arguments this turn off pytest-cov coverage and uses Pycharm's own pytest.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published