From 57f89810baf7e06a598b39fcf24a56937addb059 Mon Sep 17 00:00:00 2001 From: florianj77 Date: Mon, 6 Feb 2023 15:41:52 +0100 Subject: [PATCH] move more config to toml --- pyproject.toml | 33 +++++++++++++++++++++++++++++++++ setup.cfg | 18 +----------------- 2 files changed, 34 insertions(+), 17 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f2983859..a7a1ebc4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,6 +22,10 @@ classifiers = [ #] dynamic = ["version"] +[project.urls] +documentation = 'https://florianjoerg.github.io/protex' +repository = 'https://github.com/florianjoerg/protex' + [tool.setuptools] packages = ["protex"] @@ -76,3 +80,32 @@ target-version = "py311" [tool.ruff.mccabe] # Unlike Flake8, default to a complexity level of 10. max-complexity = 10 + +[tool.coverage.run] +#branch = true +omit = ["*/tests/*", "protex/_version.py"] +#plugins = ["Cython.Coverage"] +#source = ["pandas"] + +# [tool.coverage.report] +# ignore_errors = false +# show_missing = true +# omit = ["pandas/_version.py"] +# exclude_lines = [ +# # Have to re-enable the standard pragma +# "pragma: no cover", +# # Don't complain about missing debug-only code:s +# "def __repr__", +# "if self.debug", +# # Don't complain if tests don't hit defensive assertion code: +# "raise AssertionError", +# "raise NotImplementedError", +# "AbstractMethodError", +# # Don't complain if non-runnable code isn't run: +# "if 0:", +# "if __name__ == .__main__.:", +# "if TYPE_CHECKING:", +# ] + +# [tool.coverage.html] +# directory = "coverage_html_report" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 2bf91c87..7934b476 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,13 +1,5 @@ # Helper file to handle all configs -[coverage:run] -# .coveragerc to control coverage.py and pytest-cov -omit = - # Omit the tests - */tests/* - # Omit generated versioneer - protex/_version.py - [yapf] # YAPF, in .style.yapf files this shows up as "[style]" header COLUMN_LIMIT = 119 @@ -16,15 +8,7 @@ USE_TABS = False [flake8] # Flake8, PyFlakes, etc -max-line-length = 119 - -[versioneer] -# Automatic version numbering scheme -VCS = git -style = pep440 -versionfile_source = protex/_version.py -versionfile_build = protex/_version.py -tag_prefix = '' +max-line-length = 88 [aliases] test = pytest