aboutsummaryrefslogtreecommitdiffstats
path: root/backend (unfollow)
Commit message (Collapse)AuthorLines
2024-07-08Remove erroneous await from non-async set_response_tokenGravatar Joe Banks-1/+1
2024-07-08Stop using gunicorn and use uvicorn directly to run applicationGravatar Joe Banks-35/+2
2024-07-08Update to fix trailing whitespace detected by pre-commitGravatar Joe Banks-2/+2
2024-07-08Update lint workflow to use pre-commitGravatar Joe Banks-7/+9
2024-07-08Add pre-commit configurationGravatar Joe Banks-1/+148
2024-07-08Remove gcc from DockerfileGravatar Joe Banks-5/+0
2024-07-08Apply fixable lint settings with RuffGravatar Joe Banks-401/+387
2024-07-07Change linting config to RuffGravatar Joe Banks-97/+71
2024-07-06Update docker-compose with new uvicorn start commandGravatar Joe Banks-3/+3
2024-07-06Update lint workflow to 3.12Gravatar Joe Banks-2/+2
2024-07-06Update Dockerfile base to Python 3.12Gravatar Joe Banks-1/+1
2024-07-06Update all dependenciesGravatar Joe Banks-583/+677
2024-07-05Migration to official Sentry release CI action (#275)Gravatar Xithrius-3/+2
2024-07-03Add timezone question typeGravatar Joe Banks-2/+2
2024-04-15Update deployment namespace in CIGravatar Joe Banks-0/+1
2024-04-15Update deployment namespace in manifestGravatar Joe Banks-0/+1
2023-08-11Add tearDown feature to unittestsGravatar Janine vN-0/+2
2023-07-18Remove sentry-env (#241)Gravatar ChrisJL-2/+0
The sentry dsn is now in forms-backend-env instead
2022-09-18Fix Poetry 1.2 SupportGravatar Hassan Abouelela-36/+11
Poetry 1.2 introduced a regression which broke pip `--user` installs. These types of install were the main way we did installations in docker and CI, as they made it much more convenient to control the location, availability, and caching of packages. Poetry's team does not recognize this as a supported use case, so major changes were required to get everything working again. Most of the changes were consolidated into chrislovering/python-poetry-base for docker, and HassanAbouelela/setup-python for CI. Signed-off-by: Hassan Abouelela <[email protected]>
2022-08-09Bump spectree from 0.10.4 to 0.10.5Gravatar dependabot[bot]-5/+5
Bumps [spectree](https://github.com/0b01001001/spectree) from 0.10.4 to 0.10.5. - [Release notes](https://github.com/0b01001001/spectree/releases) - [Commits](https://github.com/0b01001001/spectree/compare/v0.10.4...v0.10.5) --- updated-dependencies: - dependency-name: spectree dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2022-08-09Bump sentry-sdk from 1.9.2 to 1.9.3Gravatar dependabot[bot]-8/+8
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.9.2 to 1.9.3. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/1.9.2...1.9.3) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2022-08-05Bump flake8 from 5.0.3 to 5.0.4Gravatar dependabot[bot]-20/+5
Bumps [flake8](https://github.com/pycqa/flake8) from 5.0.3 to 5.0.4. - [Release notes](https://github.com/pycqa/flake8/releases) - [Commits](https://github.com/pycqa/flake8/compare/5.0.3...5.0.4) --- updated-dependencies: - dependency-name: flake8 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2022-08-05Bump sentry-sdk from 1.9.0 to 1.9.2Gravatar dependabot[bot]-6/+24
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.9.0 to 1.9.2. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/1.9.0...1.9.2) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2022-08-04Update config.ymlGravatar Hassan Abouelela-1/+1
2022-08-04Remove HassanAbouelela From Code OwnersGravatar Hassan Abouelela-2/+2
2022-08-03Bump flake8 from 5.0.2 to 5.0.3Gravatar dependabot[bot]-5/+5
Bumps [flake8](https://github.com/pycqa/flake8) from 5.0.2 to 5.0.3. - [Release notes](https://github.com/pycqa/flake8/releases) - [Commits](https://github.com/pycqa/flake8/compare/5.0.2...5.0.3) --- updated-dependencies: - dependency-name: flake8 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2022-08-03Bump spectree from 0.10.3 to 0.10.4Gravatar dependabot[bot]-6/+6
Bumps [spectree](https://github.com/0b01001001/spectree) from 0.10.3 to 0.10.4. - [Release notes](https://github.com/0b01001001/spectree/releases) - [Commits](https://github.com/0b01001001/spectree/compare/v0.10.3...v0.10.4) --- updated-dependencies: - dependency-name: spectree dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2022-08-01Bump flake8 from 4.0.1 to 5.0.2Gravatar dependabot[bot]-21/+21
Bumps [flake8](https://github.com/pycqa/flake8) from 4.0.1 to 5.0.2. - [Release notes](https://github.com/pycqa/flake8/releases) - [Commits](https://github.com/pycqa/flake8/compare/4.0.1...5.0.2) --- updated-dependencies: - dependency-name: flake8 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
2022-08-01Bump flake8-annotations from 2.9.0 to 2.9.1Gravatar dependabot[bot]-6/+6
Bumps [flake8-annotations](https://github.com/sco1/flake8-annotations) from 2.9.0 to 2.9.1. - [Release notes](https://github.com/sco1/flake8-annotations/releases) - [Changelog](https://github.com/sco1/flake8-annotations/blob/main/CHANGELOG.md) - [Commits](https://github.com/sco1/flake8-annotations/compare/v2.9.0...v2.9.1) --- updated-dependencies: - dependency-name: flake8-annotations dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2022-07-28Bump python-dotenv from 0.19.2 to 0.20.0Gravatar dependabot[bot]-5/+5
Bumps [python-dotenv](https://github.com/theskumar/python-dotenv) from 0.19.2 to 0.20.0. - [Release notes](https://github.com/theskumar/python-dotenv/releases) - [Changelog](https://github.com/theskumar/python-dotenv/blob/master/CHANGELOG.md) - [Commits](https://github.com/theskumar/python-dotenv/compare/v0.19.2...v0.20.0) --- updated-dependencies: - dependency-name: python-dotenv dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2022-07-28Bump spectree from 0.7.6 to 0.10.3Gravatar dependabot[bot]-44/+8
Bumps [spectree](https://github.com/0b01001001/spectree) from 0.7.6 to 0.10.3. - [Release notes](https://github.com/0b01001001/spectree/releases) - [Commits](https://github.com/0b01001001/spectree/compare/v0.7.6...v0.10.3) --- updated-dependencies: - dependency-name: spectree dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2022-07-28Bump uvicorn from 0.17.6 to 0.18.2Gravatar dependabot[bot]-29/+29
Bumps [uvicorn](https://github.com/encode/uvicorn) from 0.17.6 to 0.18.2. - [Release notes](https://github.com/encode/uvicorn/releases) - [Changelog](https://github.com/encode/uvicorn/blob/master/CHANGELOG.md) - [Commits](https://github.com/encode/uvicorn/compare/0.17.6...0.18.2) --- updated-dependencies: - dependency-name: uvicorn dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2022-07-28Bump starlette from 0.19.0 to 0.20.4Gravatar dependabot[bot]-6/+6
Bumps [starlette](https://github.com/encode/starlette) from 0.19.0 to 0.20.4. - [Release notes](https://github.com/encode/starlette/releases) - [Changelog](https://github.com/encode/starlette/blob/master/docs/release-notes.md) - [Commits](https://github.com/encode/starlette/compare/0.19.0...0.20.4) --- updated-dependencies: - dependency-name: starlette dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2022-07-28Bump sentry-sdk from 1.7.2 to 1.9.0Gravatar dependabot[bot]-20/+127
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.7.2 to 1.9.0. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/1.7.2...1.9.0) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2022-07-20Fix ANN401 Linting FailuresGravatar Hassan Abouelela-5/+4
Signed-off-by: Hassan Abouelela <[email protected]>
2022-07-20Bump Motor Version To 3.0.0Gravatar Hassan Abouelela-279/+176
Signed-off-by: Hassan Abouelela <[email protected]>
2022-07-10Check If User Exists Before Sending WebhookGravatar Hassan Abouelela-5/+5
Signed-off-by: Hassan Abouelela <[email protected]>
2022-07-01Scope Variables In Unittest TemplateGravatar Hassan Abouelela-30/+37
Isolates the global variables in the unittest template into a function, to prevent them from being imported. Signed-off-by: Hassan Abouelela <[email protected]>
2022-07-01Handle Improper Output For UnittestsGravatar Hassan Abouelela-37/+84
The old testing code only checks the first character of the stdout, meaning that if a user succeeds in printing a 1 before the rest of the output, the testing code will consider that a pass and discard the rest. This change checks that the rest of the stdout is empty as expected. Signed-off-by: Hassan Abouelela <[email protected]>
2022-06-29Fix Broken Error MessageGravatar Hassan Abouelela-1/+1
Signed-off-by: Hassan Abouelela <[email protected]>
2022-06-28Update CODEOWNERSGravatar Joe Banks-1/+1
2022-06-25Ensure All Tests Are Prefixed By `test_`Gravatar Hassan Abouelela-1/+2
Signed-off-by: Hassan Abouelela <[email protected]>
2022-06-24Make Unittests AsyncGravatar Hassan Abouelela-7/+9
The codejam test suite uses async functions, which would be annoying to deal with in our current template. Switching to async makes that available to those who want it, without affecting those who don't. Signed-off-by: Hassan Abouelela <[email protected]>
2022-06-24Allow Setup For UnittestsGravatar Hassan Abouelela-6/+10
Adds the setup method as a special method for unittest question types. Additionally, a couple QoL fixes are included. I changed `unit` to `self` to clarify what it actually is, and I changed an `lstrip` to a `removeprefix` to avoid removing unintentional portions of the name (for instance `something` -> `omething`) Signed-off-by: Hassan Abouelela <[email protected]>
2022-06-17use Request to generate the stateGravatar Adrian Garcia Badaracco-1/+1
2022-06-17Update backend/middleware.pyGravatar Adrian Garcia Badaracco-1/+1
Co-authored-by: Hassan Abouelela <[email protected]>
2022-06-17Enable Login Form In ProductionGravatar Hassan Abouelela-16/+29
Adds a non-discoverable login form in all environments to make it easier to authenticate. Ideally, we'd have an actual login button, but this is an easy solution in the meantime. Signed-off-by: Hassan Abouelela <[email protected]>
2022-06-13fix lintersGravatar Adrian Garcia Badaracco-5/+3
2022-06-13Fix Error For Unauthorized Form AccessGravatar Hassan Abouelela-2/+6
Fixes an error where accessing a form without having the proper authorization would cause an unexpected state and raise a 500. Closes #175. Signed-off-by: Hassan Abouelela <[email protected]>
2022-06-13Bump httpx from 0.22.0 to 0.23.0Gravatar dependabot[bot]-28/+12
Bumps [httpx](https://github.com/encode/httpx) from 0.22.0 to 0.23.0. - [Release notes](https://github.com/encode/httpx/releases) - [Changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md) - [Commits](https://github.com/encode/httpx/compare/0.22.0...0.23.0) --- updated-dependencies: - dependency-name: httpx dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>