Commit graph

11595 commits

Author SHA1 Message Date
Serene-Arc
a6e5201ff3 Apply formatting tools to all files
This is 'the big one', which touches every file so that it all conforms
to the given standard.
2023-10-22 09:53:18 +10:00
Serene-Arc
1196d43285 Update configuration 2023-10-22 09:52:46 +10:00
Serene-Arc
5b1844f737 Add black option 2023-10-22 09:50:33 +10:00
Serene-Arc
8a93ce8cce Add instruction to format with tox 2023-10-22 09:50:33 +10:00
Serene-Arc
cad07f370f Update formatting reference 2023-10-22 09:50:33 +10:00
Serene-Arc
226ea5816c Add pre-commit to docs for devs 2023-10-22 09:50:33 +10:00
Serene-Arc
5177b669b2 Add formatting check workflow 2023-10-22 09:50:33 +10:00
Serene-Arc
e8bf993f6a Update python version 2023-10-22 09:50:33 +10:00
Serene-Arc
15d7d2a7f6 Make flake8 black compatible 2023-10-22 09:50:33 +10:00
Serene-Arc
383fd9a612 Add line length specification 2023-10-22 09:50:33 +10:00
Serene-Arc
e5fe9ca1e5 Add tool configurations 2023-10-22 09:50:33 +10:00
Adrian Sampson
389b68534e
Merge pull request #4964 from arsaboo/spotify_retry
Add retry logic for Spotify
2023-10-21 16:28:20 -04:00
Alok Saboo
f79fd64aeb Simplify loop and update changelog entry 2023-10-21 16:16:51 -04:00
Alok Saboo
b9da57481f Merge remote-tracking branch 'upstream/master' into spotify_retry 2023-10-21 16:16:31 -04:00
Adrian Sampson
59131ea4fc
Merge pull request #4961 from beetbox/fix-ci
Some CI fixes
2023-10-21 15:53:42 -04:00
Alok Saboo
ee42f79b25 Update retry logic 2023-10-21 09:43:01 -04:00
Adrian Sampson
cc0979692b
Better mocking for getfullargspec
Seems much more straightforward this way?
2023-10-20 17:36:21 -04:00
Adrian Sampson
a9e1b607c5
Fix inspect mocking
File this under "I have no idea how this *ever* worked"...
2023-10-20 17:07:35 -04:00
Adrian Sampson
9e86162be0
Remove apparently-wrong assert
This assertion was silently a no-op for years, and it apparently fails.
So since we were not even testing it before, it is at least no worse to
just remove it.
2023-10-20 16:12:06 -04:00
Adrian Sampson
0b382853ed
Style fix 2023-10-20 15:56:37 -04:00
Adrian Sampson
945d917320
Remove Python 3.12-dev CI config
Python 3.12 is now released, so this is what "3.x" uses.
2023-10-20 15:53:16 -04:00
Adrian Sampson
cd3fca3d50
has_calls -> assert_has_calls
AFAICT, `mock.has_calls` *never* existed. It only started emitting a
warning recently. And for some reason I only see this crop up on
Windows? Truly mysterious.
2023-10-20 15:52:12 -04:00
Adrian Sampson
5dee3e6ef4
Ignore docs warnings in all test files
These references were out-of-date as of #4951. Not sure why we were
listing these individually in the first place; it's not like we want to
be strict about docstrings in tests...
2023-10-20 15:28:12 -04:00
Adrian Sampson
efc2cf7013
Merge pull request #4943 from arsaboo/spotify_timeout
Gracefully handle Spotify API errors
2023-10-20 14:32:32 -04:00
Serene
0ccd70de94
Merge pull request #4951 from Serene-Arc/test_separation 2023-10-17 21:12:15 +10:00
Serene-Arc
84c0ab6857 Correctly refactor tests 2023-10-17 19:39:03 +10:00
Serene-Arc
5023887d84 Rename directory 2023-10-17 19:22:11 +10:00
Serene-Arc
e8e1c3b972 Sort plugin tests into specific folder 2023-10-16 12:58:51 +10:00
Alok Saboo
66bf0023ea Merge remote-tracking branch 'upstream/master' into spotify_timeout 2023-10-15 09:36:54 -04:00
Serene
91277a1d53
Merge pull request #4845 from Maxr1998/advancedrewrite 2023-10-15 10:53:34 +10:00
Maxr1998
9660dd6130
Fix remaining linter warnings 2023-10-14 15:00:57 +02:00
Maxr1998
7207699b1a
Add advancedrewrite plugin to changelog 2023-10-14 15:00:57 +02:00
Maxr1998
f809e241ef
Fix linter warnings 2023-10-14 15:00:57 +02:00
Maxr1998
0a4c8e4952
Add advanced rewrite plugin
This plugin allows rewriting fields based on a given library query. This can be helpful, for example, when an artist was renamed but you'd like to keep their older releases under their old name, or if you have a single track from a Various Artists release and want to have it included with the original artist.
2023-10-14 15:00:57 +02:00
J0J0 Todos
d8a6fd6a6a
Merge pull request #3721 from davidswarbrick/ui
Importer UI overhaul rebase/update
2023-10-14 13:18:19 +02:00
Serene-Arc
b35f0546d7 Remove old configuration option 2023-10-14 20:23:47 +10:00
J0J0 Todos
05236d75cf Changelog for #3721 "UI overhaul" and new section
"Major new features:" similar to what we had with 1.6.0.
2023-10-14 10:43:12 +02:00
J0J0 Todos
dfcf256d1e Add anchor at "UI options" in docs
to make linking to it possible.
2023-10-14 10:43:12 +02:00
J0J0 Todos
18dc6dbc73 Fix ref-links in ui:length_diff_thresh docs 2023-10-14 10:43:12 +02:00
J0J0 Todos
5898736c0a Provide a working example in ui:import docs
Instead of just stating config_default.yaml's values, provide a copy/paste-able
example that changes _all_ the values and still kind of works (visually).
2023-10-14 10:43:12 +02:00
J0J0 Todos
81c10a6f5e Improve ui:import description in docs 2023-10-14 10:43:12 +02:00
J0J0 Todos
fabfde33c6 Fix track length comparision in UI code
Fixes behaviour to what we documented already.
2023-10-14 10:43:12 +02:00
Serene-Arc
d875fee722 Add text for docs section 2023-10-14 10:43:12 +02:00
J0J0 Todos
d1166c8efc Add length_diff_thresh description and ref-links
to config reference docs.
2023-10-14 10:43:12 +02:00
J0J0 Todos
5d500223b3 Draft docs update for UI code-overhaul 2023-10-14 10:43:12 +02:00
J0J0 Todos
7ce3b417fc Fix legacy colors config sanity check in ui package
was using Python2 type 'unicode'
2023-10-14 10:43:12 +02:00
David Swarbrick
b4a5e0b3a7 Change default config to improve readability on PuTTY 2023-10-14 10:43:12 +02:00
David Swarbrick
1249380767 Fix handling of whitespace near color codes
Improve the split_into_lines regex and whitespace handling
so that spaces are handled and colored text can be wrapped
Create a new test suite for the color splitting function as
it was previously introducing rogue escape characters when
splitting colorized words.
2023-10-14 10:43:12 +02:00
J0J0 Todos
be290e5444 A large code-overhaul of the beets ui:
- Allow user to change UI colors in config file.
 - "Change Representation" class allows Albums and Track
   matches to reuse similar formatting code
 - Functions to split text into lines for printing
 - Tests for the new UI to check wrapping functions
2023-10-14 10:42:48 +02:00
Serene
821e6296ab
Merge pull request #4940 from AdrienCos/fix/fetchart-caa-use-maxwidth-presized-thumbs 2023-10-14 16:01:15 +10:00