diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a629979..d73efb8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,9 +28,7 @@ jobs: python -m playwright install - name: Lint run: | - black --check . - mypy . - flake8 pytest_playwright tests + pre-commit run --all-files - name: Test if: ${{ matrix.os != 'ubuntu-latest' }} run: pytest --cov=pytest_playwright --cov-report xml diff --git a/.gitignore b/.gitignore index 70c4013..f7e0739 100644 --- a/.gitignore +++ b/.gitignore @@ -140,4 +140,4 @@ dmypy.json .vscode _repo_version.py -.DS_Store \ No newline at end of file +.DS_Store diff --git a/SECURITY.md b/SECURITY.md index f7b8998..a050f36 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -14,7 +14,7 @@ Instead, please report them to the Microsoft Security Response Center (MSRC) at If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). -You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc). +You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc). Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: @@ -38,4 +38,4 @@ We prefer all communications to be in English. Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). - \ No newline at end of file + diff --git a/tests/assets/django/settings.py b/tests/assets/django/settings.py index 8866704..9e88e8b 100644 --- a/tests/assets/django/settings.py +++ b/tests/assets/django/settings.py @@ -13,7 +13,7 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ["*"] # Application definition diff --git a/tests/assets/django/urls.py b/tests/assets/django/urls.py index 083932c..8fd2d42 100644 --- a/tests/assets/django/urls.py +++ b/tests/assets/django/urls.py @@ -1,5 +1,5 @@ from django.contrib import admin -from django.urls import path +from django.urls import path # type:ignore urlpatterns = [ path("admin/", admin.site.urls),