fix(pre-commit): fix mypy error (#26)

This commit is contained in:
Kumar Aditya 2020-11-22 05:41:58 +05:30 коммит произвёл GitHub
Родитель 88a4079caa
Коммит 727a5f73d1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 6 добавлений и 8 удалений

4
.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

2
.gitignore поставляемый
Просмотреть файл

@ -140,4 +140,4 @@ dmypy.json
.vscode
_repo_version.py
.DS_Store
.DS_Store

Просмотреть файл

@ -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).
<!-- END MICROSOFT SECURITY.MD BLOCK -->
<!-- END MICROSOFT SECURITY.MD BLOCK -->

Просмотреть файл

@ -13,7 +13,7 @@ SECRET_KEY = "123"
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ["*"]
# Application definition

Просмотреть файл

@ -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),