Skip to content

Commit

Permalink
removed references to pytest, metadata and options from setup.cfg. ad…
Browse files Browse the repository at this point in the history
…ded pytest to .toml
  • Loading branch information
ESadek-MO committed Nov 21, 2024
1 parent 6af08b2 commit 6c56e74
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 48 deletions.
15 changes: 11 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[tool.black]
line-length = 79
target-version = ["py37", "py38", "py39", "py310"]
target-version = ["py38", "py39", "py310", "py311"]
include = '\.pyi?$'

[project]
Expand Down Expand Up @@ -53,6 +53,16 @@ requires = ["setuptools>=45"]
# Defined by PEP 517
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = ["error"]
log_cli_level = "info"
testpaths = [
"tephi",
]

[tool.repo-review]
# These are a list of the currently failing tests:
ignore = [
Expand All @@ -64,9 +74,6 @@ ignore = [

# TODO: exceptions that still need investigating are below. Might be fixable, or might become permanent (above):

# https://learn.scientific-python.org/development/guides/pytest/#PP301
"PP301", # Has pytest in pyproject

# https://learn.scientific-python.org/development/guides/gha-basic/#GH212
"GH212", # Require GHA update grouping

Expand Down
44 changes: 0 additions & 44 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,50 +19,6 @@ addopts =
--doctest-modules
doctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS NUMBER

[metadata]
name = tephi
version = attr: tephi.__version__
author = UK Met Office
author_email = scitools-iris-dev@googlegroups.com
url = https://github.com/SciTools/tephi
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Science/Research
Operating System :: OS Independent
License :: OSI Approved :: BSD License
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Topic :: Scientific/Engineering :: Atmospheric Science
Topic :: Scientific/Engineering :: Visualization
license_files = LICENSE
description = Tephigram plotting in Python
long_description = file: README.md
long_description_content_type = text/markdown
project_urls =
code = https://github.com/SciTools/tephi
issues = https://github.com/SciTools/tephi/issues
binder = https://mybinder.org/v2/gh/SciTools/tephi/main?filepath=index.ipynb
documentation = https://tephi.readthedocs.io/en/latest/
keywords =
tephigram
radiosonde
meteorology
visualization

[options]
packages = find:
setup_requires =
setuptools>=40.8.0
wheel
install_requires =
matplotlib
numpy
scipy
python_requires = >=3.8

[options.package_data]
tephi =
etc/test_data/*.txt
Expand Down

0 comments on commit 6c56e74

Please sign in to comment.