-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
20 lines (18 loc) · 1.01 KB
/
Copy pathruff.toml
File metadata and controls
20 lines (18 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
line-length = 120
target-version = "py311"
[lint]
select = ["E", "F", "I", "UP", "B", "W"]
ignore = [
"E501", # line length handled by formatter where practical; long strings/tables in NER code
"E701", # multiple statements on one line (colon) - pre-existing style in research scripts
"E702", # multiple statements on one line (semicolon) - pre-existing style in research scripts
"E731", # lambda assignment - used for argparse type= callables
"E741", # ambiguous variable name (l/O/I used as short local vars in existing code)
"B905", # zip() without strict= - behavior-preserving, not touching without test coverage
"E402", # late imports are intentional groupings in data_prep.py/utils.py; reordering out of scope
"F841", # unused locals (e.g. validation-only tokenizer load, WIP flags) - not touching NLP logic blind
"F811", # regex imported as `re` intentionally shadows stdlib re for extended regex features
]
[lint.per-file-ignores]
"tests/*" = ["F401", "F841"]
"scripts/*" = ["E402"]