Commit graph

27 commits

Author SHA1 Message Date
Mathieu Comandon 24f8fee432 Re-enable imports sorting 2024-02-24 21:14:32 -08:00
Mathieu Comandon 38fbe9f05e Ruff reformat 2024-02-24 21:02:06 -08:00
Mathieu Comandon a663f8006e Accept more formats in the playtime edit widget, add tests 2024-01-10 18:26:41 -08:00
Daniel Johnson 4b0592c8cd Update unit tests to represent the new rounding behavior
Truncating the minutes part of a playtime was unstable; format(parse(x) didn't result in 'x'; rounding fixes that. But the unit tests were impacted, so let's update them.

Resolves #5191
2023-12-17 17:21:03 -05:00
Daniel Johnson 2eec736fd9 Replace add_url_tags() with gtk_safe_urls(), which does both conversion and escaping.
add_url_tags() isn't correct- it does not handle escaping and can't be safely combined with gtk_safe(), as is done in two places.

But URLs can explicitly contain &, and that must be escaped. Text not inside URLs needs to be escaped, but escaping before or after the anchors breaks the URLs.

This function splits the text up into URLs and not-URLs and handles each case.
2023-11-04 07:36:28 -04:00
Mathieu Comandon 97600fdca7 Remove 'and' between hours and minutes 2023-08-25 17:00:39 -07:00
Daniel Johnson 14ae02536e First cut at version compatibility restrictions
This code looks for a '.lutris_compat.json' file at the root of a
component's version's directory.

This contains, in JSON, the minimum Lutris version required. If Lutris
finds this to be too late, it will try earlier versions.

The code is messy and this could download a lot of versions, since
it tries them one at a time. But it's a start.
2023-05-29 11:37:44 -07:00
Mathieu Comandon bb0b483cd0 Fix tests 2022-03-15 21:14:31 -07:00
Alexander Ravenheart f5e8e007b3 - Replaced pipenv with poetry
- Updated min version check in setup.py to Python 3.6
- Updated isort config file and calls to align with v5.x
- Added init-hook for gi imports in .pylintrc to avoid invalid no-member issues
- Makefile: added lock, show-tree, bandit, black, mypy; updated test, cover, dev, isort, autopep8, check, isort-check, flake8, pylint; removed req, requirements;
- Updated .travis.yml to use poetry and make
- Added my email in AUTHORS
- Updated CONTRIBUTING.md
- Updated lint_python.yml to use poetry and make, reorganized instructions to have all install related steps first
- sorted imports: lutris, lutris-wrapper, cleanup_prefix.py and multiple files in tests dir
2021-11-17 21:17:43 -08:00
Mathieu Comandon 6131f50a25 Add tests for get_formatted_playtime 2021-01-13 21:12:42 -08:00
Mathieu Comandon 5b9d55d08d Implement save button for logs (Closes #1988) 2020-10-05 23:17:13 -07:00
Mathieu Comandon 0ff96b94ab Sort by suffix first for versions (Closes #3059) 2020-10-05 22:18:10 -07:00
Mathieu Comandon c6e017f36a Move game bar to the bottom 2020-10-03 04:51:11 -07:00
Jordan Christiansen 105cb10cbb Add a failing test for slugify
slugify removes all non-ASCII characters. For names that contain only
non-ASCII characters, this is a problem.
2020-07-13 21:00:06 -07:00
Mathieu Comandon 7be6264aad Return better formatted play times (Closes #1562) 2019-01-12 02:24:03 -08:00
Mathieu Comandon f06b1d41d4 Create utility package for Steam 2018-11-18 22:21:47 -08:00
Mathieu Comandon 308e6741ae Extract parse_version from version_sort 2018-05-08 02:50:49 -07:00
Mathieu Comandon 1a750889a6 Fix substitutions on keys with dashes 2017-12-13 22:37:07 -08:00
Mathieu Comandon e01cb320b3 Add unpack_dependencies function 2016-10-20 15:48:33 -07:00
Mathieu Comandon 19846caebd Write ConfigParser content as byte (Fixes #369) 2016-09-28 14:44:52 -07:00
Mathieu Comandon 1030d16862 Add version_sort utility function 2016-08-19 20:23:34 -07:00
Mathieu Comandon b60dce5612 Fix some unittests 2015-11-13 00:34:11 -08:00
Mathieu Comandon 817fb2eaaa Make links clickable in installer messages 2014-01-24 19:59:40 +01:00
Mathieu Comandon e8d30424bb Add steam utils 2013-11-17 05:27:33 +01:00
Mathieu Comandon c872fe38d7 Initial Steam for Linux support 2013-10-07 09:11:20 +02:00
Mathieu Comandon fe660706b5 Test for filename substitution 2013-07-11 14:42:30 +02:00
Mathieu Comandon df02c92936 Preliminar support for Wine installers (WIP) 2013-07-11 09:18:15 +02:00