Skip to content

Commit fafbecc

Browse files
committed
Resolve Ruff TODOs
1 parent 89832e9 commit fafbecc

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

docs/source/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
# -- Project information -----------------------------------------------------
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88

9+
import os
910
import re
1011
import time
12+
from urllib.request import urlretrieve
1113

1214
project = 'EWMHlib'
1315
year = time.strftime("%Y")
@@ -42,9 +44,6 @@
4244

4345
# -- Copy the modules documentation ------------------------------------------
4446
# https://stackoverflow.com/questions/66495200/is-it-possible-to-include-external-rst-files-in-my-documentation
45-
from urllib.request import urlretrieve
46-
import os
47-
4847
urlretrieve(
4948
"https://raw.githubusercontent.com/kalmat/ewmhlib/master/README.md",
5049
"index.md"

ruff.toml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,6 @@ ignore = [
4545

4646
# TODO: Add and configure isort (I) first
4747
"RUF022",
48-
49-
# TODO: Consider later
50-
"UP031", # printf-string-formatting
51-
"RUF059", # unused-unpacked-variable
52-
53-
# TODO: Not autofixable, address in a separate PR !
54-
"E722",
55-
"E402",
56-
"F401",
57-
"ANN201",
5848
]
5949
# F401 would remove imports not marked as explicit re-exports, which may break API boundaries
6050
extend-unsafe-fixes = ["F401"]

0 commit comments

Comments
 (0)