Граф коммитов

8 Коммитов

Автор SHA1 Сообщение Дата
Steve Jalim a8ed6ae9c4
Add pre-commit hook for including the MPLv2 in all source code files (#10617)
* 10614: Add pre-commit hook for including the MPLv2

Adds to Python, JS, SCSS, Jinja HTML, Fluent templates and shell scripts

Note that the order of application of the hooks is important - we want to add a missing license before we check the formatting of files

* 10614: Update MPLv2 comments on all templates to match standard format produced by pre-commit hook

* Updates existing MPLv2 text to use a https URL
* Amend a handful of Fluent templates that used a token instead of the string "Mozilla" - this standardised things; translation was not used or needed
* Add missing MPLv2 where needed
* Update three tests that regressed with these changes, above

* 10614: Update pre-commit config to not add MPL to JS libraries; Remove MPL from the four files which should not have had it
2021-10-22 13:09:44 +01:00
Steve Jalim ab38b080ab
10570: Add isort support to project (#10573)
* Update requirements to avoid requests version clash

* 10570: Add isort to project

* 10570: Add isort config to project

* 10570: Add isort as a test run/CI step

* 10570: Add isort to pre-commit config

* 10570: Update isort config to allow tests/pages.py to be first-party, which is more appropriate

* 10570: Apply isort to entire codebase, using project config

* 10570: Explicitly include lib/ as a first-party import

This behaviour is already implicit in the current config, but making it explicit, partly to protect against a future change. Also makes it easier to grok what will happen to various bedrock-codebase imports

* 10570: Update isort config to stack Django imports above third-party ones

* 10570: [nit-fix] Update run-tests.sh to call isort with the same syntax pattern as we call black
2021-10-11 18:08:58 +01:00
Rob Hudson 31943fea75 Black format all Python files 2021-09-30 16:03:35 -04:00
Alan 08d83f6999 Revert wsgi keep alive as well
it's one of the last remaining items different between our known good state and current wild cpu usage
2021-04-19 10:57:52 -04:00
Alan ba2738eb3f
removing gevent (#10081) 2021-04-16 14:31:55 -07:00
Paul McLanahan f3b81c8596 Remove Prometheus metrics gathering 2021-04-15 16:10:39 -04:00
Alan 7c3c0d3e0d
Switching to allowing gevent workers with gunicorn (#10020)
Borrowing settings from https://github.com/mdn/developer-portal/blob/master/configs/gunicorn.py
Adding gevent as an optional worker
Adding a dynamic worker count based on the math that gunicorn recommends, but if multiprocess fails failling back
2021-03-18 07:03:11 -07:00
Paul McLanahan 9d6ddb7c07 Enable multiprocess mode for prometheus metrics gathering 2020-11-20 18:12:08 -05:00