mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
chore(lint): migrate from pydocstyle to ruff (#7346)
pydocstyle has been deprecated and archived (Nov 2023). The maintainers recommend migrating to Ruff, which has full parity with pydocstyle. Changes: - Add "D" (pydocstyle) rules to ruff.toml select list - Migrate ignore rules from .pydocstyle.ini to ruff.toml - Remove pydocstyle from CI workflow - Delete .pydocstyle.ini This also fixes false positives like D402 being triggered incorrectly when a method named `name` has a docstring containing "name" anywhere. See: https://github.com/PyCQA/pydocstyle (archived) Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
This commit is contained in:
1
.github/workflows/general-linting.yml
vendored
1
.github/workflows/general-linting.yml
vendored
@@ -66,7 +66,6 @@ jobs:
|
||||
if [ -n "${{ env.diff_files }}" ]; then
|
||||
black --diff --check ${{ env.diff_files }}
|
||||
mypy ${{ env.diff_files }} --ignore-missing-imports --scripts-are-modules --check-untyped-defs
|
||||
pydocstyle ${{ env.diff_files }}
|
||||
pylint ${{ env.diff_files }}
|
||||
ruff check ${{ env.diff_files }}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user