Skip to content

Commit d8a7266

Browse files
committed
chore: black .
1 parent d349175 commit d8a7266

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ packages = ["vyper_sphinx_docs"]
5252

5353
[tool.black]
5454
line-length = 88
55-
target-version = ['py37']
55+
target-version = ['py310']
5656
include = '\.pyi?$'
5757

5858
[tool.isort]
@@ -62,7 +62,7 @@ multi_line_output = 3
6262
[tool.ruff]
6363
select = ["E", "F", "B", "I"]
6464
ignore = ["E501"]
65-
target-version = "py37"
65+
target-version = "py310"
6666

6767
[tool.mypy]
6868
python_version = "3.10"

sphinx_autodoc_vyper/cli.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,17 @@ def main() -> None:
2020
"--output", "-o", default=".", help="Output directory for documentation"
2121
)
2222
parser.add_argument(
23-
"--serve", "-s", action="store_true", help="Serve documentation after building"
23+
"--serve",
24+
"-s",
25+
action="store_true",
26+
help="Serve documentation after building",
2427
)
2528
parser.add_argument(
26-
"--port", "-p", type=int, default=8000, help="Port for the documentation server"
29+
"--port",
30+
"-p",
31+
type=int,
32+
default=8000,
33+
help="Port for the documentation server",
2734
)
2835
args = parser.parse_args()
2936

tests/test_cli.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ def test_cli_basic(contracts_dir, output_dir, monkeypatch, capsys):
1111
"""Test basic CLI functionality."""
1212
# Mock sys.argv
1313
monkeypatch.setattr(
14-
"sys.argv", ["vyper-docs", str(contracts_dir), "--output", str(output_dir)]
14+
"sys.argv",
15+
["vyper-docs", str(contracts_dir), "--output", str(output_dir)],
1516
)
1617

1718
# Run CLI

tests/test_parser.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
import pytest
66

7-
from sphinx_autodoc_vyper.parser import (Contract, Function, Parameter,
8-
VyperParser)
7+
from sphinx_autodoc_vyper.parser import Contract, Function, Parameter, VyperParser
98

109

1110
def test_parse_contracts(contracts_dir: Path) -> None:

0 commit comments

Comments
 (0)