$ git clone https://github.com/uktrade/directory-sso-proxy
$ cd directory-sso-proxy
$ virtualenv .venv -p python3.6.12
$ source .venv/bin/activate
$ make requirements
$ make install_requirements
$ make webserver
Secrets such as API keys and environment specific configurations are placed in conf/env/secrets-do-not-commit
- a file that is not added to version control. To create a template secrets file with dummy values run make secrets
.
Command | Description |
---|---|
make clean | Delete pyc files |
make pytest | Run all tests |
make pytest test_foo.py | Run all tests in file called test_foo.py |
make pytest -- --last-failed | Run the last tests to fail |
make pytest -- -k foo | Run the test called foo |
make pytest -- | Run arbitrary pytest command |
make manage | Run arbitrary management command |
make webserver | Run the development web server |
make requirements | Compile the requirements file |
make install_requirements | Installed the compile requirements file |
make secrets | Create your secret env var file |
make flake8 | Run flake8 linting |
make checks | Run black, isort, flake8 in check mode |
make autoformat | Run black and isort in file-writing mode |
https://github.com/uktrade?q=directory https://github.com/uktrade?q=great