diff --git a/pyproject.toml b/pyproject.toml index a111062e2..36c95b317 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,7 +76,7 @@ dev = [ "pandas-stubs", "types-jsonschema", "types-setuptools", - "geopandas<=0.14.3", + "geopandas", ] doc = [ "sphinx", @@ -201,6 +201,12 @@ line-ending = "lf" [tool.ruff.lint.mccabe] max-complexity = 18 +[tool.pytest.ini_options] +# Pytest does not need to search these folders for test functions. +# They contain examples which are being executed by the +# test_examples tests. +norecursedirs = ["tests/examples_arguments_syntax", "tests/examples_methods_syntax"] + [tool.mypy] warn_unused_ignores = true diff --git a/tests/examples_arguments_syntax/__init__.py b/tests/examples_arguments_syntax/__init__.py index 3a7f2d486..1f04beca8 100644 --- a/tests/examples_arguments_syntax/__init__.py +++ b/tests/examples_arguments_syntax/__init__.py @@ -23,5 +23,5 @@ def iter_examples_arguments_syntax(): yield { "name": name, "filename": os.path.join(examples_arguments_syntax_dir, filename), - "use_svg": name in SVG_EXAMPLES + "use_svg": name in SVG_EXAMPLES, } diff --git a/tests/examples_methods_syntax/__init__.py b/tests/examples_methods_syntax/__init__.py index 1ab784763..51d84ba2d 100644 --- a/tests/examples_methods_syntax/__init__.py +++ b/tests/examples_methods_syntax/__init__.py @@ -21,5 +21,5 @@ def iter_examples_methods_syntax(): yield { "name": name, "filename": os.path.join(examples_methods_syntax_dir, filename), - "use_svg": name in SVG_EXAMPLES + "use_svg": name in SVG_EXAMPLES, } diff --git a/tests/test_examples.py b/tests/test_examples.py index 7dc393a3e..124b8a66b 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -17,7 +17,13 @@ def iter_examples_filenames(syntax_module): for _importer, modname, ispkg in pkgutil.iter_modules(syntax_module.__path__): - if ispkg or modname.startswith("_"): + if ( + ispkg + or modname.startswith("_") + # Temporarily skip this test until https://github.com/vega/altair/issues/3418 + # is fixed + or modname == "interval_selection_map_quakes" + ): continue yield modname + ".py"