Skip to content

Commit

Permalink
fix: mv tests -> src/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Sep 13, 2024
1 parent 1850ad0 commit da312bf
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ dev-dependencies = [
]

[tool.poe.tasks]
lint = ["lint:check", "lint:format"]
"lint:check" = "ruff check src tests --fix"
"lint:format" = "ruff format src tests"
lint = ["_lint:check", "_lint:format"]
"_lint:check" = "ruff check src --fix"
"_lint:format" = "ruff format src"
check = "pre-commit run --all-files --show-diff-on-failure"

[build-system]
Expand Down
9 changes: 7 additions & 2 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
"reportPrivateUsage": false,
"reportUnnecessaryTypeIgnoreComment": true,
"reportImplicitOverride": true,
"venv": ".venv",
"venvPath": "."
"executionEnvironments": [
{
"root": "src/tests",
"reportUnknownParameterType": false,
"reportMissingParameterType": false,
}
]
}
2 changes: 1 addition & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ ignore = [
]

[lint.per-file-ignores]
"./tests/**/*.py" = [
"./src/tests/**/*.py" = [
"TCH001",
"TCH002",
"TCH003",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions tests/test_serde.py → src/tests/test_serde.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# pyright: reportUnknownParameterType=false
# pyright: reportMissingParameterType=false
# pyright: reportImplicitOverride=false
from __future__ import annotations

from typing import Any
Expand Down

0 comments on commit da312bf

Please sign in to comment.