Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/test_ruff_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,13 @@ def get_ruff_settings(workspace, doc, config_str):

def test_ruff_settings(workspace):
config_str = r"""[tool.ruff]
select = ["E402", "F401", "F841"]
ignore = ["F841"]
exclude = [
"blah/__init__.py",
"file_2.py"
]
extend-select = ["D"]
extend-select = ["D103", "D104"]
Comment thread
jhossbach marked this conversation as resolved.
[tool.ruff.per-file-ignores]
"test_something.py" = ["F401"]
"""
Expand Down Expand Up @@ -277,6 +278,11 @@ def f():


def test_notebook_input(workspace):
# Explicitly enable the rules we're expecting to find.
workspace._config.update(
{"plugins": {"ruff": {"select": ["E402", "F401", "F841"]}}}
)

doc_str = r"""
print('hi')
import os
Expand Down
Loading