fix ci and pyproject

This commit is contained in:
2025-10-22 13:58:49 +03:00
parent 4f5481fa70
commit ec42e63d80
6 changed files with 33 additions and 20 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install mypy pip install uv
pip install . uv sync --group typecheckers
- name: Run type checker - name: Run type checker
run: mypy -p argenta run: mypy -p argenta
+2 -1
View File
@@ -24,7 +24,8 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install ruff pip install uv
uv sync --group linters
- name: Run linter - name: Run linter
run: ruff check ./src run: ruff check ./src
+2 -2
View File
@@ -25,7 +25,7 @@ jobs:
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install uv pip install uv
uv sync --group dev uv sync --group tests
- name: Run tests - name: Run tests
run: uv run python -m pytest tests run: pytest tests
+4
View File
@@ -0,0 +1,4 @@
.. _root_api_orchestrator_argspace:
ArgSpace
==========
+3 -2
View File
@@ -34,7 +34,7 @@ Orchestrator
----- -----
Основные методы Основные методы
-------------- ----------------
.. py:method:: start_polling(self, app: App) -> None .. py:method:: start_polling(self, app: App) -> None
@@ -49,7 +49,7 @@ Orchestrator
----- -----
Назначение и использование Назначение и использование
-------------------------- ----------------------------
``Orchestrator`` абстрагирует от вас всю сложность, связанную с настройкой внедрения зависимостей и парсингом стартовых аргументов. Типичный сценарий использования ``Argenta`` выглядит следующим образом: ``Orchestrator`` абстрагирует от вас всю сложность, связанную с настройкой внедрения зависимостей и парсингом стартовых аргументов. Типичный сценарий использования ``Argenta`` выглядит следующим образом:
@@ -70,3 +70,4 @@ Orchestrator
argparser argparser
arguments arguments
argspace
+20 -13
View File
@@ -13,6 +13,26 @@ dependencies = [
"dishka>=1.7.2", "dishka>=1.7.2",
] ]
[dependency-groups]
linters = [
"isort>=7.0.0",
"ruff>=0.12.12",
"wemake-python-styleguide>=0.17.0",
]
typecheckers = [
"mypy>=1.14.1",
]
docs = [
"shibuya>=2025.9.25",
"sphinx>=8.2.3",
"sphinx-autobuild>=2025.8.25",
"sphinx-intl>=2.3.2",
]
tests = [
"pyfakefs>=5.5.0",
"pytest>=8.3.2",
]
[tool.ruff] [tool.ruff]
exclude = [ exclude = [
".idea", ".idea",
@@ -32,16 +52,3 @@ disable_error_code = "import-untyped"
[build-system] [build-system]
requires = ["hatchling"] requires = ["hatchling"]
build-backend = "hatchling.build" build-backend = "hatchling.build"
[dependency-groups]
dev = [
"isort>=7.0.0",
"mypy>=1.14.1",
"pytest>=8.3.2",
"ruff>=0.12.12",
"shibuya>=2025.9.25",
"sphinx>=8.2.3",
"sphinx-autobuild>=2025.8.25",
"sphinx-intl>=2.3.2",
"wemake-python-styleguide>=0.17.0",
]