Skip to content

Commit

Permalink
Merge branch 'main' into cleanup_ci_and_archived_package_references
Browse files Browse the repository at this point in the history
  • Loading branch information
binste committed May 18, 2024
2 parents 76dd578 + ad9a261 commit 035d225
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ dev = [
"pandas-stubs",
"types-jsonschema",
"types-setuptools",
"geopandas<=0.14.3",
"geopandas",
]
doc = [
"sphinx",
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/examples_arguments_syntax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
2 changes: 1 addition & 1 deletion tests/examples_methods_syntax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
8 changes: 7 additions & 1 deletion tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 035d225

Please sign in to comment.