Skip to content

Commit 3636c13

Browse files
committed
fix(lint): ruff
1 parent d8a7266 commit 3636c13

File tree

5 files changed

+4
-9
lines changed

5 files changed

+4
-9
lines changed

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ profile = "black"
6060
multi_line_output = 3
6161

6262
[tool.ruff]
63-
select = ["E", "F", "B", "I"]
64-
ignore = ["E501"]
63+
lint.select = ["E", "F", "B", "I"]
64+
lint.ignore = ["E501"]
6565
target-version = "py310"
6666

6767
[tool.mypy]

sphinx_autodoc_vyper/cli.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Command-line interface for Vyper Sphinx documentation generator."""
22

33
import argparse
4-
import os
54
import subprocess
65
from pathlib import Path
76

tests/conftest.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Pytest configuration and fixtures."""
22

3-
import os
43
from pathlib import Path
54

65
import pytest

tests/test_cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from sphinx_autodoc_vyper.cli import main
88

99

10-
def test_cli_basic(contracts_dir, output_dir, monkeypatch, capsys):
10+
def test_cli_basic(contracts_dir: Path, output_dir: Path, monkeypatch, capsys) -> None:
1111
"""Test basic CLI functionality."""
1212
# Mock sys.argv
1313
monkeypatch.setattr(
@@ -30,7 +30,7 @@ def test_cli_basic(contracts_dir, output_dir, monkeypatch, capsys):
3030
assert (build_dir / "html" / "index.html").exists()
3131

3232

33-
def test_cli_invalid_contracts_dir(tmp_path, monkeypatch, capsys):
33+
def test_cli_invalid_contracts_dir(tmp_path: Path, monkeypatch, capsys) -> None:
3434
"""Test CLI with invalid contracts directory."""
3535
invalid_dir = tmp_path / "nonexistent"
3636

tests/test_generator.py

-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
"""Tests for the Sphinx documentation generator."""
22

3-
import os
43
from pathlib import Path
54

6-
import pytest
7-
85
from sphinx_autodoc_vyper.generator import SphinxGenerator
96
from sphinx_autodoc_vyper.parser import VyperParser
107

0 commit comments

Comments
 (0)