mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
enable preview mode
This commit is contained in:
parent
dd35da54fd
commit
4aa2c3a342
@ -13,19 +13,25 @@ exclude = [
|
||||
"src/tinycss/*",
|
||||
]
|
||||
|
||||
preview = true
|
||||
|
||||
[format]
|
||||
quote-style = 'single'
|
||||
|
||||
[lint]
|
||||
explicit-preview-rules = true
|
||||
ignore = [
|
||||
'E402', 'E722', 'E741',
|
||||
'UP012', 'UP030', 'UP032', 'UP038', 'C413', 'C420',
|
||||
'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 = [
|
||||
'E', 'F', 'I', 'W', 'INT',
|
||||
'Q', 'UP', 'YTT', 'TID', 'C4', 'COM818',
|
||||
'RUF', # nota: RUF can flag many unsolicited errors
|
||||
# preview rules
|
||||
]
|
||||
|
||||
[lint.per-file-ignores]
|
||||
|
Loading…
x
Reference in New Issue
Block a user