Skip to content

Commit

Permalink
Fix test for pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Jul 28, 2024
1 parent e985f2c commit a2381d8
Showing 1 changed file with 41 additions and 15 deletions.
56 changes: 41 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ requires-python = ">=3.8"
authors = [
{ name = "Jupyter Development Team", email = "jupyter@googlegroups.com" },
]
keywords = [
"ipython",
"jupyter",
]
keywords = ["ipython", "jupyter"]
classifiers = [
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
Expand All @@ -32,9 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"traitlets",
]
dependencies = ["traitlets"]
dynamic = ["version"]

[project.urls]
Expand All @@ -52,7 +47,7 @@ test = [
"pytest-cov",
"copier>=9.2,<10",
"jinja2-time",
"jupyterlab"
"jupyterlab",
]
# Check ruff version is aligned with the one in .pre-commit-config.yaml
dev = [
Expand Down Expand Up @@ -86,7 +81,7 @@ version_cmd = "hatch version"
before-build-npm = [
"python -m pip install 'jupyterlab>=4.0.0,<5'",
"jlpm",
"jlpm build:prod"
"jlpm build:prod",
]
before-build-python = ["jlpm clean:all"]

Expand All @@ -99,14 +94,24 @@ warn_unreachable = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]

[tool.pytest.ini_options]
filterwarnings = ["error", "module:pkg_resources is deprecated:DeprecationWarning",
"module:This template was designed for Copier 7.1.0:copier.errors.OldTemplateWarning"]
filterwarnings = [
"error",
"module:pkg_resources is deprecated:DeprecationWarning",
"module:This template was designed for Copier 7.1.0:copier.errors.OldTemplateWarning",
"module:can't resolve package from __spec__ or __package__:ImportWarning",
]

log_cli_level = "INFO"
minversion = "7"
testpaths = ["tests/"]
norecursedirs = ".git _build .ipynb_checkpoints"
addopts = ["-ra", "--strict-config", "--strict-markers", "--pdbcls=IPython.terminal.debugger:Pdb", "--junitxml=junit.xml"]
addopts = [
"-ra",
"--strict-config",
"--strict-markers",
"--pdbcls=IPython.terminal.debugger:Pdb",
"--junitxml=junit.xml",
]
xfail_strict = true

[tool.repo-review]
Expand All @@ -118,9 +123,30 @@ line-length = 100

[tool.ruff.lint]
select = [
"A", "B", "C", "DTZ", "E", "EM", "F", "FBT", "I", "ICN", "N",
"PLC", "PLE", "PLR", "PLW", "Q", "RUF", "S", "SIM", "T", "TID", "UP",
"W", "YTT",
"A",
"B",
"C",
"DTZ",
"E",
"EM",
"F",
"FBT",
"I",
"ICN",
"N",
"PLC",
"PLE",
"PLR",
"PLW",
"Q",
"RUF",
"S",
"SIM",
"T",
"TID",
"UP",
"W",
"YTT",
]
ignore = []

Expand Down

0 comments on commit a2381d8

Please sign in to comment.