Refactor pyproject.toml and enhance DockerComposeManager with type hints
- Updated dependencies and added Ruff configuration for linting in pyproject.toml. - Improved type hinting in DockerComposeManager methods for better clarity. - Created an empty __init__.py file in tests directory.
This commit is contained in:
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
@ -1,10 +1,15 @@
|
||||
from pathlib import Path
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import pytest
|
||||
import yaml
|
||||
|
||||
from compose import DockerComposeManager
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_create_and_save_service(tmp_path: Path) -> None:
|
||||
compose_file: Path = tmp_path / "docker-compose.yml"
|
||||
|
Reference in New Issue
Block a user