mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 06:58:11 -05:00
use class Foo: instead of class Foo(): (#1797)
* use class Foo: instead of class Foo(): * add ruff linter, copy settings from .flake8 to ruff.toml
This commit is contained in:
43
ruff.toml
Normal file
43
ruff.toml
Normal file
@@ -0,0 +1,43 @@
|
||||
tab-size = 2
|
||||
|
||||
select = [
|
||||
"F",
|
||||
"W6",
|
||||
"E71",
|
||||
"E72",
|
||||
"E112",
|
||||
"E113",
|
||||
# "E124",
|
||||
"E203",
|
||||
"E272",
|
||||
# "E303",
|
||||
# "E304",
|
||||
# "E502",
|
||||
"E702",
|
||||
"E703",
|
||||
"E731",
|
||||
"W191",
|
||||
"UP039", # unnecessary-class-parentheses
|
||||
]
|
||||
|
||||
exclude = [
|
||||
"disassemblers/",
|
||||
"docs/",
|
||||
"examples/",
|
||||
"extra/",
|
||||
"models/",
|
||||
"openpilot/",
|
||||
]
|
||||
|
||||
[per-file-ignores]
|
||||
"test/*" = [
|
||||
"F401",
|
||||
"F403",
|
||||
"F405",
|
||||
"F541",
|
||||
"E722",
|
||||
"E731",
|
||||
"F811",
|
||||
"F821",
|
||||
"F841",
|
||||
]
|
||||
Reference in New Issue
Block a user