33
44[tool .pytest .ini_options ]
55testpaths = [" tests" ] # path to the test directory
6- minversion = " 3.8 "
6+ minversion = " 3.9 "
77addopts = " --cov=deepcave" # Should be package name
88
99[tool .coverage .run ]
1010branch = true
1111context = " deepcave" # Should be package name
1212omit = [
13- " deepcave/__init__.py" , # Has variables only needed for setup.py
13+ " deepcave/__init__.py" , # Has variables only needed for setup.py
1414]
1515
1616[tool .coverage .report ]
1717show_missing = true
1818skip_covered = true
1919exclude_lines = [
20- " pragma: no cover" ,
21- ' \.\.\.' ,
22- " raise NotImplementedError" ,
23- " if TYPE_CHECKING" ,
20+ " pragma: no cover" ,
21+ ' \.\.\.' ,
22+ " raise NotImplementedError" ,
23+ " if TYPE_CHECKING" ,
2424] # These are lines to exclude from coverage
2525
2626[tool .black ]
27- target-version = [' py38 ' ]
27+ target-version = [' py39 ' ]
2828line-length = 100
2929
3030[tool .isort ]
31- py_version = " 38 "
31+ py_version = " 39 "
3232profile = " black" # Play nicely with black
3333src_paths = [" deepcave" , " tests" ]
3434known_types = [" typing" , " abc" ] # We put these in their own section "types"
3535known_test = [" tests" ]
3636known_first_party = [" deepcave" ]
3737sections = [
38- " FUTURE" ,
39- " TYPES" ,
40- " STDLIB" ,
41- " THIRDPARTY" ,
42- " FIRSTPARTY" ,
43- " TEST" ,
44- " LOCALFOLDER" ,
38+ " FUTURE" ,
39+ " TYPES" ,
40+ " STDLIB" ,
41+ " THIRDPARTY" ,
42+ " FIRSTPARTY" ,
43+ " TEST" ,
44+ " LOCALFOLDER" ,
4545] # section ordering
4646multi_line_output = 3 # https://pycqa.github.io/isort/docs/configuration/multi_line_output_modes.html
4747
4848[tool .pydocstyle ]
4949convention = " numpy"
5050add-ignore = [ # http://www.pydocstyle.org/en/stable/error_codes.html
51- " D105" , # Missing docstring in magic method
52- " D212" , # Multi-line docstring summary should start at the first line
51+ " D105" , # Missing docstring in magic method
52+ " D212" , # Multi-line docstring summary should start at the first line
5353]
5454
5555[tool .mypy ]
@@ -68,5 +68,5 @@ module = ["setuptools.*"] # Add modules that give import errors here
6868ignore_missing_imports = true
6969
7070[[tool .mypy .overrides ]]
71- module = [" tests.*" ] # pytest uses decorators which are not typed in 3.8
71+ module = [" tests.*" ] # pytest uses decorators which are not typed in 3.9
7272disallow_untyped_decorators = false # decorators in testing are not all annotated
0 commit comments