[tool:pytest]
addopts = 
	--mypy
	--doctest-modules
	--ignore=esmvalcore/cmor/tables/
	--cov=esmvalcore
	--cov-report=xml:test-reports/coverage.xml
	--cov-report=html:test-reports/coverage_html
	--html=test-reports/report.html
env = 
	MPLBACKEND = Agg
log_level = WARNING
markers = 
	installation: Test requires installation of dependencies
	use_sample_data: Run functional tests using real data

[flake8]
exclude = 
	.eggs/
	doc/conf.py

[coverage:run]
parallel = true

[coverage:report]
exclude_lines = 
	pragma: no cover
	if __name__ == .__main__.:
	if TYPE_CHECKING:

[pydocstyle]
convention = numpy

[isort]
multi_line_output = 3
include_trailing_comma = true

[mypy]
python_version = 3.9
ignore_missing_imports = True
files = esmvalcore, tests

[yapf]
based_on_style = pep8
blank_line_before_nested_class_or_def = true

[codespell]
ignore-words-list = vas,hist

[egg_info]
tag_build = 
tag_date = 0

