Skip to content

Commit

Permalink
v0.1.1
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
Athroniaeth authored Jan 27, 2024
2 parents 95d214d + efce2a7 commit ce95cfe
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: pip install poetry

- name: Install Dependencies
run: poetry install
run: poetry install --with dev

- name: Run Mypy (Static Type Checking)
run: poetry run mypy src
Expand All @@ -50,7 +50,7 @@ jobs:
run: pip install poetry

- name: Install Dependencies
run: poetry install
run: poetry install --with dev

- name: Run Ruff (Linting)
run: poetry run ruff check
Expand All @@ -68,7 +68,7 @@ jobs:
run: pip install poetry

- name: Install Dependencies
run: poetry install
run: poetry install --with dev

- name: Run Bandit (Security Analysis)
run: poetry run bandit -c pyproject.toml -r src
Expand All @@ -86,7 +86,7 @@ jobs:
run: pip install poetry

- name: Install Dependencies
run: poetry install
run: poetry install --with dev

- name: Run Pytest (Tests and Coverage)
run: poetry run pytest
Expand All @@ -105,7 +105,7 @@ jobs:
run: pip install poetry

- name: Install Dependencies
run: poetry install
run: poetry install --with dev

- name: Run Pytest (Tests)
run: poetry run coverage run --source=src -m pytest
Expand Down
7 changes: 6 additions & 1 deletion src/pytest_lock/fixtures/lock.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import logging
import sys
import time
from abc import ABC
from datetime import datetime
from typing import Any, Callable, Optional, Tuple

import pytest
from typing_extensions import override

from pytest_lock.fixtures.base import FixtureBase
from pytest_lock.models.cache.lock import Lock

if sys.version_info >= (3, 12):
from typing import override
else:
from typing_extensions import override


def is_valid_date(date_string: str, date_format: str = "%Y/%m/%d") -> bool:
"""
Expand Down
8 changes: 6 additions & 2 deletions src/pytest_lock/fixtures/reversed.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import sys
import warnings
from abc import ABC
from typing import Any, Callable, Tuple

from typing_extensions import override

from pytest_lock.fixtures.base import FixtureBase

if sys.version_info >= (3, 12):
from typing import override
else:
from typing_extensions import override


class MixinReversed(FixtureBase, ABC):
"""Mixin for lock.reversed fixture."""
Expand Down
8 changes: 6 additions & 2 deletions src/pytest_lock/parser_file/json.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import json
import sys
from pathlib import Path

from typing_extensions import override

from pytest_lock.models.cache.file import FileCache
from pytest_lock.parser_file.base import ParserFile

if sys.version_info >= (3, 12):
from typing import override
else:
from typing_extensions import override


class ParserFileJson(ParserFile):
"""
Expand Down

0 comments on commit ce95cfe

Please sign in to comment.