refactor: update project code

This commit is contained in:
2026-07-31 15:52:16 +03:00
parent cc811d2174
commit 9a9338cfdc
16 changed files with 90 additions and 60 deletions
+1
View File
@@ -0,0 +1 @@
import project_manager.common.logging_custom
+18 -9
View File
@@ -1,17 +1,26 @@
[tool.poetry]
[project]
name = "example"
version = "0.1.0"
description = ""
version = "0.1.0"
authors = []
requires-python = ">=3.14,<4.0"
dependencies = []
[tool.poetry.dependencies]
python = "^3.8"
[dependency-groups]
dev = [
"black (>=26.5.1,<27.0.0)",
"isort (>=8.0.1,<9.0.0)",
"pylint (>=4.0.6,<5.0.0)",
]
test = ["pytest (>=9.1.1,<10.0.0)"]
[tool.poetry.group.dev.dependencies]
black = "^23.1.0"
pytest = "^7.2.2"
isort = "^5.12.0"
[tool.poetry]
package-mode = false
requires-poetry = ">=2.0.0,<3.0.0"
[build-system]
requires = ["poetry-core"]
requires = ["poetry-core (>=2.0.0,<3.0.0)"]
build-backend = "poetry.core.masonry.api"
[tool.black]
target-version = ["py314"]
+17
View File
@@ -0,0 +1,17 @@
[tool.poetry]
name = "example"
version = "0.1.0"
description = ""
authors = []
[tool.poetry.dependencies]
python = "^3.8"
[tool.poetry.group.dev.dependencies]
black = "^23.1.0"
pytest = "^7.2.2"
isort = "^5.12.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
+2 -3
View File
@@ -1,7 +1,6 @@
# pylint:disable=redefined-outer-name,protected-access
import shutil
from pathlib import Path
from typing import Optional
import pytest
@@ -30,7 +29,7 @@ def entry(entry_detector: EntryDetector, entry_path: Path, tmp_path: Path):
@pytest.mark.parametrize("entry_path", [Path(__file__).parent / "python"])
def test_python_entry(entry: Optional[Entry], entry_detector: EntryDetector):
def test_python_entry(entry: Entry | None, entry_detector: EntryDetector):
assert entry is not None
assert {"setup", "build"} == entry._tasks.keys()
entry.run_task("setup")
@@ -40,7 +39,7 @@ def test_python_entry(entry: Optional[Entry], entry_detector: EntryDetector):
@pytest.mark.parametrize("entry_path", [Path(__file__).parent / "nodejs"])
def test_nodejs_entry(entry: Optional[Entry], entry_detector: EntryDetector):
def test_nodejs_entry(entry: Entry | None, entry_detector: EntryDetector):
assert entry is not None
assert {"setup", "build"} == entry._tasks.keys()
entry.run_task("setup")