Skip to content

Commit cda0186

Browse files
authored
[resoto][chore] Update pylintrc and devcontainer files (#1717)
1 parent 8e207a8 commit cda0186

File tree

3 files changed

+12
-49
lines changed

3 files changed

+12
-49
lines changed

.devcontainer/devcontainer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
"extensions": [
2525
"mhutchie.git-graph",
2626
"mutantdino.resourcemonitor",
27-
"ms-toolsai.jupyter"
27+
"ms-toolsai.jupyter",
28+
"ms-python.mypy-type-checker",
29+
"ms-python.pylint",
30+
"ms-python.flake8"
2831
],
2932
"settings": {
3033
// formatting

.pylintrc

-46
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ confidence=
4242
# multiple time. See also the "--disable" option for examples.
4343
enable=
4444
use-symbolic-message-instead,
45-
useless-supression,
4645

4746
# Disable the message, report, category or checker with the given id(s). You
4847
# can either give multiple identifiers separated by comma (,) or put this
@@ -65,7 +64,6 @@ disable=
6564
logging-fstring-interpolation,
6665
wrong-import-order,
6766
fixme,
68-
no-self-use,
6967
unused-argument,
7068
useless-return,
7169
broad-except
@@ -78,11 +76,6 @@ disable=
7876
# mypackage.mymodule.MyReporterClass.
7977
output-format=text
8078

81-
# Put messages in a separate file for each module / package specified on the
82-
# command line instead of printing them on stdout. Reports (if any) will be
83-
# written in a file name "pylint_global.[txt|html]".
84-
files-output=no
85-
8679
# Tells whether to display a full report or only the messages
8780
reports=no
8881

@@ -156,9 +149,6 @@ ignore-long-lines=^\s*(# )?<?https?://\S+>?$
156149
# else.
157150
single-line-if-stmt=no
158151

159-
# List of optional constructs for which whitespace checking is disabled
160-
no-space-check=trailing-comma,dict-separator
161-
162152
# Maximum number of lines in a module
163153
max-module-lines=2000
164154

@@ -191,63 +181,33 @@ include-naming-hint=no
191181
# Regular expression matching correct function names
192182
function-rgx=[a-z_][a-z0-9_]{2,30}$
193183

194-
# Naming hint for function names
195-
function-name-hint=[a-z_][a-z0-9_]{2,30}$
196-
197184
# Regular expression matching correct variable names
198185
variable-rgx=[a-z_][a-z0-9_]{2,30}$
199186

200-
# Naming hint for variable names
201-
variable-name-hint=[a-z_][a-z0-9_]{2,30}$
202-
203187
# Regular expression matching correct constant names
204188
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
205189

206-
# Naming hint for constant names
207-
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
208-
209190
# Regular expression matching correct attribute names
210191
attr-rgx=[a-z_][a-z0-9_]{2,}$
211192

212-
# Naming hint for attribute names
213-
attr-name-hint=[a-z_][a-z0-9_]{2,}$
214-
215193
# Regular expression matching correct argument names
216194
argument-rgx=[a-z_][a-z0-9_]{2,30}$
217195

218-
# Naming hint for argument names
219-
argument-name-hint=[a-z_][a-z0-9_]{2,30}$
220-
221196
# Regular expression matching correct class attribute names
222197
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
223198

224-
# Naming hint for class attribute names
225-
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
226-
227199
# Regular expression matching correct inline iteration names
228200
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
229201

230-
# Naming hint for inline iteration names
231-
inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
232-
233202
# Regular expression matching correct class names
234203
class-rgx=[A-Z_][a-zA-Z0-9]+$
235204

236-
# Naming hint for class names
237-
class-name-hint=[A-Z_][a-zA-Z0-9]+$
238-
239205
# Regular expression matching correct module names
240206
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
241207

242-
# Naming hint for module names
243-
module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
244-
245208
# Regular expression matching correct method names
246209
method-rgx=[a-z_][a-z0-9_]{2,}$
247210

248-
# Naming hint for method names
249-
method-name-hint=[a-z_][a-z0-9_]{2,}$
250-
251211
# Regular expression which should only match function or class names that do
252212
# not require a docstring.
253213
no-docstring-rgx=__.*__
@@ -375,9 +335,3 @@ int-import-graph=
375335
# Exceptions that will emit a warning when being caught. Defaults to
376336
# "Exception"
377337
overgeneral-exceptions=Exception
378-
379-
380-
[pylint.DEPRECATED_BUILTINS]
381-
382-
# List of builtins function names that should not be used, separated by a comma
383-
bad-functions=map,input

.vscode/settings.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@
44
"plugins/k8s/test",
55
"plugins/digitalocean/test",
66
"plugins/aws/test",
7-
"plugins/aws_k8s/test",
87
"plugins/gcp/test",
98
"resotolib/test/core",
109
"resotolib/test",
1110
"resotoworker/test"
1211
],
1312
"python.testing.unittestEnabled": false,
1413
"python.testing.pytestEnabled": true,
15-
"python.formatting.provider": "black"
14+
"python.formatting.provider": "black",
15+
"search.exclude": {
16+
"**/*.code-search": true,
17+
"**/bower_components": true,
18+
"**/jupyterlite": true,
19+
"**/node_modules": true,
20+
},
21+
"search.useParentIgnoreFiles": true
1622
}

0 commit comments

Comments
 (0)