Skip to content

Commit

Permalink
Move tool config from setup.cfg → pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed May 6, 2022
1 parent 5aca151 commit 5fbbf6d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 43 deletions.
27 changes: 24 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
requires = ["setuptools", "setuptools-scm"]

[tool.pytest.ini_options]
addopts = "--cov=message_ix_models --cov-report="
# Disable faulthandler plugin on Windows to prevent spurious console noise
addopts = "-p no:faulthandler --cov=message_ix_models --cov-report="
filterwarnings = "ignore:distutils Version classes.*:DeprecationWarning"

[tool.setuptools_scm]
[tool.isort]
profile = "black"

[[tool.mypy.overrides]]
module = [
"dask.*",
"colorama.*",
"jpype.*",
"matplotlib.*",
"message_data.*",
"pandas.*",
"pint.*",
"pyam.*",
"pycountry",
"setuptools",
# For ixmp.testing
"nbclient.*",
"nbformat.*",
"memory_profiler.*",
]
ignore_missing_imports = true
40 changes: 0 additions & 40 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -44,45 +44,5 @@ docs =
console_scripts =
mix-models = message_ix_models.cli:main

[tool:pytest]
# Disable faulthandler plugin on Windows to prevent spurious console noise
addopts = -p no:faulthandler

[isort]
profile = black

[flake8]
max-line-length = 88

[mypy]
# Empty section required as of mypy 0.800;
# see https://github.com/python/mypy/issues/9940

[mypy-dask.*]
ignore_missing_imports = True
[mypy-colorama.*]
ignore_missing_imports = True
[mypy-jpype.*]
ignore_missing_imports = True
[mypy-matplotlib.*]
ignore_missing_imports = True
[mypy-message_data.*]
ignore_missing_imports = True
[mypy-pandas.*]
ignore_missing_imports = True
[mypy-pint.*]
ignore_missing_imports = True
[mypy-pyam.*]
ignore_missing_imports = True
[mypy-pycountry]
ignore_missing_imports = True
[mypy-setuptools]
ignore_missing_imports = True

# For ixmp.testing
[mypy-nbclient.*]
ignore_missing_imports = True
[mypy-nbformat.*]
ignore_missing_imports = True
[mypy-memory_profiler.*]
ignore_missing_imports = True

0 comments on commit 5fbbf6d

Please sign in to comment.