serving icon indicating copy to clipboard operation
serving copied to clipboard

Fix subset of linting rules

Open smokestacklightnin opened this issue 7 months ago • 0 comments

Supersedes #2252

Applies pre-commit with Ruff rules from #2251

The description from #2252 applies here:

This PR fixes a bunch of existing lint issues that were automatically fixed by ruff --fix, in preparation for merging #2251. I've ignored a bunch of rule violations, but marked them in ruff.toml so that they can be systematically re-enabled and the violations fixed one by one. The vast majority of these changes are:

  • Removing useless whitespace at the end of lines
  • Making sure the end of file contains a newline
  • Removing unnecessary python 2/3 compatibility __future__ imports
  • Import sorting
  • Replacing calls to format() with f-strings, which are faster and more expressive

smokestacklightnin avatar Aug 09 '25 06:08 smokestacklightnin