chore [P-0]: сhore
This commit is contained in:
1 parent
d13d02fadb
commit
2e48e08b83
389 files changed
+17779
-11492
No files matched your search
Regular → Executable
+90
-13
@@ -1,12 +1,12 @@
|
||||
[project]
|
||||
name = "portal"
|
||||
version = "0.1.0"
|
||||
version = "1.0.0"
|
||||
description = ""
|
||||
authors = [
|
||||
{name = "Your Name",email = "you@example.com"}
|
||||
]
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10,<4.0"
|
||||
requires-python = ">=3.13,<4.0"
|
||||
dependencies = [
|
||||
"anyio (>=4.8.0,<5.0.0)",
|
||||
"asgiref (>=3.8.1,<4.0.0)",
|
||||
@@ -115,23 +115,100 @@ dependencies = [
|
||||
|
||||
[tool.poetry]
|
||||
package-mode = false
|
||||
|
||||
[tool.poetry.group.dev]
|
||||
optional = true
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
black = "^25.1.0"
|
||||
pylint = "^3.3.4"
|
||||
pylint-django = "^2.6.1"
|
||||
isort = "^6.0.1"
|
||||
|
||||
mypy = "^2.3.1"
|
||||
bandit = "^1.9.4"
|
||||
django-stubs = "^6.1.1"
|
||||
djangorestframework-stubs = "^3.18.1"
|
||||
ruff = "^0.16.9"
|
||||
pip-audit = "^2.10.1"
|
||||
pytest = "^9.1.1"
|
||||
pytest-django = "^4.14.0"
|
||||
pytest-cov = "^7.1.0"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
||||
|
||||
[tool.black]
|
||||
line-length = 100
|
||||
target-version = ['py310']
|
||||
extend-exclude = '''
|
||||
(
|
||||
migrations # Django DB migrations
|
||||
)
|
||||
'''
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 130
|
||||
extend-exclude = ["**/migrations/*.py"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "W", "I", "N", "UP", "B", "C4", "SIM"]
|
||||
|
||||
|
||||
[tool.mypy]
|
||||
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
|
||||
exclude = ['/migrations/']
|
||||
explicit_package_bases = true
|
||||
ignore_missing_imports = true
|
||||
disallow_untyped_defs = false
|
||||
disallow_untyped_calls = false
|
||||
disallow_any_generics = false
|
||||
warn_return_any = false
|
||||
warn_unused_ignores = false
|
||||
check_untyped_defs = true
|
||||
no_implicit_optional = true
|
||||
|
||||
disable_error_code = [
|
||||
"misc",
|
||||
"attr-defined",
|
||||
]
|
||||
|
||||
|
||||
[tool.django-stubs]
|
||||
django_settings_module = "portal.settings"
|
||||
strict_settings = true
|
||||
strict_model_abstract_attrs = true
|
||||
|
||||
[tool.bandit]
|
||||
exclude_dirs = ["tests", "migrations",".venv","venv"]
|
||||
skips = ["B101"]
|
||||
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
DJANGO_SETTINGS_MODULE = "portal.settings"
|
||||
python_files = ["test_*.py", "*_test.py", "tests.py"]
|
||||
addopts = "-ra --strict-markers"
|
||||
|
||||
[tool.coverage.run]
|
||||
source = ["."]
|
||||
branch = true
|
||||
omit = [
|
||||
"*/migrations/*",
|
||||
"*/tests.py",
|
||||
"*/test_*.py",
|
||||
"*/__init__.py",
|
||||
"*/apps.py",
|
||||
"*/admin.py",
|
||||
"manage.py",
|
||||
"portal/settings*",
|
||||
"portal/asgi.py",
|
||||
"portal/wsgi.py",
|
||||
"*/docs/*",
|
||||
"*/.pytest_cache/*",
|
||||
"*/.mypy_cache/*",
|
||||
"*/.ruff_cache/*",
|
||||
"*/static/*",
|
||||
"*/media/*",
|
||||
"*/templates/*",
|
||||
]
|
||||
|
||||
[tool.coverage.report]
|
||||
skip_empty = true
|
||||
exclude_lines = [
|
||||
"pragma: no cover",
|
||||
"def __repr__",
|
||||
"raise NotImplementedError",
|
||||
"if __name__ == .__main__.:",
|
||||
"if TYPE_CHECKING:",
|
||||
]
|
||||
Reference in new issue
Block a user