Skip to content

Commit

Permalink
Limit pytest to <8.0.0 (#945)
Browse files Browse the repository at this point in the history
Limits [pytest](https://github.com/pytest-dev/pytest) to <8.0.0.
* Pytest 8 breaks when using the asyncio library, see issue
pytest-dev/pytest#11868
* We should use pytest-asyncio instead of the asyncio library directly
once pytest-asyncio supports pytest >=8

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Elliot Gunton <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elliot Gunton <[email protected]>
  • Loading branch information
dependabot[bot] and elliotgunton authored Feb 7, 2024
1 parent 422e6b5 commit f817c65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ yaml = ["PyYAML"]
cli = ["cappa", "PyYAML"]

[tool.poetry.group.dev.dependencies]
pytest = "*"
pytest = "<8.0.0"
pytest-cov = "*"
mypy = "*"
build = "*"
Expand Down Expand Up @@ -128,13 +128,15 @@ source = [
[tool.ruff]
line-length = 119
show-fixes = true
target-version = "py38"
src = ["src"]

[tool.ruff.lint]
select = ["E", "F", "D"]
ignore = ["E501"]
target-version = "py38"
extend-select = ["I"]
src = ["src"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["F401", "D107"]
"examples/**" = ["D"]
"src/hera/events/models/**" = ["D"]
Expand All @@ -143,10 +145,10 @@ src = ["src"]
"tests/**" = ["D"]
"scripts/graphlib.py" = ["D"]

[tool.ruff.isort]
[tool.ruff.lint.isort]
force-wrap-aliases = true
combine-as-imports = true
known-first-party = ["hera"]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"

0 comments on commit f817c65

Please sign in to comment.