Commit Graph
242 Commits
Author SHA1 Message Date
Šarūnas Nejus 95a300130b typing: relax FieldTFuncs output type 2026-08-31 11:27:12 +01:00
Šarūnas Nejus 029de94b20 typing: add missing core annotations 2026-08-22 17:49:49 +01:00
Šarūnas Nejus dcc1fd0e4a typing: Import events module instead 2026-08-18 10:46:33 +01:00
Šarūnas Nejus e9021e17e9 typing: Define events in a separate module, import explicitly 2026-08-18 10:46:33 +01:00
Šarūnas Nejus 88627e062b typing: type handlers and listeners explicitly 2026-08-18 10:46:33 +01:00
Šarūnas Nejus c346e809c1 typing: fix models typing in beets.library.models 2026-07-16 13:11:16 +01:00
Šarūnas Nejus cf23340af9 Fix beets.plugins.queries type 2026-07-16 13:11:16 +01:00
Sebastian Mohr 54a2bd20e1 Removed This file is part of beets... headers. 2026-06-29 11:20:15 +02:00
Sebastian Mohr 4d99457d22 Removed plugin specific filter rewrite for global formatter setup. 2026-06-20 13:28:47 +02:00
Trey Turner c1de81d59c fix(ftintitle): parenthetical features 2026-06-18 19:47:43 -05:00
Šarūnas Nejus e4baceae1f Add missing types to importer 2026-06-17 21:42:42 +01:00
Sebastian Mohr adfb73b66d Run ruff format 2026-05-20 16:53:06 +02:00
Šarūnas Nejus 241eb6db09 Fix typing issues 2026-05-06 15:30:10 +01:00
Šarūnas Nejus 343190f04a Add smartplaylist_update to support events 2026-04-25 20:29:16 +01:00
Šarūnas Nejus 37e18fbb46 Adapt code to fully typed confuse library 2026-02-16 12:45:05 +00:00
Šarūnas Nejus cb6ad89ce6 Use a decorator-based approach 2026-01-31 23:42:09 +00:00
Šarūnas Nejus 1c20e4bd4e Address RUF012 2026-01-13 20:55:40 +00:00
Šarūnas Nejus c52656fb0a Enable RUF rules 2026-01-13 20:55:40 +00:00
Šarūnas Nejus dd72704d3d Do not force load musicbrainz, add a test to show the behaviour 2025-11-30 07:42:21 +00:00
Šarūnas Nejus b643fc4ce5 Do not show a warning to users that have musicbrainz disabled 2025-11-30 07:42:19 +00:00
Šarūnas Nejus 3bb068a675 Warn users of deprecated musicbrainz.enabled option 2025-11-30 07:02:46 +00:00
Šarūnas Nejus 9f7cb8dbe4 Load musicbrainz implicitly and supply a deprecation warning 2025-11-30 07:02:46 +00:00
Šarūnas Nejus 5a3ecf6842 Add deprecate_for_user function 2025-11-30 07:02:46 +00:00
Šarūnas Nejus 39288637b9 Centralise warnings for maintainers into deprecate_for_maintainers 2025-11-30 07:02:46 +00:00
Sebastian Mohr ba18ee2f14 Added comment for deprecation in 3.0.0. 2025-11-21 18:31:59 +01:00
asardaes be0b71043c Revert "Remove class variables for template fields and funcs"
This reverts commit a7033fe63b3e039f6ebf23238e9b2257adb0f352.
2025-11-21 18:31:59 +01:00
asardaes 23a19e9409 Remove class variables for template fields and funcs 2025-11-21 18:31:59 +01:00
asardaes 2eff2d25f5 Improve typing for template fields and funcs 2025-11-21 18:31:59 +01:00
Šarūnas Nejus dc33932871 Update python version references 2025-11-08 12:09:52 +00:00
asardaes 229651dcad Update mbpseudo implementation for beets 2.5 2025-11-01 13:51:34 +01:00
henry 0bf248d355 Add custom feat words for ftintitle (#6090)
## Description

For non English tracks (Swedish in my case) feat. words might be
something that ftintitle doesn't pick up.
Eg. for the song `Promoe med Afasi - Inflation`
[https://musicbrainz.org/recording/8e236347-61d6-4e11-9980-52f4cc6b905f](https://musicbrainz.org/recording/8e236347-61d6-4e11-9980-52f4cc6b905f)
the word `med` is `feat.` in Swedish.
With this PR you can add what ever word you wish to match as feat. so it
should cover any kind of language.

The config.yaml could look like this:
ftintitle:
  custom_feat_words: ["med"]

## To Do

<!--
- If you believe one of below checkpoints is not required for the change
you
are submitting, cross it out and check the box nonetheless to let us
know.
  For example: - [x] ~Changelog~
- Regarding the changelog, often it makes sense to add your entry only
once
reviewing is finished. That way you might prevent conflicts from other
PR's in
that file, as well as keep the chance high your description fits with
the
  latest revision of your feature/fix.
- Regarding documentation, bugfixes often don't require additions to the
docs.
- Please remove the descriptive sentences in braces from the enumeration
below,
  which helps to unclutter your PR description.
-->

- [x] Documentation. (If you've added a new command-line flag, for
example, find the appropriate page under `docs/` to describe it.)
- [x] Changelog. (Add an entry to `docs/changelog.rst` to the bottom of
one of the lists near the top of the document.)
- [x] Tests. (Very much encouraged but not strictly required.)
2025-10-14 20:38:02 -07:00
Sebastian Mohr 391ca4ca26 Yet some more simplification. 2025-10-14 20:25:07 +02:00
Sebastian Mohr f339d8a4d3 slight simplification. 2025-10-14 19:55:50 +02:00
Sebastian Mohr 670c300625 Fixed issue with legacy plugin copy not copying properties. Also
added test for it
2025-10-14 19:55:50 +02:00
Šarūnas Nejus 13f40de5bb Make _verify_config method private to remove it from the docs 2025-10-14 16:21:33 +01:00
Šarūnas Nejus 75a945d3d3 Initialise the last plugin class found in the plugin namespace 2025-10-14 15:14:55 +01:00
Ember Light b95a17d8d3 remove feat from custom_feat_words 2025-10-12 22:40:27 +02:00
Ember Light 51c971f089 Fix sourcery-ai comments 2025-10-12 21:38:13 +02:00
Ember Light 37a5f9cb15 Add custom feat words 2025-10-12 20:47:51 +02:00
Šarūnas Nejus f8887d48b6 Add deprecation warning for <plugin>.source_weight 2025-10-10 20:36:33 +01:00
Šarūnas Nejus 96670cf971 Cache found metadata source plugins 2025-10-10 20:36:33 +01:00
Šarūnas Nejus c34b2a00a4 Fix plugin loading 2025-09-29 11:39:15 +01:00
Šarūnas Nejus 1736a5e735 Define MetadataSourcePlugin methods on the subclass only 2025-09-04 12:49:47 +01:00
Šarūnas Nejus d93ddf8dd4 Do not use explicit indices for logging args when not needed 2025-08-30 23:10:21 +01:00
Šarūnas Nejus 1c16b2b308 Replace string concatenation (' + ')
- Join hardcoded strings
- Replace concatenated variables with f-strings
2025-08-30 23:10:15 +01:00
Šarūnas Nejus 4a361bd501 Replace format calls with f-strings 2025-08-30 18:42:26 +01:00
David Logie d87b80bd51 Log loaded plugins at the debug level. 2025-08-23 13:11:58 +01:00
Šarūnas Nejus 2059a3a802 Move EventType definition to plugins.py and fix test_hook types 2025-08-09 15:44:35 +01:00
Šarūnas Nejus 54b31d01e9 Use only plugins/disabled_plugins config in plugin loading 2025-08-09 15:11:58 +01:00
Šarūnas Nejus 52bdb58a46 Simplify plugin loading mechanism
Centralise plugin loading in `beets.plugins` and refactor the plugin
loading system to be more straightforward and eliminate complex mocking
in tests. Replace the two-stage class collection and instantiation
process with direct instance creation and storage.

Add plugins.PluginImportError and adjust plugin import tests to only
complain about plugin import issues.
2025-08-09 15:06:06 +01:00