Commit 5a39ccd
fix: merging in CI (#209)
* fix(ci): handle non-interactive mode for missing field prompts
- Add auto-detection of 'sub' field based on conference name keywords
- Define default 'sub' value (PY) for conferences without keyword match
- Skip interactive prompts in CI environments (when stdin is not a tty)
- Fixes EOF error when CI tries to prompt for missing conference fields
The fill_missing_required function now:
1. Tries to auto-detect 'sub' using existing subs.yml keywords
2. Falls back to DEFAULT_SUB (PY) in non-interactive mode
3. Skips prompts for other required fields in CI (leaves as NaN for validation)
* fix(subs): use module-relative path for subs.yml loading
- Change load_subs() to use Path(__file__).parent for robustness
- Add fallback in _load_subs_keywords() if loading fails
- Prevents failures when script is run from non-root directories
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix(docs): fix docstring format for docsig compliance
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix(docs): use numpy-style docstrings with type on separate line
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent f7443b1 commit 5a39ccd
3 files changed
Lines changed: 80 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
102 | 155 | | |
103 | 156 | | |
104 | 157 | | |
| |||
110 | 163 | | |
111 | 164 | | |
112 | 165 | | |
| 166 | + | |
| 167 | + | |
113 | 168 | | |
114 | 169 | | |
115 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
116 | 188 | | |
117 | 189 | | |
118 | 190 | | |
| |||
0 commit comments