Update helix/ruff confs
- Support autoformatting Javascript in Helix - Update Ruff to use modern config idioms
This commit is contained in:
parent
c528134912
commit
651a2da9be
2 changed files with 6 additions and 2 deletions
|
@ -14,3 +14,7 @@ command = "ruff-lsp"
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "markdown"
|
name = "markdown"
|
||||||
soft-wrap.enable = true
|
soft-wrap.enable = true
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "javascript"
|
||||||
|
auto-format = true
|
||||||
|
|
|
@ -9,7 +9,7 @@ preview = true
|
||||||
# Dismissed selections:
|
# Dismissed selections:
|
||||||
# - CPY: Copyright notice screamer; I don't care
|
# - CPY: Copyright notice screamer; I don't care
|
||||||
# - TD: Overly opinionated on FIXME/TODO format. FIX covers better
|
# - TD: Overly opinionated on FIXME/TODO format. FIX covers better
|
||||||
select = [
|
lint.select = [
|
||||||
"ANN", # enforce type annotations
|
"ANN", # enforce type annotations
|
||||||
"A", # prevent using keywords that clobber python builtins
|
"A", # prevent using keywords that clobber python builtins
|
||||||
"ARG", # argument usage checking
|
"ARG", # argument usage checking
|
||||||
|
@ -40,7 +40,7 @@ select = [
|
||||||
"W", # pycodestyle warnings
|
"W", # pycodestyle warnings
|
||||||
]
|
]
|
||||||
|
|
||||||
ignore = [
|
lint.ignore = [
|
||||||
"ANN101", # No type hint for "self" - not necessary and makes noisy code
|
"ANN101", # No type hint for "self" - not necessary and makes noisy code
|
||||||
"D203", # Blank line required before class docstring - conflicts with ruff's own formatter
|
"D203", # Blank line required before class docstring - conflicts with ruff's own formatter
|
||||||
"D211", # No line before class, incompatible with D203 - one line before class
|
"D211", # No line before class, incompatible with D203 - one line before class
|
||||||
|
|
Loading…
Add table
Reference in a new issue