Commit Graph

7535 Commits

Author SHA1 Message Date
Laurent Monin
329f26acb6 Lint (again) 2020-05-13 11:05:10 +02:00
Laurent Monin
ae7342447f Only show script functions doc dialog once
Note: I tried to use SingletonDialog, without success
2020-05-13 11:05:10 +02:00
Laurent Monin
bea8ffd23f Lint 2020-05-13 11:05:10 +02:00
Laurent Monin
c10e5fd4a0 Add a button to Options > Scripting to display documentation 2020-05-13 11:05:10 +02:00
Laurent Monin
0b604cdc0b Embed more script function docs 2020-05-13 11:05:10 +02:00
Laurent Monin
66632e9761 Sort script functions documentation 2020-05-13 11:05:10 +02:00
Laurent Monin
d52bfd83b1 Make markdown module optional, fix tests accordingly 2020-05-13 11:05:09 +02:00
Laurent Monin
b284c841c4 Also test FunctionRegistryItem() 2020-05-13 11:05:09 +02:00
Laurent Monin
7d0e185a85 Fix up script function documentation tests
- ensure registry is empty
- use actual html code as returned by markdown
- split code among different test methods
2020-05-13 11:05:09 +02:00
Laurent Monin
7508cbf743 Reduce code redundancy, add helpers assertStartswith() and assertEndswith() 2020-05-13 11:05:09 +02:00
Laurent Monin
310bed488a Add script_function_documentation_all() to dump all script functions documentation 2020-05-13 11:05:09 +02:00
Laurent Monin
a7680bf75e script_function_documentation(): returns function doc in wanted format, add tests 2020-05-13 11:05:09 +02:00
Laurent Monin
e94692eaef Script functions: use markdown module to return html documentation 2020-05-13 11:05:09 +02:00
Laurent Monin
7f150ce480 Script functions: add support for documentation 2020-05-13 11:05:09 +02:00
Laurent Monin
1a46f9426b Convert FunctionRegistryItem namedtuple to a class 2020-05-13 11:05:09 +02:00
RaysDev
135e153a6c Extracted reusable code from searchdialog.py
TableBasedDialog allows implementing similar result dialogs.
2020-05-13 11:05:09 +02:00
Philipp Wolfer
fb83a8e76b Enable flake8 E265: Block comment should start with '# '
Most changes involve replacing non-breaking space with a simple space after the #.
2020-05-13 11:03:13 +02:00
Philipp Wolfer
909ea667b8 Check code style of tests with flake8 2020-05-13 11:03:13 +02:00
Julius Michaelis
c7066f5c6f Make PyQt5.QtDBus optional 2020-05-13 11:00:05 +02:00
Philipp Wolfer
ee8b88cf2a Avoid using ambiguous variable name "l"
Fixes the issue E741 reported by flake8 >= 3.8.
https://www.flake8rules.com/rules/E741.html
2020-05-12 19:33:13 +02:00
Gabriel Ferreira
20332e8260 Updated copyright notice for changes in 1e07495 2020-05-09 10:56:35 +02:00
Philipp Wolfer
a3bb51993f PICARD-1813: Fixed calling $title with empty value 2020-05-09 10:46:57 +02:00
Philipp Wolfer
1c4e6887f1 Use PyQt 5.14.2 for Windows builds 2020-05-07 10:18:17 +02:00
Philipp Wolfer
7dc8306389 NEWS: Consistent formatting of script function names 2020-05-07 09:04:26 +02:00
Philipp Wolfer
3881261fc0 Release 2.3.2 2020-05-06 11:33:20 +02:00
Philipp Wolfer
7c83c45e02 Updated translations 2020-05-06 10:53:54 +02:00
Gabriel Ferreira
1e07495c26 PICARD-1809: Load based on extensions, fallback to guessing if it fails 2020-05-01 01:29:34 +02:00
Philipp Wolfer
4138db5430 ci: fixed macOS builds not finding msgfmt 2020-04-30 15:12:55 +02:00
Philipp Wolfer
fdfd796ec4 Updated translations 2020-04-18 10:36:52 +02:00
Philipp Wolfer
69e6c8c8c8 Ensure using UTF-8 encoding when running update_constants 2020-04-18 00:57:19 +02:00
Philipp Wolfer
9b4c63f3f1 PICARD-1791: Ignore Qt's network inaccessible state
Qt's network monitoring sometimes reports falsly the network being inaccessible. Ignore this state and rely on handling request errors.
2020-04-18 00:43:38 +02:00
Philipp Wolfer
ac91895629 PICARD-1803: Fixed decamelcasing relationship attributes
EWI must not become E W I
2020-04-17 22:02:10 +02:00
Philipp Wolfer
b50b14a093 Upgrade to fpcalc 1.5.0 for Windows and macOS builds 2020-04-17 22:00:29 +02:00
Undearius
df85263762 PICARD-1800: Simplify Unicode 'Bullet' to ASCII 'Hyphen-minus' 2020-03-29 12:45:15 +02:00
Philipp Wolfer
f812681092 PICARD-1795: Allow deleting iTunNORM and iTunPGAP tags from ID3 2020-03-28 20:01:58 +00:00
Bob Swift
bf5e38689d Update copyright year to 2020 2020-03-22 09:45:30 +00:00
Ray
afcab0f779 Parse additional fields from the AcoustId response 2020-03-18 08:41:04 +00:00
Philipp Wolfer
3de4a31e1a Use String.format for assembling plugin descriptions 2020-03-13 06:48:53 +00:00
Philipp Wolfer
f0393d840c PICARD-1790: Fix crash when selecting plugins with update 2020-03-13 06:48:53 +00:00
Laurent Monin
04a98581a3 Merge pull request #1514 from rdswift/fix_function_location_info_and_add_to_runtimeerror_tests
Fix function line, column in ScriptRuntimeError.  Add tests.
2020-03-07 01:19:16 +01:00
Bob Swift
2b07885c69 Add missing formatting code. Update test for missing code. 2020-03-06 14:18:57 -07:00
Philipp Wolfer
3a1d6edfcb Merge pull request #1518 from phw/increase-formats-test-coverage
Increase formats test coverage and fix discovered issues
2020-03-06 18:33:51 +00:00
Philipp Wolfer
cea54fe7c8 Minor code cleanup in formats.id3 2020-03-06 19:32:57 +01:00
Bob Swift
46937bab8b Combine StackItem classes into one. Standardize exception prefix text. 2020-03-06 10:18:07 -07:00
Philipp Wolfer
b2a850c007 PICARD-1788: Fix case-insensitive saving of ID3 TXXX frames 2020-03-06 17:05:04 +01:00
Philipp Wolfer
96e429f83a PICARD-1787: ID3 fix deleting case-insensitive TXXX frames 2020-03-06 17:00:53 +01:00
Philipp Wolfer
880a3c3443 Added ID3 tests for deleting tags in __rename_freetext 2020-03-06 16:45:32 +01:00
Philipp Wolfer
bb4c417d04 PICARD-1786: Fix ID3 deleting multiple TIPL items with same role
Added tests for deleting TIPL entries from ID3, fixed issue of multiple people with same role not getting removed.
2020-03-06 16:45:25 +01:00
Philipp Wolfer
80b1b9ea93 PICARD-1785: Fix deleting ID3 tags with explicit ~id3: syntax 2020-03-06 16:41:26 +01:00
Philipp Wolfer
062e75afb8 Test saving license to ID3 2020-03-06 13:47:38 +01:00