Skip to content

Commit

Permalink
build: move remaining configs out of setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Sep 11, 2024
1 parent 9f9fec1 commit daa9ad6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 64 deletions.
33 changes: 24 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,46 @@ keywords = [
"HGVS",
"variation"
]
dynamic = ["version", "optional-dependencies"]

dynamic = ["version"]
dependencies = [
"attrs",
"requests",
"urllib3~=1.26",
]

[project.optional-dependencies]
dev = [
"bandit~=1.7",
"build~=0.8",
"flake8~=4.0",
"ipython~=8.4",
"isort~=5.10",
"mypy",
"pylint~=2.14",
"ruff == 0.4.4",
]
test = [
"pytest~=7.1",
"pytest-cov~=4.0",
"pytest-optional-tests",
"tox~=3.25",
"vcrpy",
]
docs = ["mkdocs"]

[project.urls]
"Homepage" = "https://github.com/biocommons/bioutils"
"Bug Tracker" = "https://github.com/biocommons/bioutils/issues"

[build-system]
requires = [
"setuptools >= 69.0",
"setuptools_scm[toml] >= 8.0"
]
requires = ["setuptools >= 70.1", "setuptools_scm[toml] ~= 8.1"]
build-backend = "setuptools.build_meta"

[tool.setuptools.package-data]
"*" = ["_data/*/*.json.gz"]

[tool.setuptools_scm]


# https://docs.pytest.org/en/6.2.x/customize.html#pyproject-toml
[tool.pytest.ini_options]
addopts = "-s -v -x --strict-markers -m 'not extra' --doctest-modules --cov=src"
doctest_optionflags = [
Expand All @@ -65,7 +81,6 @@ testpaths = [
"tests"
]


[tool.coverage.run]
branch = true
source = ["biocommons.example"]
Expand Down
55 changes: 0 additions & 55 deletions setup.cfg

This file was deleted.

13 changes: 13 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,16 @@ deps =
pytest-cov
whitelist_externals =
make

[flake8]
ignore = E129,E133,E203,E221,E241,E251,E303,E266,H106,H904,W291
max-line-length = 120
max-complexity = 15
hang-closing = true
exclude =
.eggs
.tox
build
dist
docs/conf.py
tests/*

0 comments on commit daa9ad6

Please sign in to comment.