Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-10-04 | dependencies: Dependency.sources can have CustomTargets | Dylan Baker | 1 | -5/+6 | |
2021-10-04 | modules/external_project: clean up and sort modules | Dylan Baker | 1 | -6/+7 | |
2021-10-04 | remove printf debugging | Eli Schwartz | 1 | -1/+0 | |
Why did this dumb thing of mine ever get committed??? | |||||
2021-10-04 | docs: Temporarily disable modules and move RefMan --> Reference-manual | Daniel Mensinger | 6 | -7/+16 | |
2021-10-04 | condense lines | Eli Schwartz | 4 | -22/+11 | |
2021-10-04 | f-strings | Eli Schwartz | 13 | -77/+66 | |
2021-10-04 | use list unpacking to simplify for loop references | Eli Schwartz | 1 | -4/+5 | |
2021-10-04 | fix extra whitespace | Eli Schwartz | 18 | -28/+0 | |
discovered via flake8 --select E303 | |||||
2021-10-04 | flake8: extend the ignore list, do not override | Eli Schwartz | 1 | -1/+1 | |
Some things are disabled by default because most people are not interested in them. But (non-obviously) adding a list of ignores to the flake8 configuration file will actually turn back on anything you didn't explicitly specify. This reduces the number of flake8 warnings by about 100, a vast chunk of which are E704 multiple statements on one line (def) which turn out to actually be T.overload or typing definitions with def func(): ... which is understandably quite reasonable to permit. | |||||
2021-10-04 | use idiomatic python for membership tests | Eli Schwartz | 1 | -1/+1 | |
"X not in Y" is preferred over "not X in Y", as the former is more readable. | |||||
2021-10-04 | remove useless variables that are no longer or were never used | Eli Schwartz | 3 | -3/+1 | |
2021-10-04 | work around flake8 F811 for T.overload redefined functions | Eli Schwartz | 2 | -4/+4 | |
Since typing != T as far as flake8 is aware, give the linter an extra hint. | |||||
2021-10-04 | remove double import | Eli Schwartz | 1 | -2/+2 | |
Imported both inside and outside of T.TYPE_CHECKING, the runtime import can be removed by quote-deferring one of the use sites. Update: In between then and now, this got removed from T.TYPE_CHECKING, move it back there rather than preserving the runtime import. | |||||
2021-10-04 | remove f from f-string that has no formatting | Eli Schwartz | 3 | -3/+3 | |
2021-10-04 | fix incorrect porting from % formatting to .format method | Eli Schwartz | 1 | -1/+1 | |
(var,) is the correct way to pass values to a percent formatted string, but not to .format so we would end up printing something like: unexpected input at line (4,) Upgrade to an f-string and insert the correct value correctly. | |||||
2021-10-04 | coding style: don't format an empty string with another string | Eli Schwartz | 1 | -1/+1 | |
'{}'.format('foo') for any given value of 'foo' (in this case, a function returning a string), can always just be 'foo' directly, which is a lot more readable. | |||||
2021-10-04 | better error message for modules returning the wrong value | Eli Schwartz | 1 | -1/+1 | |
2021-10-04 | various python neatness cleanups | Eli Schwartz | 16 | -27/+27 | |
All changes were created by running "pyupgrade --py3-only" and committing the results. Although this has been performed in the past, newer versions of pyupgrade can automatically catch more opportunities, notably list comprehensions can use generators instead, in the following cases: - unpacking into function arguments as function(*generator) - unpacking into assignments of the form x, y = generator - as the argument to some builtin functions such as min/max/sorted Also catch a few creeping cases of new code added using older styles. | |||||
2021-10-04 | Merge pull request #8960 from mensinda/yamlDoc | Jussi Pakkanen | 152 | -3097/+6918 | |
Reference Manual 2.0 | |||||
2021-10-04 | Minor fixups | Daniel Mensinger | 6 | -9/+51 | |
2021-10-04 | interpreter: improve the error message about install_mode | Zbigniew Jędrzejewski-Szmek | 1 | -12/+11 | |
We wrote: ERROR: install_emptydir keyword argument "install_mode" permissions string must be exactly 9 characters, got "4" in the form rwxr-xr-x Let's change this around to be easier to read. Also, 1-based numbering was used (for components) and 0-based for "bits". And actually the "bits" are not bits, but octal digits. So say "permissions character 1", "permissions character 2". And finally change "must be … if provided" to "can only be". (If it isn't provided, it "is not", so the sentence is still valid. The user will only get this error if they provide something, so we don't need to be super precise and say "if provided". And then we avoid confusing the reader whether it's "if provided" attaches to the the "False" or to the whole sentence.) | |||||
2021-10-03 | fix typo in error message breaking newline escape | Eli Schwartz | 1 | -1/+1 | |
Broken in commit 3feaea6b29197cd224fbce0ac65fd43d08c3beac. | |||||
2021-10-03 | modules/i18n: fix gettext use of --datadirs param | Dan Streetman | 1 | -1/+1 | |
The previous commit bd2fcb268b9ff48797bebb6a2ef94d2741234191 accidentally used the wrong var so the param name was missing, leading to an error of "unrecognized arguments" for the datadirs parameter value. | |||||
2021-10-03 | cmake module: if cmake cannot be found, do not traceback | Eli Schwartz | 1 | -0/+3 | |
We ended up passing a NoneType as the program binary, which is a very awkward way to communicate an error when failing to write a basic package version file. | |||||
2021-10-03 | docs: Update YAML docs after rebase | Daniel Mensinger | 4 | -13/+59 | |
2021-10-03 | docs: Add myself to CODEOWNERS for docs/refman | Daniel Mensinger | 1 | -0/+1 | |
2021-10-03 | docs: Added new static docs | Daniel Mensinger | 2 | -0/+11 | |
2021-10-03 | docs: Fix mypy | Daniel Mensinger | 4 | -3/+4 | |
2021-10-03 | docs: added install_tag docs | Daniel Mensinger | 6 | -18/+71 | |
2021-10-03 | docs: added unset_variable() | Daniel Mensinger | 1 | -0/+11 | |
2021-10-03 | docs: Document documenting Meson | Daniel Mensinger | 2 | -0/+191 | |
2021-10-03 | docs: Fix broken links | Daniel Mensinger | 30 | -91/+74 | |
2021-10-03 | docs: Use a custom hotdoc extension for links to RefMan | Daniel Mensinger | 7 | -77/+171 | |
2021-10-03 | docs: Remove the old Reference manual | Daniel Mensinger | 2 | -2997/+0 | |
2021-10-03 | docs: Fixes found during the YAML conversion process | Daniel Mensinger | 2 | -1/+5 | |
2021-10-03 | docs: Fix the GitHub action | Daniel Mensinger | 1 | -2/+2 | |
2021-10-03 | docs: Hook up the new RefMan generator to Meson | Daniel Mensinger | 3 | -5/+27 | |
2021-10-03 | docs: Added Markdown generator | Daniel Mensinger | 11 | -0/+662 | |
2021-10-03 | docs: Added pickle generator | Daniel Mensinger | 2 | -1/+30 | |
2021-10-03 | docs: Add the YAML Reference manual | Daniel Mensinger | 92 | -0/+4885 | |
2021-10-03 | docs: Initial reference manual generator | Daniel Mensinger | 9 | -1/+784 | |
2021-10-02 | Improve linker detection failure error message. | Jussi Pakkanen | 1 | -3/+5 | |
2021-10-01 | rust: dependencies need to cause a rebuild/relink not just reorder | Dylan Baker | 5 | -1/+70 | |
Otherwise changes to a dependency don't propogate | |||||
2021-09-30 | modules/i18n: Fix remaining mypy spotted issues | Dylan Baker | 2 | -21/+33 | |
2021-09-30 | modules/i18n: use typed_kwargs for gettext | Dylan Baker | 1 | -19/+50 | |
There were two allowed kwargs that were unused, I've dropped them for now, though I need to check if they were documented. If they are then we need to deprecate them to remove them, otherwise we'll just leave them removed. | |||||
2021-09-30 | modules/i18n: Use typed_kwargs for merge_file | Dylan Baker | 1 | -26/+61 | |
2021-09-30 | modules/i18n: use typed_pos_args | Dylan Baker | 1 | -4/+6 | |
2021-09-30 | interpreter: move some of CustomTarget's args to type_checking | Dylan Baker | 2 | -32/+61 | |
As there are so many wrappers that need these as well | |||||
2021-09-30 | modules/i18n: add easy type annotations | Dylan Baker | 1 | -7/+12 | |
2021-09-30 | modules/i18n: sort and clean up imports | Dylan Baker | 1 | -5/+7 | |