Skip to content

Commit b388e9a

Browse files
authored
chore: use depedency-groups in pyproject.toml (#212)
1 parent 6113e75 commit b388e9a

File tree

5 files changed

+976
-705
lines changed

5 files changed

+976
-705
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ classifiers = [
3131
]
3232
dependencies = []
3333

34-
[tool.uv]
35-
dev-dependencies = [
34+
[dependency-groups]
35+
dev = [
3636
"atomicwrites==1.4.1",
3737
"attrs==23.2.0",
3838
"coverage==7.4.4",

python_multipart/decoders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def write(self, data: bytes) -> int:
6262

6363
# Prepend any cache info to our data.
6464
if len(self.cache) > 0:
65-
data = self.cache + data
65+
data = bytes(self.cache) + data
6666

6767
# Slice off a string that's a multiple of 4.
6868
decode_len = (len(data) // 4) * 4

scripts/check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -x
44

55
SOURCE_FILES="python_multipart multipart tests"
66

7-
uvx ruff format --check --diff $SOURCE_FILES
8-
uvx ruff check $SOURCE_FILES
7+
uv run ruff format --check --diff $SOURCE_FILES
8+
uv run ruff check $SOURCE_FILES
99
uv run mypy $SOURCE_FILES
1010
uvx check-sdist
1111
uv lock

scripts/lint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
set -x
44

5-
uvx ruff check --fix
6-
uvx ruff format
5+
uv run ruff check --fix
6+
uv run ruff format

0 commit comments

Comments
 (0)