hysts HF staff commited on
Commit
d39aaee
·
1 Parent(s): ba2deaf

Update ruff settings

Browse files
Files changed (1) hide show
  1. pyproject.toml +31 -54
pyproject.toml CHANGED
@@ -55,60 +55,37 @@ lumaai-gradio = { git = "https://github.com/AK391/lumaai-gradio.git" }
55
  cohere-gradio = { git = "https://github.com/AK391/cohere-gradio.git" }
56
 
57
  [tool.ruff]
58
- # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
59
- select = ["E", "F"]
60
- ignore = ["E501"] # line too long (black is taking care of this)
61
  line-length = 119
62
- fixable = [
63
- "A",
64
- "B",
65
- "C",
66
- "D",
67
- "E",
68
- "F",
69
- "G",
70
- "I",
71
- "N",
72
- "Q",
73
- "S",
74
- "T",
75
- "W",
76
- "ANN",
77
- "ARG",
78
- "BLE",
79
- "COM",
80
- "DJ",
81
- "DTZ",
82
- "EM",
83
- "ERA",
84
- "EXE",
85
- "FBT",
86
- "ICN",
87
- "INP",
88
- "ISC",
89
- "NPY",
90
- "PD",
91
- "PGH",
92
- "PIE",
93
- "PL",
94
- "PT",
95
- "PTH",
96
- "PYI",
97
- "RET",
98
- "RSE",
99
- "RUF",
100
- "SIM",
101
- "SLF",
102
- "TCH",
103
- "TID",
104
- "TRY",
105
- "UP",
106
- "YTT",
107
- ]
108
 
109
- [tool.isort]
110
- profile = "black"
111
- line_length = 119
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
- [tool.black]
114
- line-length = 119
 
55
  cohere-gradio = { git = "https://github.com/AK391/cohere-gradio.git" }
56
 
57
  [tool.ruff]
 
 
 
58
  line-length = 119
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
+ [tool.ruff.lint]
61
+ select = ["ALL"]
62
+ ignore = [
63
+ "COM812", # missing-trailing-comma
64
+ "D203", # one-blank-line-before-class
65
+ "D213", # multi-line-summary-second-line
66
+ "E501", # line-too-long
67
+ "SIM117", # multiple-with-statements
68
+ ]
69
+ extend-ignore = [
70
+ "D100", # undocumented-public-module
71
+ "D101", # undocumented-public-class
72
+ "D102", # undocumented-public-method
73
+ "D103", # undocumented-public-function
74
+ "D104", # undocumented-public-package
75
+ "D105", # undocumented-magic-method
76
+ "D107", # undocumented-public-init
77
+ "EM101", # raw-string-in-exception
78
+ "FBT001", # boolean-type-hint-positional-argument
79
+ "FBT002", # boolean-default-value-positional-argument
80
+ "PD901", # pandas-df-variable-name
81
+ "PGH003", # blanket-type-ignore
82
+ "PLR0913", # too-many-arguments
83
+ "PLR0915", # too-many-statements
84
+ "TRY003", # raise-vanilla-args
85
+ ]
86
+ unfixable = [
87
+ "F401", # unused-import
88
+ ]
89
 
90
+ [tool.ruff.format]
91
+ docstring-code-format = true