hysts HF Staff commited on
Commit
b60b1aa
·
1 Parent(s): f38505e

Update ruff config

Browse files
Files changed (1) hide show
  1. pyproject.toml +3 -5
pyproject.toml CHANGED
@@ -23,8 +23,7 @@ ignore = [
23
  "D213", # multi-line-summary-second-line
24
  "E501", # line-too-long
25
  "SIM117", # multiple-with-statements
26
- ]
27
- extend-ignore = [
28
  "D100", # undocumented-public-module
29
  "D101", # undocumented-public-class
30
  "D102", # undocumented-public-method
@@ -35,7 +34,6 @@ extend-ignore = [
35
  "EM101", # raw-string-in-exception
36
  "FBT001", # boolean-type-hint-positional-argument
37
  "FBT002", # boolean-default-value-positional-argument
38
- "PD901", # pandas-df-variable-name
39
  "PGH003", # blanket-type-ignore
40
  "PLR0913", # too-many-arguments
41
  "PLR0915", # too-many-statements
@@ -45,8 +43,8 @@ unfixable = [
45
  "F401", # unused-import
46
  ]
47
 
48
- [tool.ruff.lint.per-file-ignores]
49
- "*.ipynb" = ["T201"]
50
 
51
  [tool.ruff.format]
52
  docstring-code-format = true
 
23
  "D213", # multi-line-summary-second-line
24
  "E501", # line-too-long
25
  "SIM117", # multiple-with-statements
26
+ #
 
27
  "D100", # undocumented-public-module
28
  "D101", # undocumented-public-class
29
  "D102", # undocumented-public-method
 
34
  "EM101", # raw-string-in-exception
35
  "FBT001", # boolean-type-hint-positional-argument
36
  "FBT002", # boolean-default-value-positional-argument
 
37
  "PGH003", # blanket-type-ignore
38
  "PLR0913", # too-many-arguments
39
  "PLR0915", # too-many-statements
 
43
  "F401", # unused-import
44
  ]
45
 
46
+ [tool.ruff.lint.pydocstyle]
47
+ convention = "google"
48
 
49
  [tool.ruff.format]
50
  docstring-code-format = true