Skip to content

Commit

Permalink
Update deps (#6)
Browse files Browse the repository at this point in the history
Reformat code
  • Loading branch information
andrew000 authored Aug 18, 2024
1 parent 2d00ec1 commit a4f50a3
Show file tree
Hide file tree
Showing 6 changed files with 345 additions and 311 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
- id: "check-json"

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.5.5
rev: v0.6.1
hooks:
- id: ruff
args: [ "--fix" ]
Expand Down
624 changes: 329 additions & 295 deletions poetry.lock

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ pytest = "8.3.2"
pytest-cov = "5.0.0"
pytest-html = "4.1.1"
pytest-mock = "3.14.0"
coverage = "7.6.0"
coverage = "7.6.1"

[tool.poetry.group.docs.dependencies]
sphinx = "7.4.7"
sphinx-rtd-theme = "2.0.0"
sphinx-autobuild = "2024.4.16"
furo = "2024.7.18"
furo = "2024.8.6"
pytz = "2024.1"

[tool.poetry.group.dev.dependencies]
black = "24.4.2"
black = "24.8.0"
isort = "5.13.2"
pre-commit = "3.7.1"
ruff = "0.5.5"
mypy = "1.11.0"
pre-commit = "3.8.0"
ruff = "0.6.1"
mypy = "1.11.1"
typing-extensions = "4.12.2"

[tool.poetry.scripts]
Expand Down
10 changes: 5 additions & 5 deletions tests/test_extract/test_cli_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ftl_extract.matcher import FluentKey, I18nMatcher


@pytest.fixture()
@pytest.fixture
def mock_fluent_key(tmp_path: Path) -> FluentKey:
mock = MagicMock(spec=FluentKey)
mock.code_path = tmp_path / "code"
Expand All @@ -36,7 +36,7 @@ def mock_fluent_key(tmp_path: Path) -> FluentKey:
return mock


@pytest.fixture()
@pytest.fixture
def setup_environment(tmp_path: Path) -> tuple[Path, Path]:
code_path = tmp_path / "code"
output_path = tmp_path / "output"
Expand All @@ -45,18 +45,18 @@ def setup_environment(tmp_path: Path) -> tuple[Path, Path]:
return code_path, output_path


@pytest.fixture()
@pytest.fixture
def runner() -> click.testing.CliRunner:
return click.testing.CliRunner()


@pytest.fixture()
@pytest.fixture
def mock_extract_function() -> patch:
with patch("ftl_extract.cli.extract") as mock:
yield mock


@pytest.fixture()
@pytest.fixture
def mock_leave_as_is() -> list:
return [
MagicMock(spec=fl_ast.Comment),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ftl_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from ftl_extract.ftl_importer import import_from_ftl, import_ftl_from_dir


@pytest.fixture()
@pytest.fixture
def mock_ftl_content() -> str:
return """
# Simple FTL file
Expand Down
6 changes: 3 additions & 3 deletions tests/test_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from ftl_extract.process.serializer import generate_ftl


@pytest.fixture()
@pytest.fixture
def single_fluent_key() -> list[FluentKey]:
return [
FluentKey(
Expand All @@ -21,7 +21,7 @@ def single_fluent_key() -> list[FluentKey]:
]


@pytest.fixture()
@pytest.fixture
def multiple_fluent_keys() -> list[FluentKey]:
return [
FluentKey(
Expand All @@ -43,7 +43,7 @@ def multiple_fluent_keys() -> list[FluentKey]:
]


@pytest.fixture()
@pytest.fixture
def empty_fluent_keys() -> list[FluentKey]:
return []

Expand Down

0 comments on commit a4f50a3

Please sign in to comment.