aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/version.py (unfollow)
Commit message (Collapse)AuthorLines
2022-06-07Use new NsJail instance for each test in NsJailArgsTestsGravatar Mark-12/+11
2022-06-06Test NsJail args are set and used when passed to __init__Gravatar Mark-0/+37
2022-06-06Fix NsJail patch for API testsGravatar Mark-1/+1
2022-06-06Rename DEBUG env var to SNEKBOX_DEBUGGravatar Mark-3/+3
Use a more unique name to avoid accidentally using the value of a similar env var that was set for an unrelated reason.
2022-06-06Remove env var support for NsJail argsGravatar Mark-10/+2
The values can effectively be set via the Gunicorn config instead.
2022-06-06Accept NsJail arguments via the WSGI app (SnekAPI)Gravatar Mark-5/+13
2022-06-04Add config path & output size args to NsJail classGravatar Mark-22/+27
2022-06-04Fix force-exclude option for blackGravatar Mark-1/+1
It should be a string, not a list.
2022-06-04Remove nsjail log blacklistGravatar Mark-5/+0
The blacklisted error no longer appears with the default config since the uid and gid are set.
2022-06-04CI: use GH's Ubuntu 22.04 runner instead of the self-hosted oneGravatar Mark-10/+2
2022-06-04Docker: never pull image when using Docker ComposeGravatar Mark-0/+1
Force the image to be built if it doesn't exist.
2022-06-03Add black and isortGravatar MarkKoz-107/+111
2022-06-03Update pre-commit hooks and flake8 pluginsGravatar MarkKoz-12/+11
2022-06-01Import the WSGI app via the config during testsGravatar MarkKoz-9/+7
Relying more on gunicorn and its config parsing will avoid discrepancies between the test and production environments.
2022-06-01Ignore deprecation warning from Sentry's Falcon integrationGravatar MarkKoz-5/+12
2022-06-01Fix WSGI app not being calledGravatar MarkKoz-1/+1
2022-06-01CI: fix version step outputGravatar MarkKoz-2/+2
2022-06-01CI: use version as release tag in Sentry actionGravatar MarkKoz-2/+13
2022-06-01CI: print the version to help with debuggingGravatar MarkKoz-0/+1
2022-06-01Remove GIT_SHA from README.mdGravatar MarkKoz-1/+0
The env var is no longer used anywhere.
2022-06-01CI: fetch git history to fix version scriptGravatar MarkKoz-1/+6
The last part of the version is the commit count, which relies on the repo's commit history.
2022-06-01Fix commit count part of version being off by 1Gravatar MarkKoz-1/+2
2022-06-01Fix typo in Dockerfile commentGravatar Mark-1/+1
Co-authored-by: Matteo Bertucci <[email protected]>
2022-05-31Fix typo in project descriptionGravatar MarkKoz-1/+1
2022-05-31CI: fix container entrypoint when running testsGravatar MarkKoz-1/+2
2022-05-31CI: tag all images with versionGravatar MarkKoz-2/+6
2022-05-31Docker: install package in image and use version to tag itGravatar MarkKoz-37/+45
2022-05-31Fix package discovery for setuptoolsGravatar MarkKoz-2/+2
Subpackages weren't being included.
2022-05-31Automatically determine the package versionGravatar MarkKoz-3/+47
Use the HEAD commit's date as the package's version. Append the number of commits made on the same date as HEAD to ensure multiple releases on the same date still have unique versions.
2022-05-30Add __all__ to all modulesGravatar MarkKoz-4/+16
2022-05-30Specify wsgi_app in Gunicorn configGravatar MarkKoz-2/+3
2022-05-30Remove redundant module for creating the WSGI appGravatar MarkKoz-6/+3
2022-05-30Make Sentry SDK and gunicorn optional dependenciesGravatar MarkKoz-8/+14
Falcon provides a WSGI app which can be used by any server, not just gunicorn. Thus, make gunicorn optional in case the user wants to use a different server. There shouldn't be any import errors since the class is now in an isolated module. The only time that module is imported is when gunicorn loads its config. Sentry is there for Python Discord mainly, so this dependency shouldn't be imposed on others.
2022-05-30Move logging code to separate utility modulesGravatar MarkKoz-49/+72
2022-05-30Move coverage config into pyproject.tomlGravatar MarkKoz-13/+16
2022-05-30Tweak Makefile formatGravatar MarkKoz-2/+1
2022-05-30Add a pyproject.tomlGravatar MarkKoz-14/+52
2022-05-29Rebuild the container before running the test commandGravatar MarkKoz-0/+1
Ensure the dependencies are up-to-date in the dev container.
2022-05-29Fix 415 error response titleGravatar MarkKoz-2/+2
The update to Falcon v3 changed its capitalisation.
2022-05-29Fix paths to files in CONTRIBUTING.mdGravatar MarkKoz-2/+2
2022-05-29Fix deprecation warning from FalconGravatar MarkKoz-1/+1
The update to v3 deprecated falcon.API in favour of falcon.App.
2022-05-29Remove redundant numpy install in test commandGravatar MarkKoz-1/+1
It's already installed by the container since Docker Compose is configured with the DEV arg.
2022-05-29Deps: use pip-tools instead of PipenvGravatar MarkKoz-453/+217
Pipenv was limited to only "normal" and "dev" dependencies. pip-tools is more flexible, since each requirements file can be constrained by more than one other requirements file. This means CI can choose to only install coverage deps in the test job and linting deps in the lint job, but these dependencies will still be constrained by each other and by other requirements, so a developer will be able to install both sets simultaneously without conflicts. Use a Makefile to make up for the loss of Pipenv's scripts functionality.
2022-05-28CI: only show pre-commit log if it existsGravatar MarkKoz-1/+5
2022-05-28Deps: specify flake8 deps via pre-commitGravatar MarkKoz-335/+164
2022-03-12Replace ASCII diagram with mermaid sequence diagramGravatar Mark-14/+15
2022-03-05Move community health files to .github dirGravatar MarkKoz-4/+5
Merge DEVELOPING.md into CONTRIBUTING.md
2022-02-13CI: define KUBECONFIG secret as required in build workflowGravatar MarkKoz-0/+3
2022-02-13CI: pass KUBECONFIG secret to build workflowGravatar MarkKoz-0/+2
Reusable workflows don't have access to secrets, even in this case where the workflow is local.
2022-02-13CI: remove unnecessary shell option from scriptGravatar MarkKoz-1/+1
There are no pipes the in script, so the presence of -o pipefail may confuse readers.