Closed Bug 1823914 Opened 3 years ago Closed 3 years ago

switch from flake8 to ruff

Categories

(Tecken :: General, task, P3)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: willkg)

Details

Attachments

(2 external files)

We currently use flake8 for linting, but we hit some dependency conflicts between flake8 and Sphinx. Meanwhile, there's a new linter that's faster and includes more functionality that looks interesting.

https://beta.ruff.rs/docs/

This bug covers looking at switching to that.

Assignee: nobody → willkg
Status: NEW → ASSIGNED

I enabled F (pyflakes), E (pycodestyle) and B (bugbear). Other things we could look at enabling:

  • A (builtins)
  • D (pydocstyle)
  • DTZ (datetimez)
  • EM (errmsg)
  • I (isort)
  • G (logging-format)
  • PIE (pie)
  • PT (pytest)
  • UP (pyupgrade)

I'm not going to do that in this pass, though.

Summary: [research] switch from flake8 to ruff → switch from flake8 to ruff

I pushed this out as part of bug #1825022 just now.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: