pytorch/pytorch

Enable more flake8-bugbear lints

Aperta

#106.571 aperta il 3 ago 2023

 (18 commenti) (0 reazioni) (0 assegnatari)Python (28.880 fork)batch import
better-engineeringenhancementgood first issuemodule: linttriaged

Metriche repository

Star
 (102.396 stelle)
Metriche merge PR
 (Merge medio 1g 10h) (42 PR mergiate in 30 g)

Descrizione

🚀 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

Guida contributor