Skip to content

Commit beddd19

Browse files
committed
Format, lint and typecheck
1 parent 31dbd54 commit beddd19

File tree

5 files changed

+97
-102
lines changed

5 files changed

+97
-102
lines changed

python/fpml/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from .core.extract import resolve_template
21
from .core.exceptions import FPMLValidationError
2+
from .core.extract import resolve_template
33

4-
5-
__all__ = ["resolve_template", "FPMLValidationError"]
4+
__all__ = ["FPMLValidationError", "resolve_template"]

python/fpml/core/exceptions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
2-
from .types import Path
31
from .constants import root_node_key
2+
from .types import Path
3+
44

55
class FPMLValidationError(Exception):
66
def __init__(self, message: str, path: Path) -> None:
@@ -9,4 +9,3 @@ def __init__(self, message: str, path: Path) -> None:
99

1010
self.error_message = message
1111
self.error_path = path_str
12-

python/fpml/core/types.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from typing import Any, Callable, Optional, TypedDict, Union
22

3-
43
Resource = dict[str, Any]
54
Node = Any
65
DictNode = dict[str, Any]

python/pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,13 @@ requires = ["poetry-core>=2.0.0,<3.0.0"]
5252
build-backend = "poetry.core.masonry.api"
5353

5454
[tool.ruff]
55-
files = ["fpml", "tests"]
5655
target-version = "py39"
5756
line-length = 100
5857

58+
[tool.ruff.lint]
59+
select = ["I", "E", "F", "N", "B", "C4", "PT", "UP", "I001", "A", "RET", "TID251", "RUF", "SIM", "PYI", "T20", "PIE", "G", "ISC", "PL"]
60+
61+
5962
[tool.mypy]
6063
files = ["fpml", "tests"]
6164
ignore_missing_imports = true

0 commit comments

Comments
 (0)