Commit 2d9ea90
authored
Conformance - fix issues on Windows (unicode, Pyre) (#1976)
* Conformance - fix saving toml results file in non-unicode
Noticed that pyright is giving unicode output that on Windows is leading to issues generating reports later. Saving this output explicitly as unicode resolves the issue.
```python
Generating summary report
Traceback (most recent call last):
File "\typing\conformance\src\main.py", line 260, in <module>
main()
File "\typing\conformance\src\main.py", line 256, in main
generate_summary(root_dir)
File "\typing\conformance\src\reporting.py", line 19, in generate_summary
summary = template.replace("{{summary}}", generate_summary_html(root_dir))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\typing\conformance\src\reporting.py", line 87, in generate_summary_html
results = tomli.load(f)
^^^^^^^^^^^^^
File "src\tomli\_parser.py", line 134, in load
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 110: invalid start byte
```
* Conformance - skip Pyre on Windows as it's not supported1 parent 9df7bdf commit 2d9ea90
File tree
4 files changed
+5
-4
lines changed- conformance
- src
4 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
391 | 391 | | |
392 | 392 | | |
0 commit comments