Skip to content

Commit

Permalink
WIP pytest config migration
Browse files Browse the repository at this point in the history
  • Loading branch information
egparedes committed Nov 29, 2024
1 parent bb87944 commit 0d20775
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
File renamed without changes.
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@ members = [
# warn_unused_configs = true
# warn_unused_ignores = true

#-- pytest --
[tool.pytest]

[tool.pytest.ini_options]
norecursedirs = "*_external_src"
markers = [
"slow_tests: mark test as slow",
"datatest: test depending on serialized data generated by a full model run",
"with_netcdf: test depending on a compatible version of netCDF4",
]
addopts = ["-p", "icon4py.model.common.test_utils.pytest_config"]

#-- ruff --
[tool.ruff]
Expand Down
7 changes: 0 additions & 7 deletions pytest.ini

This file was deleted.

6 changes: 2 additions & 4 deletions tools/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ classifiers = [
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering :: Atmospheric Science',
'Topic :: Scientific/Engineering :: Mathematics',
Expand All @@ -32,7 +33,7 @@ dependencies = [
]
description = 'Tools and utilities for integrating icon4py code into the ICON model.'
dynamic = ['version']
license = { file = 'LICENSE' }
license = { file = '../LICENSE' }
name = 'icon4pytools'
readme = 'README.md'
requires-python = '>=3.10'
Expand Down Expand Up @@ -90,9 +91,6 @@ source_pkgs = ['icon4pytools']
#-- pytest --
[tool.pytest]

# [tool.pytest.ini_options]
# testpaths = 'tests'

#--ruff --
[tool.ruff]
extend = "../pyproject.toml"
Expand Down

0 comments on commit 0d20775

Please sign in to comment.