Skip to content

Commit 79ddb90

Browse files
committed
add: settings for tests
1 parent 807143f commit 79ddb90

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

pyproject.toml

+4-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ requires-python = ">=3.9"
1010
readme = "README.md"
1111
license = { file = "LICENSE" }
1212

13-
dependencies = ["google-cloud-logging>=3.11.3", "pydantic>=2.10.3"]
13+
dependencies = [
14+
"google-cloud-logging>=3.11.3",
15+
"pydantic>=2.10.3",
16+
]
1417

1518
[tool.uv]
1619
dev-dependencies = [
@@ -21,7 +24,3 @@ dev-dependencies = [
2124
"pytest>=8.3.4",
2225
"pytest-cov>=6.0.0",
2326
]
24-
25-
[tool.pytest.ini_options]
26-
pythonpath = ["."]
27-
addopts = ["--import-mode=importlib"]

pytest.ini

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[pytest]
2+
addopts =
3+
--cov=.
4+
--cov-branch
5+
--cov-fail-under=75
6+
--cov-report=html
7+
--cov-report=term-missing
8+
--import-mode=importlib
9+
10+
norecursedirs =
11+
.*
12+
__pycache__
13+
htmlcov
14+
15+
pythonpath = "."
16+
python_files = test__*.py
17+
testpaths = tests

ruff.toml

+4
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,7 @@ skip-magic-trailing-comma = false
7676

7777
# Like Black, automatically detect the appropriate line ending.
7878
line-ending = "auto"
79+
80+
[per-file-ignores]
81+
# Ignore all directories named `tests`.
82+
"tests/**" = ["INP001", "S101"]

0 commit comments

Comments
 (0)