-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathsettings.json
More file actions
56 lines (56 loc) · 1.49 KB
/
settings.json
File metadata and controls
56 lines (56 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"files.exclude": {
"**/__pycache__": true,
"**/.git": true,
"**/.DS_Store": true
},
"editor.wordWrapColumn": 88,
"editor.rulers": [88],
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
},
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": ["tests"],
"flake8.enabled": true,
"flake8.importStrategy": "fromEnvironment",
"flake8.path": ["${interpreter}", "-m", "flake8"],
// Point flake8 to use your existing config file automatically
"flake8.args": [
"--max-line-length=88",
"--max-complexity=10",
"--select=E,F,W",
"--extend-ignore=E203,W503",
"--exclude=.venv",
"--per-file-ignores=tests/test_main.py:E501"
],
// Exclude files/folders you don’t want to lint (matching Black’s exclude)
"flake8.ignorePatterns": [
"**/.git/**",
"**/.github/**",
"**/.pytest_cache/**",
"**/.venv/**",
"**/.vscode/**",
"**/assets/**",
"**/htmlcov/**",
"**/postman_collections/**",
"**/scripts/**",
"**/tools/**",
"**/storage/**",
"**/__pycache__/**",
"**/tests/test_main.py"
],
"flake8.severity": {
"convention": "Information",
"error": "Error",
"fatal": "Error",
"refactor": "Hint",
"warning": "Warning",
"info": "Information"
},
"sonarlint.connectedMode.project": {
"connectionId": "nanotaboada",
"projectKey": "nanotaboada_python-samples-fastapi-restful"
}
}