Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace pydocstyle with Ruff (backport #20) #21

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
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
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ style = [
]
lint = [
"qiskit-addon-mpf[style]",
"pydocstyle==6.3.0",
"mypy==1.11.2",
"pylint==3.2.7",
"reno>=4.1",
Expand Down Expand Up @@ -138,6 +137,7 @@ select = [
"I", # isort
"E", # pycodestyle
"W", # pycodestyle
"D", # pydocstyle
"F", # pyflakes
"RUF", # ruff
"UP", # pyupgrade
Expand All @@ -153,8 +153,12 @@ ignore = [
max-args = 6

[tool.ruff.lint.extend-per-file-ignores]
"test/**.py" = [
"D", # pydocstyle
]
"docs/**/*" = [
"E402", # module level import not at top of file
"D", # pydocstyle
]

[tool.ruff.lint.flake8-copyright]
Expand All @@ -172,4 +176,7 @@ notice-rgx = """
# that they have been altered from the originals\\.
"""

[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.typos.default.extend-words]
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ commands =
ruff check qiskit_addon_mpf/ docs/ test/
ruff check --preview --select CPY001 --exclude "*.ipynb" qiskit_addon_mpf/ test/
nbqa ruff docs/
pydocstyle qiskit_addon_mpf/
mypy qiskit_addon_mpf/
pylint -rn qiskit_addon_mpf/ test/
nbqa pylint -rn docs/
Expand Down