Closed Bug 1587206 Opened 5 years ago Closed 5 years ago

[flake8] Enable more flake8 rules

Categories

(Developer Infrastructure :: Lint and Formatting, task)

task
Not set
normal

Tracking

(firefox71 fixed)

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: ahal, Assigned: ahal)

Details

Attachments

(4 files)

We skip a few flake8 rules here:
https://searchfox.org/mozilla-central/rev/7cc0f0e89cb40e43bf5c96906f13d44705401042/.flake8#100

We should enable these (or decide they're unwanted).

This ensures we use ==/!= to strings and ints (instead of is/is not).

This prevents '>>' with print statements. Since this syntax is still valid in
Python 2, I exluded dirs that contain this error rather than fix them.

Depends on D48609

This prevents redefinition of unused variables.

Depends on D48610

Prevents over-indentation.

Depends on D48611

Pushed by ahalberstadt@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2921dbcceadc
[lint.flake8] Enable F632 across the tree, r=sylvestre
https://hg.mozilla.org/integration/autoland/rev/1d6d7e7ddbbd
[lint.flake8] Enable F633 across the tree, r=sylvestre
https://hg.mozilla.org/integration/autoland/rev/b4d2e6a7f790
[lint.flake8] Enable F811 across the tree, r=sylvestre
https://hg.mozilla.org/integration/autoland/rev/f3f4aa35d46e
[lint.flake8] Enable E117 across the tree, r=sylvestre
Assignee: nobody → ahal
Status: NEW → ASSIGNED
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: