Skip to content

Commit

Permalink
Update ruff & mypy (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex authored Nov 24, 2024
1 parent e53b541 commit 170e604
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 52 deletions.
8 changes: 6 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ def rename(session: nox.Session, editable: bool) -> None:
assert "import python_multipart" not in session.run("python", "-c", "import multipart", silent=True)

assert "import python_multipart" in session.run("python", "-Wdefault", "-c", "import multipart", silent=True)
assert "import python_multipart" in session.run("python", "-Wdefault", "-c", "import multipart.exceptions", silent=True)
assert "import python_multipart" in session.run("python", "-Wdefault", "-c", "from multipart import exceptions", silent=True)
assert "import python_multipart" in session.run(
"python", "-Wdefault", "-c", "import multipart.exceptions", silent=True
)
assert "import python_multipart" in session.run(
"python", "-Wdefault", "-c", "from multipart import exceptions", silent=True
)
assert "import python_multipart" in session.run(
"python", "-Wdefault", "-c", "from multipart.exceptions import FormParserError", silent=True
)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dev-dependencies = [
"PyYAML==6.0.1",
"invoke==2.2.0",
"pytest-timeout==2.3.1",
"ruff==0.3.4",
"ruff==0.8.0",
"mypy",
"types-PyYAML",
"atheris==2.3.0; python_version != '3.12'",
Expand Down Expand Up @@ -122,4 +122,4 @@ exclude_lines = [
]

[tool.check-sdist]
git-only = ["docs", "fuzz", "scripts", "mkdocs.yml", "uv.lock"]
git-only = ["docs", "fuzz", "scripts", "mkdocs.yml", "uv.lock", "SECURITY.md"]
Loading

0 comments on commit 170e604

Please sign in to comment.