Commit Graph

10 Commits

Author SHA1 Message Date
4101ca6eaa Fix files in the unittests subdir. 2022-01-02 19:07:36 +02:00
3e396b3782 fix: Always explicitly set encoding for text files (fixes #8263) 2021-06-29 11:28:08 +02:00
6a0fabc647 mass rewrite of string formatting to use f-strings everywhere
performed by running "pyupgrade --py36-plus" and committing the results
2021-03-04 17:16:11 -05:00
4340bf34fa various python neatness cleanups
All changes were created by running

"pyupgrade --py3-only --keep-percent-format"

and committing the results. I have not touched string formatting for
now.

- use set literals
- simplify .format() parameter naming
- remove __future__
- remove default "r" mode for open()
- use OSError rather than compatibility aliases
- remove stray parentheses in function(generator) scopes
2021-03-04 17:11:26 -05:00
0d57e307b2 typing: fully annotate tools 2020-09-08 20:15:56 +02:00
630cfd84ad Update dircondenser.py tool to update paths in test.json as well
Update dircondenser.py tool to update paths appearing in the expected
stdout in test.json when the containing directory is renamed.
2020-04-30 20:41:36 +01:00
09b53c534f types: import typing as T (fixes #6333) 2020-01-08 15:28:17 +01:00
6e708208dd CI: add initial type annotation checking 2019-11-07 22:18:21 +02:00
b338add554 Fix flake8 whitespace reports
$ flake8 | grep -E '(E203|E221|E226|E303|W291|W293)'
./mesonbuild/build.py:964:5: E303 too many blank lines (2)
./tools/dircondenser.py:70:36: E221 multiple spaces before operator
2018-09-13 20:33:17 +03:00
10a07ebf70 Add script to condense test directory names. 2018-07-31 19:17:49 +03:00