Skip to content

Commit

Permalink
Merge branch 'main' into feat/better-python-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed May 25, 2024
2 parents 01b6ea7 + 698bc81 commit 10cceaa
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 26 deletions.
53 changes: 32 additions & 21 deletions poetry.lock

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

10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pytest-cov = "^4.1.0"
shed = "^0.10.9"

toml = "^0.10.2"
ruff = "^0.0.282"
ruff = "^0.4.5"

[tool.poe.tasks]
# Code linting
Expand Down Expand Up @@ -80,6 +80,10 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff]
# Same as Black.
line-length = 88
target-version = "py38"
extend-exclude = ["tests/examples/*.py"]

[tool.ruff.lint]
select = ["ALL"]
ignore = [
# "D", # "No docs"
Expand All @@ -93,9 +97,7 @@ ignore = [
"D213",
"FIX002", # `TODO` comments are fine when linking to issues
]
target-version = "py38"
extend-exclude = ["tests/examples/*.py"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "D", "ANN201"]
"docs/conf.py" = ["INP001", "A001"]
2 changes: 1 addition & 1 deletion tests/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@


@pytest.fixture()
def empty_cache() -> None:
def empty_cache() -> None: # noqa: PT004
if CACHE_DIR.is_dir():
shutil.rmtree(CACHE_DIR, ignore_errors=True)

Expand Down

0 comments on commit 10cceaa

Please sign in to comment.