-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from ministryofjustice/environment-variables
add environment variables
- Loading branch information
Showing
11 changed files
with
213 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Django Development Variables | ||
DEBUG=1 | ||
SECRET_KEY=foo | ||
DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1] .service.justice.gov.uk | ||
|
||
# Catalogue Variables | ||
CATALOGUE_TOKEN=mycatalogtoken | ||
CATALOGUE_URL=https://datahub.apps-tools.development.data-platform.service.justice.gov.uk/api/gms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,6 +163,4 @@ cython_debug/ | |
#static files dirs | ||
staticfiles/ | ||
|
||
local.py | ||
|
||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
default_stages: [commit] | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: requirements-txt-fixer | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
exclude: tf$|j2$ | ||
- id: trailing-whitespace | ||
exclude: tf$|j2$ | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.11.0 | ||
hooks: | ||
- id: black | ||
name: black formatting | ||
args: [--config=./pyproject.toml] | ||
|
||
- repo: https://github.com/Yelp/detect-secrets | ||
rev: v1.4.0 | ||
hooks: | ||
- id: detect-secrets | ||
args: ["--baseline", ".secrets.baseline"] | ||
exclude: package.lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: "find-moj-data-secrets" | ||
type: Opaque | ||
data: | ||
secret_key: "${SECRET_KEY}" | ||
catalogue_token: "${CATALOGUE_TOKEN}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[tool.poetry] | ||
name = "daap-catalogue" | ||
name = "find-moj-data" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Mitch Dawson <[email protected]>"] | ||
|
@@ -13,11 +13,13 @@ gunicorn = "^21.2.0" | |
whitenoise = "^6.6.0" | ||
ministryofjustice-data-platform-catalogue = "^0.5.0" | ||
markdown = "^3.5.2" | ||
python-dotenv = "^1.0.1" | ||
|
||
[tool.poetry.group.dev] # dev group definition | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
black = "^23.12.1" | ||
pre-commit = "^3.6.0" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
|