refactor: update depdendency versions
This commit is contained in:
@@ -5,7 +5,7 @@ conditions = ["file(pyproject.toml)"]
|
||||
conditions = [
|
||||
"file(pyproject.toml) | get(build-system.build-backend) | equal(poetry.core.masonry.api)",
|
||||
]
|
||||
variables.python_version = "file(pyproject.toml) | get(tool.poetry.dependencies.python) | search((\\d+.\\d+))"
|
||||
variables.python_version = "file(pyproject.toml) | get(project.requires-python) | search((\\d+.\\d+))"
|
||||
commands = [
|
||||
"poetry env use {python_version}",
|
||||
"poetry install",
|
||||
@@ -29,6 +29,10 @@ commands = ["poetry publish -r {python_repository}"]
|
||||
conditions = ["file(.venv/bin/pytest)"]
|
||||
commands = [".venv/bin/python -m pytest"]
|
||||
|
||||
[presets.python.tasks.lint.pylint]
|
||||
conditions = ["file(.venv/bin/pylint)"]
|
||||
commands = [".venv/bin/pylint ./"]
|
||||
|
||||
[presets.python.tasks.lint.isort]
|
||||
conditions = ["file(.venv/bin/isort)"]
|
||||
commands = [".venv/bin/isort --profile black --check-only ./"]
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
from typing import Dict, List, Optional
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
__all__ = (
|
||||
@@ -10,16 +8,16 @@ __all__ = (
|
||||
|
||||
|
||||
class TaskPreset(BaseModel):
|
||||
conditions: Optional[List[str]]
|
||||
variables: Optional[Dict[str, str]]
|
||||
commands: List[str]
|
||||
conditions: list[str] | None = None
|
||||
variables: dict[str, str] | None = None
|
||||
commands: list[str]
|
||||
|
||||
|
||||
class EntryPreset(BaseModel):
|
||||
conditions: Optional[List[str]]
|
||||
tasks: Dict[str, Dict[str, TaskPreset]]
|
||||
conditions: list[str] | None = None
|
||||
tasks: dict[str, dict[str, TaskPreset]]
|
||||
|
||||
|
||||
class Preset(BaseModel):
|
||||
skip: Optional[bool]
|
||||
presets: Dict[str, EntryPreset]
|
||||
skip: bool | None = None
|
||||
presets: dict[str, EntryPreset]
|
||||
|
||||
Reference in New Issue
Block a user