File tree 1 file changed +39
-0
lines changed
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ file is present in the project, `python-lsp-ruff` will ignore specific options (
40
40
The plugin follows [ python-lsp-server's configuration] ( https://github.com/python-lsp/python-lsp-server/#configuration ) .
41
41
This example configuration using for ` neovim ` shows the possible options:
42
42
43
+ <details open >
44
+ <summary >Lua</summary >
45
+
43
46
``` lua
44
47
pylsp = {
45
48
plugins = {
@@ -66,6 +69,42 @@ pylsp = {
66
69
}
67
70
}
68
71
```
72
+ </details >
73
+
74
+ <details >
75
+ <summary >JSON</summary >
76
+
77
+ ```
78
+ {
79
+ "pylsp": {
80
+ "plugins": {
81
+ "ruff": {
82
+ "enabled": true,
83
+ "formatEnabled": true,
84
+ "executable": "<path-to-ruff-bin>",
85
+ "config": "<path_to_custom_ruff_toml>",
86
+ "extendSelect": [ "I" ],
87
+ "extendIgnore": [ "C90"],
88
+ "format": [ "I" ],
89
+ "severities": {
90
+ "D212": "I"
91
+ },
92
+ "unsafeFixes": false,
93
+ "lineLength": 88,
94
+ "exclude": ["__about__.py"],
95
+ "select": ["F"],
96
+ "ignore": ["D210"],
97
+ "perFileIgnores": {
98
+ "__init__.py": "CPY001"
99
+ },
100
+ "preview": false,
101
+ "targetVersion": "py310"
102
+ }
103
+ }
104
+ }
105
+ }
106
+ ```
107
+ </details >
69
108
70
109
For more information on the configuration visit [ Ruff's homepage] ( https://beta.ruff.rs/docs/configuration/ ) .
71
110
You can’t perform that action at this time.
0 commit comments