-
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 #537 from UW-GAC/main
Deploy to stage
- Loading branch information
Showing
44 changed files
with
664 additions
and
863 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 |
---|---|---|
|
@@ -19,27 +19,6 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
linter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout Code Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
cache: pip | ||
cache-dependency-path: | | ||
requirements/requirements.txt | ||
requirements/test-requirements.txt | ||
# Run all pre-commit hooks on all the files. | ||
# Getting only staged files can be tricky in case a new PR is opened | ||
# since the action is run on a branch in detached head state | ||
- name: Install and Run Pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
pytest-mariadb: | ||
runs-on: ubuntu-latest | ||
|
@@ -50,7 +29,7 @@ jobs: | |
# ahead of planned upgrades we can add versions as | ||
# needed | ||
python-version: [3.8] | ||
mariadb-version: ["10.4"] | ||
mariadb-version: ["10.4", "10.5"] | ||
|
||
services: | ||
mysql: | ||
|
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,20 @@ | ||
line-length = 120 | ||
exclude = [ | ||
"**/migrations/**", | ||
"*/static/CACHE/*", | ||
"venv", | ||
"docs", | ||
] | ||
|
||
[lint] | ||
extend-select = [ | ||
"E", | ||
"F", | ||
"W", # pycodestyle warnings | ||
"I", # isort | ||
"DJ", # flake8-django | ||
"E501", # line-too-long | ||
] | ||
|
||
[lint.isort] | ||
known-first-party = ["gregor_django", "config", ] |
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 |
---|---|---|
|
@@ -57,15 +57,11 @@ | |
# in our apache configuration. Having in both places causes duplicate header | ||
SECURE_HSTS_SECONDS = 0 | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-hsts-include-subdomains | ||
SECURE_HSTS_INCLUDE_SUBDOMAINS = env.bool( | ||
"DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS", default=True | ||
) | ||
SECURE_HSTS_INCLUDE_SUBDOMAINS = env.bool("DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS", default=True) | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-hsts-preload | ||
SECURE_HSTS_PRELOAD = env.bool("DJANGO_SECURE_HSTS_PRELOAD", default=True) | ||
# https://docs.djangoproject.com/en/dev/ref/middleware/#x-content-type-options-nosniff | ||
SECURE_CONTENT_TYPE_NOSNIFF = env.bool( | ||
"DJANGO_SECURE_CONTENT_TYPE_NOSNIFF", default=True | ||
) | ||
SECURE_CONTENT_TYPE_NOSNIFF = env.bool("DJANGO_SECURE_CONTENT_TYPE_NOSNIFF", default=True) | ||
# Since we have disabled HSTS above we get a warning when running check --deploy | ||
# we are manually silencing this as we have verified apache is enforcing | ||
# https://docs.djangoproject.com/en/dev/ref/checks/#security | ||
|
@@ -79,9 +75,7 @@ | |
# ------------------------------------------------------------------------------ | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#default-from-email | ||
DEFAULT_FROM_EMAIL = env( | ||
"DJANGO_DEFAULT_FROM_EMAIL", default="gac-django <[email protected]>" | ||
) | ||
DEFAULT_FROM_EMAIL = env("DJANGO_DEFAULT_FROM_EMAIL", default="gac-django <[email protected]>") | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#server-email | ||
SERVER_EMAIL = env("DJANGO_SERVER_EMAIL", default=DEFAULT_FROM_EMAIL) | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#email-subject-prefix | ||
|
@@ -130,12 +124,7 @@ | |
"()": "maintenance_mode.logging.RequireNotMaintenanceMode503", | ||
}, | ||
}, | ||
"formatters": { | ||
"verbose": { | ||
"format": "%(levelname)s %(asctime)s %(module)s " | ||
"%(process)d %(thread)d %(message)s" | ||
} | ||
}, | ||
"formatters": {"verbose": {"format": "%(levelname)s %(asctime)s %(module)s " "%(process)d %(thread)d %(message)s"}}, | ||
"handlers": { | ||
"mail_admins": { | ||
"level": "ERROR", | ||
|
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
framework. | ||
""" | ||
|
||
import os | ||
import sys | ||
from pathlib import Path | ||
|
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,7 +1,2 @@ | ||
__version__ = "0.1.0" | ||
__version_info__ = tuple( | ||
[ | ||
int(num) if num.isdigit() else num | ||
for num in __version__.replace("-", ".", 1).split(".") | ||
] | ||
) | ||
__version_info__ = tuple([int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".")]) |
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
Oops, something went wrong.