-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pynchon.json5
116 lines (102 loc) · 2.83 KB
/
.pynchon.json5
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{ // BEGIN: top-level pynchon config
// Everything here is optional.
// Literals only; no templating please!
"plugins": [
"globals", "render", "gen", "project",
"plugins", "jinja", "git", "core", "github", "dockerhub",
"python", "pypi", "python-api", "python-cli", "python-libcst",
],
// END: top-level config
// BEGIN: core plugins-config
"python-libcst":{
// .libcst.codemod.yaml file:
// leave this empty to use a static one
// that's already present. fill it in
// to have it recreated when needed and
// use pynchon's context for templating it
".libcst.codemod.yaml": {
"repo_root": "{{src.root}}",
"generated_code_marker": "@generated",
"formatter": ["black", "-"],
"blacklist_patterns": [],
"modules": [
"libcst.codemod.commands",
"pynchon.codemod.commands",
],
},
},
// Config for `globals` plugin: (priority=..)
// All well-behaved plugins will honor values here, appending
// these values to whatever is set explicitly for that plugin
"globals": {
"exclude_patterns": [
".*[.]pyc",
".*_version[.]py",
"**/tests/fixtures/**",
"**/build/lib/**",
"**/*.egg-info/**",
],
},
// Config for `src` plugin:
// This provides find/search tooling, plus file-header generators, etc
"src": {
"root": "{{pynchon.root}}/src",
"exclude_patterns": [],
"include_patterns": [
"{{src.root}}/**/*.py",
"{{src.root}}/**/*.j2",
],
"goals": [],
},
// Config for `tests` plugin:
// ...
"tests": {
"root": "{{pynchon.root}}/tests",
"include_patterns": ["**/*.py",],
"suite_patterns": ["*/",],
},
// Config for `docs` plugin:
// Runs a webserver to open docs-files
"docs": {
"root": "{{pynchon.root}}/docs",
"include_patterns": [
"{{pynchon.root}}/*.md",
"{{docs.root}}/**/*.md",
"{{docs.root}}/**/*.html",
],
"apply_hooks": [],
},
// Config for `dockerhub` plugin:
"dockerhub":{
"org_name": "robotwranglers",
"repo_name": "aws-ssm-tool",
},
// END: core plugins-config
// BEGIN: other plugins-config
// Config for `github` plugin:
"github": {},
// Config for `hooks` plugin:
"hooks": {},
// Config for `jinja` plugin:
// Planner for finding/rendering project .j2 files
"jinja":{
"context_vars": {},
"filter_includes": [],
"exclude_patterns": [],
"template_includes": [
// Paths to load includes from.
// (Used in templates as `{% include .. %}`)
"{{docs.root}}/includes",
],
},
// Config for `python-platform` plugin:
"python":{},
// Config for `python-api` plugin:
// This generates API docs for python-packages
"python-api":{
"skip_private_methods": true,
"skip_patterns": [],
},
// Config for `pypi` plugin:
"pypi": {},
}