Šarūnas Nejus
b3d434f58f
Delegate attribute access to logging
2025-08-30 23:10:21 +01:00
Šarūnas Nejus
4a361bd501
Replace format calls with f-strings
2025-08-30 18:42:26 +01:00
Šarūnas Nejus
7cada1c9f8
Remove no-op decargs
2025-07-08 11:37:33 +01:00
Sebastian Mohr
68acaa6470
Renamed all action occurrences with Action.
2025-05-13 13:01:46 +02:00
Šarūnas Nejus
f36bc497c8
Fix lint issues
...
- Fix imports
- Fix pytest issues
- Do not assign lambda as variable
- Use isinstance instead of type to check type
- Rename ambiguously named variables
- Name custom errors with Error suffix
2024-09-21 11:59:18 +01:00
Šarūnas Nejus
85a17ee503
Reformat the codebase
2024-09-21 11:57:48 +01:00
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
Andrew Rogl
ee4268dabb
Remove unused imports
...
Fix imports
Fix formatting
2021-08-26 20:59:48 +10:00
Andrew Rogl
1ec87a3bdd
pyupgrade beetsplug and tests
...
All tests working
More tidy up to be done
2021-08-26 19:12:51 +10:00
Ryan Lanny Jenkins
79616b42ed
Use simpler approach of asserting that at most one handler of import_task_before_choice returns an action.
2021-03-28 16:53:01 -05:00
Ryan Lanny Jenkins
6c4cb82c03
badfiles: Respect any previous decision to skip an import and don't re-prompt the user.
2021-03-27 12:03:56 -05:00
Ryan Lanny Jenkins
1d4a2c3e2a
Add a new hook for badfiles pre-import user interaction, instead of flagging the task.
2021-03-27 11:37:26 -05:00
Ryan Lanny Jenkins
9c17d9a924
linting
2021-03-24 17:29:16 -05:00
Ryan Lanny Jenkins
2c9f3d6464
Add check_on_import config for badfiles.
2021-03-24 16:51:58 -05:00
Ryan Lanny Jenkins
e96b5a7eba
Check files during import, show checker warnings and errors along with tagging choices.
2021-03-23 21:55:51 -05:00
Carl Suster
6382c364e2
confit: replace with confuse in plugins
2019-06-01 10:03:41 +10:00
Adrian Sampson
80f4f0a0f2
badfiles: Fix decoding for command output
...
Probably fixes #3165 . There were several things going wrong here:
1. For some reason, this was using the *filesystem* encoding, which is
what you use to decode filenames. But this was general command
output, not filenames.
2. Errors in decoding threw exceptions, even though all we do with this
output is show it to the user.
3. The prints were using `displayable_path`, even though the lines are
*already* Unicode strings.
Hopefully this cleans up that mess.
2019-02-24 16:06:36 -05:00
Jan Holthuis
3e10d5d39f
badfiles: Fix #3158 by calling superclass __init__ method
2019-02-21 12:40:54 +01:00
Bernardo Meurer
9374983e9d
Fixed import order
2019-02-19 18:49:29 -08:00
Bernardo Meurer
e209fe5886
Parallelized beet bad
2019-02-19 18:47:47 -08:00
Adrian Sampson
86c8cffa6c
Fix some whitespace ( #2433 )
2017-02-11 19:24:47 -05:00
Adrian Sampson
e2b9a3fca6
Merge pull request #2433 from karpinski/badfiles-checkers
...
badfiles: continue execution to other files instead of stopping after a checker error
2017-02-11 19:22:15 -05:00
Marcin Karpinski
8ef9f68843
badfiles: only output corrupt files by default
...
badfiles now only outputs corrupt files by default — to get full output enable verbose mode using -v or --verbose
2017-02-10 21:51:23 +00:00
karpinski
b46fb956b7
Making logging level consistent when checker is not found.
2017-02-10 12:49:16 +01:00
karpinski
291803d49a
Fixing a small typo.
2017-02-10 12:49:16 +01:00
karpinski
ffca8f549f
Allowing the execution to continue to other files if validator is not found or exits with an error.
2017-02-10 12:49:16 +01:00
Adrian Sampson
0216ef294a
badfiles: Python 3 compatibility
...
Discovered while working on #2428 that we were using an implicit bytes-to-str
conversion on the extension. This broke dict lookup on Python 3.
2017-02-04 13:43:23 -06:00
Adrian Sampson
0131ce263d
badfiles: Better logging and error handling ( #2428 )
2017-02-04 13:42:24 -06:00
Adrian Sampson
991c9936fd
Fix #2299 : non-Unicode logging in badfiles
2016-12-03 11:20:06 -05:00
Johnny Robeson
e8afcbe7ec
replace unicode with six.text_type
2016-06-24 05:53:49 -04:00
Adrian Sampson
e54c7eec3d
Standardize __future__ imports without parentheses
...
Since the list is short enough now, we don't need parentheses for the line
wrap. This is a little less ugly.
2016-02-28 15:03:51 -08:00
Peter Kessen
6852ab5472
Removed unicode_literals from plugins
...
* acousticbrainz
* badfiles
* bpm
2016-02-20 11:49:10 +01:00
Jack Wilsdon
12cd5306b7
Update copyright dates to 2016
2015-12-30 15:42:06 +00:00
Peter Kessen
ecbd337c47
Added file encoding definition to badfiles.py
2015-11-15 14:51:12 +01:00
François-Xavier Thomas
c54105d272
badfiles: Fix unicode error on some queries
2015-08-15 15:37:47 +02:00
François-Xavier Thomas
ded73354a9
badfiles: Added color output
2015-08-15 15:19:04 +02:00
François-Xavier Thomas
e8cb1241f5
badfiles: If not configured, use default checkers
2015-08-15 14:39:37 +02:00
François-Xavier Thomas
27075ea037
badfiles: Fixed weird use of sum
2015-08-15 14:39:35 +02:00
Adrian Sampson
ecf677ae41
Reorganize up some badfiles documentation
2015-08-14 20:50:29 -07:00
Adrian Sampson
c756b3eedb
badfiles: Clean up for beets style
...
Use {} formatting, 80 character wrap, ___future__ imports.
2015-08-14 20:37:36 -07:00
Adrian Sampson
82484be232
Add badfiles plugin as-is
2015-08-14 20:32:19 -07:00