-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython.json
More file actions
40 lines (40 loc) · 1.03 KB
/
python.json
File metadata and controls
40 lines (40 loc) · 1.03 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
{
"id": "python",
"applyToGlob": "**/*.{py,pyi,md}",
"structureRelevant": ["src", "tests", "packages"],
"rules": [
{
"if": { "toolingIncludes": ["poetry"] },
"set": { "tooling": "Poetry" }
},
{
"if": { "toolingIncludes": ["pipenv"] },
"set": { "tooling": "Pipenv" }
},
{
"if": { "toolingIncludes": ["pyproject"] },
"set": { "tooling": "pyproject.toml" }
},
{
"if": { "toolingIncludes": ["ruff"] },
"set": { "codeStyle": "ruff" }
},
{
"if": { "toolingIncludes": ["black"] },
"set": { "codeStyle": "black" }
},
{
"if": { "toolingIncludes": ["flake8"] },
"set": { "codeStyle": "flake8" }
},
{
"if": { "testingIncludes": ["unittest"] },
"set": { "testingUT": "unittest" }
},
{
"if": { "testingIncludes": ["behave"] },
"set": { "testingUT": "behave" }
}
],
"summaryMessage": "We generated Python-first defaults. Spot something missing? Add more signals under conventions/python.json."
}