Skip to content

rzzdr/Samvidhan-Decoded-Backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Air It Backend

environment setup

need a locally installed python version 3.10.12. recommended to use pyenv to install that.

poetry env use ~/.pyenv/versions/3.10.12/bin/python
poetry install

testing app

  1. Run a local instance of cockraoch db using:
sh deploy/local_test.sh cr-pull  # required only first time
sh deploy/local_test.sh cr-local-start
sh deploy/local_test.sh cr-stop  # when testing is over

Now the tests which require this local instance will run. They can be run individually in pycharm or using the command:

poetry run pytest

linting/formatting

The following commands can be used:

poetry run sh deploy/local_test.sh check-format
poetry run sh deploy/local_test.sh format

version updates

we use bumpversion to make version updates. The following commands can be used:

poetry run bumpversion --config-file=./deploy/.bumpversion.cfg <option>

The option can be:

  • patch: to update the patch version
  • minor: to update the minor version
  • major: to update the major version
  • release: to update the release version
    • also add --tag to create a git tag when releasing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.9%
  • Shell 6.4%
  • Dockerfile 0.7%