@@ -35,26 +35,16 @@ dev = [
3535 " ruff" ,
3636]
3737
38-
39-
4038[tool .ruff ]
4139line-length = 88
4240target-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" ]
5444ignore = []
5545
5646[tool .ruff .lint .per-file-ignores ]
57- "tests/*" = [" S101" ] # Allow assertions in tests
47+ "tests/*" = [" S101" ]
5848
5949[tool .ruff .format ]
6050quote-style = " double"
@@ -64,26 +54,17 @@ line-ending = "auto"
6454
6555[tool .mypy ]
6656python_version = " 3.12"
67- warn_return_any = true
68- warn_unused_configs = true
69- disallow_untyped_defs = true
57+ strict = true
7058ignore_missing_imports = true
71- strict_optional = true
7259
7360[tool .pytest .ini_options ]
74- minversion = " 6.0"
7561addopts = [
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]
8467testpaths = [" tests" ]
85- python_files = [" test_*.py" , " *_test.py" ]
86- python_functions = [" test_*" ]
8768
8869[tool .coverage .run ]
8970source = [" eoapi_notifier" ]
@@ -92,13 +73,6 @@ omit = ["tests/*"]
9273[tool .coverage .report ]
9374exclude_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