Skip to content

Commit

Permalink
Replace pydocstyle with Ruff (#20)
Browse files Browse the repository at this point in the history
* Replace pydocstyle with Ruff

* Single call

* More precise ignore

* Revert "More precise ignore"

This reverts commit 71aeb87.

(cherry picked from commit d70fb57)
  • Loading branch information
Eric-Arellano authored and mergify[bot] committed Oct 24, 2024
1 parent c20b6d1 commit 92466ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
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

0 comments on commit 92466ac

Please sign in to comment.