Skip to content

Commit 36db063

Browse files
committed
Simplified code check configuration.
1 parent 46fdab5 commit 36db063

File tree

1 file changed

+4
-30
lines changed

1 file changed

+4
-30
lines changed

pyproject.toml

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,16 @@ dev = [
3535
"ruff",
3636
]
3737

38-
39-
4038
[tool.ruff]
4139
line-length = 88
4240
target-version = "py312"
4341

4442
[tool.ruff.lint]
45-
select = [
46-
"E", # pycodestyle errors
47-
"W", # pycodestyle warnings
48-
"F", # pyflakes
49-
"I", # isort
50-
"B", # flake8-bugbear
51-
"C4", # flake8-comprehensions
52-
"UP", # pyupgrade
53-
]
43+
select = ["E", "W", "F", "I", "B", "UP"]
5444
ignore = []
5545

5646
[tool.ruff.lint.per-file-ignores]
57-
"tests/*" = ["S101"] # Allow assertions in tests
47+
"tests/*" = ["S101"]
5848

5949
[tool.ruff.format]
6050
quote-style = "double"
@@ -64,26 +54,17 @@ line-ending = "auto"
6454

6555
[tool.mypy]
6656
python_version = "3.12"
67-
warn_return_any = true
68-
warn_unused_configs = true
69-
disallow_untyped_defs = true
57+
strict = true
7058
ignore_missing_imports = true
71-
strict_optional = true
7259

7360
[tool.pytest.ini_options]
74-
minversion = "6.0"
7561
addopts = [
7662
"--cov=eoapi_notifier",
7763
"--cov-fail-under=90",
7864
"--cov-report=term-missing",
7965
"--cov-report=xml",
80-
"--tb=short",
81-
"--strict-markers",
82-
"--strict-config",
8366
]
8467
testpaths = ["tests"]
85-
python_files = ["test_*.py", "*_test.py"]
86-
python_functions = ["test_*"]
8768

8869
[tool.coverage.run]
8970
source = ["eoapi_notifier"]
@@ -92,13 +73,6 @@ omit = ["tests/*"]
9273
[tool.coverage.report]
9374
exclude_lines = [
9475
"pragma: no cover",
95-
"def __repr__",
96-
"if self.debug:",
97-
"if settings.DEBUG",
98-
"raise AssertionError",
99-
"raise NotImplementedError",
100-
"if 0:",
10176
"if __name__ == .__main__.:",
102-
"class .*\\bProtocol\\):",
103-
"@(abc\\.)?abstractmethod",
77+
"if TYPE_CHECKING:",
10478
]

0 commit comments

Comments
 (0)