Skip to content

Replace pylint + black with ruff #631

Open
@ryanhill1

Description

Replace pylint and black directives in tox.ini linters with the equivalent ruff checks and fixes.

qBraid/tox.ini

Lines 56 to 61 in dcf9089

[testenv:pylint]
envdir = .tox/linters
skip_install = true
deps = pylint
commands =
pylint {posargs} qbraid tools tests --disable=C0103,E0401,R0801,R0902,R0903,R0911,R0912,R0914,W0212,W0511

qBraid/tox.ini

Lines 63 to 68 in dcf9089

[testenv:black]
envdir = .tox/linters
skip_install = true
deps = black
commands =
black qbraid tools tests --exclude /(tests/transpiler/cirq/test_qasm_parser.py)/ {posargs}

i.e. pylint and black should be removed as dev dependencies, and replaced with Ruff.

tox -e linters and tox -e format-check commands should be updated. Any pylint and black configurations in pyproject.toml should be updated. And any# pylint or # fmt directives throughout the repo should be replaced with the equivalent or closest applicable ruff directive.

Metadata

Assignees

No one assigned

    Labels

    code quality 🎓Best practices, linters, readabilitydependencies 📌Pull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions