Bump ruff from 0.3.4 to 0.3.7 #414
Annotations
10 errors
Ruff (FURB118):
doc/development/tutorials/examples/recipe.py#L85
doc/development/tutorials/examples/recipe.py:85:39: FURB118 Use `operator.itemgetter(0)` instead of defining a lambda
|
Ruff (FURB142):
sphinx/builders/__init__.py#L317
sphinx/builders/__init__.py:317:9: FURB142 Use of `set.add()` in a for loop
|
Ruff (FURB103):
sphinx/builders/changes.py#L104
sphinx/builders/changes.py:104:14: FURB103 `open` and `write` should be replaced by `Path(path.join(self.outdir, 'index.html'))....`
|
Ruff (FURB103):
sphinx/builders/changes.py#L106
sphinx/builders/changes.py:106:14: FURB103 `open` and `write` should be replaced by `Path(path.join(self.outdir, 'changes.html'))....`
|
Ruff (FURB103):
sphinx/builders/changes.py#L134
sphinx/builders/changes.py:134:18: FURB103 `open` and `write` should be replaced by `Path(targetfn)....`
|
Ruff (FURB118):
sphinx/builders/gettext.py#L284
sphinx/builders/gettext.py:284:52: FURB118 Use `operator.itemgetter(0)` instead of defining a lambda
|
Ruff (FURB103):
sphinx/builders/html/__init__.py#L788
sphinx/builders/html/__init__.py:788:14: FURB103 `open` and `write` should be replaced by `Path(path.join(self.outdir, '_static', 'pygments.css'))....`
|
Ruff (FURB103):
sphinx/builders/html/__init__.py#L793
sphinx/builders/html/__init__.py:793:18: FURB103 `open` and `write` should be replaced by `Path(...)....`
|
Ruff (FURB103):
sphinx/builders/html/__init__.py#L1135
sphinx/builders/html/__init__.py:1135:18: FURB103 `open` and `write` should be replaced by `Path(outfilename)....`
|
Ruff (FURB103):
sphinx/builders/text.py#L74
sphinx/builders/text.py:74:18: FURB103 `open` and `write` should be replaced by `Path(outfilename).write_text(self.writer.output, encoding='utf-8')`
|