-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests/ci #16
Merged
Tests/ci #16
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
81dd3ba
flake8
Vladless 59b63c9
flake8
Vladless a51a14a
flake8
Vladless 9a8a0d5
flake8
Vladless 649c205
flake8
Vladless 3cf333c
flake8
Vladless 91a3d5d
flake8
Vladless 4ecdd6a
flake8
Vladless 84b4415
flake8
Vladless 9d786d6
flake8
Vladless bbc6826
flake8
Vladless 499e37c
flake8
Vladless b77262a
fix flake8
Vladless d85fdf9
mypy
Vladless f510cc0
mypy
Vladless 774d264
add django-stubs
Vladless 9f93c9e
add django-stubs
Vladless ec3fa68
add django-stubs
Vladless bf672b7
add django-stubs
Vladless 3a3f881
add django-stubs
Vladless 87d27f1
add django-stubs
Vladless 68e249d
add django-stubs
Vladless 3d04d0d
add django-stubs
Vladless 1598118
add django-stubs
Vladless 8d0555a
add django-stubs
Vladless 1cccefe
add django-stubs
Vladless e2851f8
add django-stubs
Vladless ba89f06
mypy work
Vladless b511228
mypy work
Vladless 5ed9c27
fix flake
Vladless 6ea7e60
fix Dockerfile
Vladless File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: flake8 Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
flake8-lint: | ||
runs-on: ubuntu-latest | ||
name: Проверка flake8 | ||
steps: | ||
- name: Check out source repository | ||
uses: actions/checkout@v3 | ||
- name: Set up Python environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
- name: flake8 Lint | ||
uses: py-actions/flake8@v2 | ||
|
||
run_mypy: | ||
runs-on: ubuntu-latest | ||
name: Mypy | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Run Mypy | ||
uses: jashparekh/mypy-action@v2 | ||
with: | ||
requirements: django-stubs django |
12 changes: 2 additions & 10 deletions
12
adaptive_hockey_federation/adaptive_hockey_federation/asgi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
""" | ||
ASGI config for adaptive_hockey_federation project. | ||
|
||
It exposes the ASGI callable as a module-level variable named ``application``. | ||
|
||
For more information on this file, see | ||
https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/ | ||
""" | ||
|
||
import os | ||
|
||
from django.core.asgi import get_asgi_application | ||
|
||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'adaptive_hockey_federation.settings') | ||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', | ||
'adaptive_hockey_federation.settings') | ||
|
||
application = get_asgi_application() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 2 additions & 10 deletions
12
adaptive_hockey_federation/adaptive_hockey_federation/wsgi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
""" | ||
WSGI config for adaptive_hockey_federation project. | ||
|
||
It exposes the WSGI callable as a module-level variable named ``application``. | ||
|
||
For more information on this file, see | ||
https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/ | ||
""" | ||
|
||
import os | ||
|
||
from django.core.wsgi import get_wsgi_application | ||
|
||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'adaptive_hockey_federation.settings') | ||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', | ||
'adaptive_hockey_federation.settings') | ||
|
||
application = get_wsgi_application() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from django.contrib import admin | ||
from django.contrib import admin # noqa | ||
|
||
# Register your models here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from django.db import models | ||
from django.db import models # noqa | ||
|
||
# Create your models here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from django.contrib import admin | ||
from django.contrib import admin # noqa | ||
|
||
# Register your models here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from django.db import models | ||
from django.db import models # noqa | ||
|
||
# Create your models here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from django.shortcuts import render | ||
from django.shortcuts import render # noqa | ||
|
||
# Create your views here. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ readme = "README.md" | |
python = "^3.11" | ||
django = "^4.2.6" | ||
gunicorn = "^21.2.0" | ||
django-stubs = "^4.2.4" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. это зависимость тестовая, нужно перенести в группу test |
||
|
||
[tool.poetry.group.dev.dependencies] | ||
isort = "^5.12.0" | ||
|
@@ -27,3 +28,11 @@ include_trailing_comma = true | |
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
|
||
[tool.mypy] | ||
plugins = ["mypy_django_plugin.main"] | ||
mypy_path = ./adaptive_hockey_federation | ||
|
||
[tool.django-stubs] | ||
django_settings_module = "adaptive_hockey_federation.settings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[flake8] | ||
ignore = | ||
W503, | ||
F811 | ||
exclude = | ||
tests/, | ||
*/migrations/, | ||
venv/, | ||
env/ | ||
per-file-ignores = | ||
*/settings.py:E501 | ||
max-complexity = 10 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Мы проекте будем переносить строки другим способом
Это относится ко всем подобным изменениям