Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ repos:
priority: 8

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.28
rev: 0.10.0
hooks:
- id: uv-lock
priority: 9

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.14
rev: v0.15.0
hooks:
- id: ruff-format
priority: 9
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ test = [
"dirty-equals~=0.11.0",
]
dev = [
"ruff~=0.15.0",
"mypy~=1.19.1",
"prek>=0.2.25,<0.4.0",
"prek~=0.3.2",
"sqlalchemy[mypy]~=2.0.44",
"types-jwcrypto~=1.5.0",
]
Expand Down
10 changes: 5 additions & 5 deletions syncmaster/schemas/v1/transfers/file_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@
)


class ORCCompression(str, Enum):
class ORCCompression(str, Enum): # noqa: UP042
NONE = "none"
SNAPPY = "snappy"
ZLIB = "zlib"
LZ4 = "lz4"


class ParquetCompression(str, Enum):
class ParquetCompression(str, Enum): # noqa: UP042
NONE = "none"
SNAPPY = "snappy"
GZIP = "gzip"
LZ4 = "lz4"


class JSONCompression(str, Enum):
class JSONCompression(str, Enum): # noqa: UP042
NONE = "none"
BZIP2 = "bzip2"
GZIP = "gzip"
Expand All @@ -40,7 +40,7 @@ class JSONCompression(str, Enum):
DEFLATE = "deflate"


class CSVCompression(str, Enum):
class CSVCompression(str, Enum): # noqa: UP042
NONE = "none"
BZIP2 = "bzip2"
GZIP = "gzip"
Expand All @@ -49,7 +49,7 @@ class CSVCompression(str, Enum):
DEFLATE = "deflate"


class XMLCompression(str, Enum):
class XMLCompression(str, Enum): # noqa: UP042
NONE = "none"
BZIP2 = "bzip2"
GZIP = "gzip"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def create_group_member(
session: AsyncSession,
access_token_factory,
) -> MockUser:
role_name = username.split("_")[-1]
role_name = username.rsplit("_", maxsplit=1)[-1]

if role_name == "maintainer":
role = UserTestRoles.Maintainer
Expand Down
Loading