Skip to content

Commit

Permalink
enable ruf rules
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Sep 26, 2023
1 parent ac23ffa commit 70302d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,13 @@ select = [
"I", # isort
"S", # bandit
"UP", # pyupgrade
#"RUF", # ruff specific, includes yesqa
"RUF", # ruff specific, includes yesqa
]
extend-ignore = [
"F403", "F405", # uses if import * should be removed
"S101", # asserts used in tests
"S701", # why is jinja being used?
"RUF012", # we don't use typing
]

[tool.codespell]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sphinx_asdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_basic_build(app, status, warning):
doctree_path = app.doctreedir / "generated" / f"{name}.doctree"
doc = pickle.loads(doctree_path.read_bytes()) # noqa: S301

title = list(doc.findall(nodes.title))[0]
title = next(iter(doc.findall(nodes.title)))
assert title.astext() == name

schema_top = list(doc.findall(sa_nodes.schema_doc))
Expand Down

0 comments on commit 70302d2

Please sign in to comment.