Commit graph

72 commits

Author SHA1 Message Date
Šarūnas Nejus
e3075b76e0
Move dependencies required for release to a separate group 2024-06-15 04:25:50 +01:00
Serene
aacf983268
Remove release script from pyproject (#5307)
I realised that when users install beets, this `release` script would
also get installed for them, which is not ideal, I guess.
2024-06-15 09:57:36 +10:00
Šarūnas Nejus
e7ece96268
Remove release script from pyproject
I realised that when users install beets, this `release` script would
also get installed for them, which is not ideal, I guess.
2024-06-14 16:27:40 +01:00
Šarūnas Nejus
b29c9a83b9
Upgrade black, pin it below v25 2024-06-14 16:16:51 +01:00
Šarūnas Nejus
50cf70eea3
Check all python files for formatting issues 2024-06-11 15:21:39 +01:00
Šarūnas Nejus
6d3b76d3ef
Update dependencies 2024-06-10 13:46:27 +01:00
Šarūnas Nejus
f3df90c9ff
Revert "Add poethepoet to dependencies for devs"
This reverts commit fc373f5fef8c8dd1656dfdf31c14b3365a0a75bc.

See CONTRIBUTING.rst which has tools setup guidelines for users. They
are expected to install both poetry and poethepoet globally in their
system.
2024-06-10 13:46:26 +01:00
Šarūnas Nejus
627c0698ee
Revert "Only format correct directories"
This reverts commit c3b6f07c4336e6639e4597a800700820155ad294.

This commit hardcoded the paths that `isort` and `black` checks. This
means that the `check-format` job will act on the entire codebase
instead of only changed files. We need to define a `path` argument with
a default value in order to achieve the above.

Regarding "." vs "beets beetsplug test", the intention behind using "."
was to also check python files like `docs/conf.py` and
`extra/release.py` which I presume we would also want to format
properly.
2024-06-10 13:46:26 +01:00
Serene-Arc
35533b3807
Add poethepoet to dependencies for devs 2024-06-10 13:46:26 +01:00
Serene-Arc
4f566f181f
Only format correct directories 2024-06-10 13:46:25 +01:00
Šarūnas Nejus
4a8e6e961f
Update workflows 2024-06-10 13:46:25 +01:00
Šarūnas Nejus
bfd9753314
Remove tox
Unfortunately tox does not play very nicely with Poetry. Tox was mostly
useful since it managed virtual environments, however now this is done
by Poetry.

Thus we do not anymore need it since we can run our commands using
`poetry run`. I have extended the internal helper tool 'project' with
those commands that have previously been run using tox.
2024-06-10 13:46:25 +01:00
Šarūnas Nejus
347911cdee
Introduce Poe the Poet task runner and define tasks.
This makes it easier for people to interact with the project in
a unified manner.
2024-06-10 13:46:25 +01:00
Šarūnas Nejus
1aad6e0929
release.py: introduce pyproject.toml 2024-06-10 13:10:17 +01:00
Šarūnas Nejus
7bbd215efc
Update all docs with Poetry 2024-06-10 13:10:16 +01:00
Šarūnas Nejus
90263a9e9e
Use poetry in workflows 2024-06-10 13:10:16 +01:00
Šarūnas Nejus
614ba1d3d6
Configure pyproject.toml 2024-06-10 13:10:13 +01: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
e8bf993f6a Update python version 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