aboutsummaryrefslogtreecommitdiffstats
path: root/manage.py (unfollow)
Commit message (Collapse)AuthorLines
2020-03-04CI: run pre-commit hooks in CIGravatar MarkKoz-2/+24
This also means flake8 will output to stdout in CI now. It didn't before because it output to an XML format for publishing. Pre-commit creates its own environment in which it installs hooks. To speed up runs, the pipeline will cache this for use with future jobs. The cache will update if .pre-commit-config.yaml changes. The flake8 pre-commit hook invokes flake8 via `pipenv run flake8`. It's normally useful to use pipenv here cause it ensures flake8 is invoked within the context of the venv. However, in CI, there is no venv - dependencies are installed directly to the system site-packages. `pipenv run` does not work in such case because it tries to create a new venv if one doesn't exist (it doesn't consider the system interpreter to be a venv). This workaround (okay, it's a hack) creates an executable shell script which replaces the original pipenv binary. The shell script simply ignores the first argument (i.e. ignores `run` in `pipenv run`) and executes the rest of the arguments as a command. It essentially makes `pipenv run flake8` equivalent to just having ran `flake8`. When pre-commit executes pipenv, the aforementioned script is what will run.
2020-03-04Add more pre-commit hooksGravatar MarkKoz-35/+44
Hooks added: * check-merge-conflict - checks for files with merge conflict strings * check-toml - attempts to load all toml files to verify syntax * check-yaml - attempts to load all yaml files to verify syntax * end-of-file-fixer - ensures files end in a newline and only a newline * mixed-line-ending - replaces mixed line endings with LF * trailing-whitespace - trims trailing whitespace * python-check-blanket-noqa - enforces that noqa annotations always occur with specific codes Changes made to comply with new hooks: * Remove trailing whitespaces * Remove some useless noqa annotations * Specify errors for noqa annotations * Add missing newlines at end of files See: python-discord/organisation#138
2020-03-04Update dev dependenciesGravatar MarkKoz-102/+87
2020-02-23Install wiki from PyPIGravatar MarkKoz-19/+26
2020-02-21Add sentry SDK init to settings.pyGravatar Joseph Banks-1/+11
2020-02-21Add sentry_sdk dependencyGravatar Joseph Banks-135/+156
2020-02-20Pad logos so they horizontally alignGravatar Joseph Banks-0/+0
2020-02-20Add sentry logo to sponsorsGravatar Joseph Banks-0/+3
2020-02-17Change MEDIA_ROOT to /site/mediaGravatar scragly-1/+1
2020-02-16Fix #329 missing manage.py & Django logsGravatar MarkKoz-0/+1
Fixed by allocating a pseudo-tty to the web service in Docker Compose.
2020-02-16Switch the code jam banner for the stream.Gravatar Leon Sandøy-4/+8
With the code jam over, we don't want a code jam banner on our front page. This commit replaces it with the Code Jam Judge Stream.
2020-02-12Add vscode project folder to gitignoreGravatar Sebastiaan Zeeff-0/+3
I've added the vscode project settings folder, `.vscode`, to our gitignore file because it's a popular editor and we don't want settings folders being committed to the repository.
2020-02-08Fix migration dependencyGravatar MarkKoz-2/+2
2020-02-06Update resources reference in head navbar.Gravatar scragly-2/+2
Due to the tweak in the wiki page structure, the Tools page is now under resources, and Learning Resources is now just Resources.
2020-02-03Improve robustness with regard to orderingGravatar bendiller-2/+2
2020-02-03Add second reminder to list tests, implement `test_filter_field` testGravatar bendiller-6/+24
2020-02-03Improve test failure clarity (reduce unhandled exceptions in assertions)Gravatar bendiller-1/+4
2020-02-03Improve test failure clarity (reduce unhandled exceptions in assertions)Gravatar bendiller-2/+2
2020-02-03Fix unnecessary kwarg syntaxGravatar bendiller-2/+2
2020-02-03Unbleach WikiGravatar scragly-19/+1
Disables the sanitisation of HTML in wiki articles.
2020-02-02Update CODEOWNERSGravatar Joseph-1/+1
2020-02-02Add ReminderListTestsGravatar bendiller-0/+37