pytorch/pytorch

Enable more flake8-bugbear lints

Offen

#106.571 geöffnet am 03.08.2023

 (18 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (28.880 Forks)batch import
better-engineeringenhancementgood first issuemodule: linttriaged

Repository-Metriken

Stars
 (102.396 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 10h) (42 gemergte PRs in 30 T)

Beschreibung

🚀 The feature, motivation and pitch

  • There are a lot of flake8-bugbear code reported by flake8-bugbear and ruff that need to be fixed. These would be a good starting issue for a new contributor.

This can be found be removing the codes from the ignore list in the .flake8 file and the .pyproject file for ruff.

  • "B007",
  • "B008"
  • "B017",
  • "B018", # Useless expression
  • "B019",
  • "B020",
  • "B023",
  • "B024",
  • "B026",
  • "B028", # No explicit stacklevel keyword argument found
  • "B904",

Alternatives

No response

Additional context

No response

Contributor Guide