diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 92cae43f..00000000 --- a/.coveragerc +++ /dev/null @@ -1,10 +0,0 @@ -[run] -branch = True -omit = - nox/_typing.py - -[report] -exclude_lines = - pragma: no cover - if _typing.TYPE_CHECKING: - @overload diff --git a/.flake8 b/.flake8 deleted file mode 100644 index aa15c81d..00000000 --- a/.flake8 +++ /dev/null @@ -1,6 +0,0 @@ -[flake8] -# Ignore black styles. -ignore = E501, W503, E203 -# Imports -import-order-style = google -application-import-names = nox,tests diff --git a/.isort.cfg b/.isort.cfg deleted file mode 100644 index b9fb3f3e..00000000 --- a/.isort.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[settings] -profile=black diff --git a/noxfile.py b/noxfile.py index c269ee79..9ffd7405 100644 --- a/noxfile.py +++ b/noxfile.py @@ -45,7 +45,7 @@ def tests(session): "pytest", "--cov=nox", "--cov-config", - ".coveragerc", + "pyproject.toml", "--cov-report=", *tests, env={"COVERAGE_FILE": f".coverage.{session.python}"}, @@ -79,7 +79,7 @@ def cover(session): if py_version.major == 3 and py_version.minor == 10: fail_under = 99 - session.install("coverage") + session.install("coverage[toml]") session.run("coverage", "combine") session.run("coverage", "report", f"--fail-under={fail_under}", "--show-missing") session.run("coverage", "erase") diff --git a/pyproject.toml b/pyproject.toml index 90bcd11d..a163ffe9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,21 @@ requires = [ ] build-backend = "setuptools.build_meta" +[tool.isort] +profile = "black" + +[tool.coverage.run] +branch = true +omit = [ + "nox/_typing.py", +] + +[tool.coverage.report] +exclude_lines = [ + "pragma: no cover", + "if _typing.TYPE_CHECKING:", + "@overload", +] [tool.mypy] files = ["nox"] diff --git a/setup.cfg b/setup.cfg index 5d720982..f9f05662 100644 --- a/setup.cfg +++ b/setup.cfg @@ -59,3 +59,10 @@ tox_to_nox = [options.package_data] nox = py.typed + +[flake8] +# Ignore black styles. +ignore = E501, W503, E203 +# Imports +import-order-style = google +application-import-names = nox,tests