Skip to content

Commit

Permalink
move more config to toml
Browse files Browse the repository at this point in the history
  • Loading branch information
florianjoerg committed Feb 6, 2023
1 parent c2c936d commit 57f8981
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 17 deletions.
33 changes: 33 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down Expand Up @@ -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"
18 changes: 1 addition & 17 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit 57f8981

Please sign in to comment.