enable preview mode

This commit is contained in:
un-pogaz 2025-01-24 11:14:20 +01:00
parent dd35da54fd
commit 4aa2c3a342

View File

@ -13,19 +13,25 @@ exclude = [
"src/tinycss/*", "src/tinycss/*",
] ]
preview = true
[format] [format]
quote-style = 'single' quote-style = 'single'
[lint] [lint]
explicit-preview-rules = true
ignore = [ ignore = [
'E402', 'E722', 'E741', 'E402', 'E722', 'E741',
'UP012', 'UP030', 'UP032', 'UP038', 'C413', 'C420', 'UP012', 'UP030', 'UP032', 'UP038', 'C413', 'C420',
'RUF001', 'RUF002', 'RUF003', 'RUF005', 'RUF012', 'RUF013', 'RUF015', 'RUF031', 'RUF100', 'RUF001', 'RUF002', 'RUF003', 'RUF005', 'RUF012', 'RUF013', 'RUF015', 'RUF031', 'RUF100',
'F841', # because in preview, unused tuple unpacking variable that not use dummy syntax (prefix '_' underscore)
# raise error 'unused-variable', sigh (https://github.com/astral-sh/ruff/issues/8884)
] ]
select = [ select = [
'E', 'F', 'I', 'W', 'INT', 'E', 'F', 'I', 'W', 'INT',
'Q', 'UP', 'YTT', 'TID', 'C4', 'COM818', 'Q', 'UP', 'YTT', 'TID', 'C4', 'COM818',
'RUF', # nota: RUF can flag many unsolicited errors 'RUF', # nota: RUF can flag many unsolicited errors
# preview rules
] ]
[lint.per-file-ignores] [lint.per-file-ignores]