Skip to content

Commit e571ae3

Browse files
authored
Merge pull request #43 from DakaraProject/dependencies/update2
Update dependencies
2 parents a61aa73 + db2b5f1 commit e571ae3

File tree

5 files changed

+21
-19
lines changed

5 files changed

+21
-19
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v3.2.0
3+
rev: v5.0.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ You need to call isort before committing changes.
5757
### Code style
5858

5959
The code follows the [PEP8](https://www.python.org/dev/peps/pep-0008/) style guide (88 characters per line).
60-
Quality of code is checked with [Flake8](https://pypi.org/project/flake8/):
60+
Quality of code is checked with [Ruff](https://pypi.org/project/ruff/):
6161

6262
```sh
63-
flake8
63+
ruff check .
6464
```
6565

6666
Style is enforced using [Black](https://github.com/ambv/black):

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ Other important parts of the project include:
2323

2424
### System requirements
2525

26-
* Python3, to make everything up and running (supported versions: 3.7, 3.8, 3.9, 3.10 and 3.11);
26+
* Python3, to make everything up and running (supported versions: see above);
2727
* [ffmpeg](https://www.ffmpeg.org/), to extract lyrics and extract metadata from files (preferred way);
28-
* [MediaInfo](https://mediaarea.net/fr/MediaInfo/), to extract metadata from files (slower, alternative way, may not work on Windows).
28+
* [MediaInfo](https://mediaarea.net/fr/MediaInfo/), to extract metadata from files (slower, alternative way).
2929

3030
Linux, Windows, and MacOS are supported.
3131

pyproject.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,25 @@ classifiers = [
2323
"Intended Audience :: Developers",
2424
]
2525
dependencies = [
26-
"dakarabase>=2.0.1,<2.1.0",
26+
"dakarabase>=2.1.0,<2.2.0",
2727
"filetype>=1.2.0,<1.3.0",
28-
"packaging>=21.3,<22.0",
29-
"pymediainfo>=5.1.0,<5.2.0",
30-
"pysubs2>=1.5.0,<1.6.0",
31-
"setuptools>=68",
28+
"packaging>=24.2,<25.0",
29+
"pymediainfo>=7.0.1,<7.1.0",
30+
"pysubs2>=1.8.0,<1.9.0",
3231
]
3332

3433
[project.optional-dependencies]
3534
dev = [
36-
"black>=22.10.0,<22.11.0",
37-
"codecov>=2.1.12,<2.2.0",
38-
"isort>=5.10.1,<5.11.0",
39-
"pdoc>=12.3.0,<12.4.0",
40-
"pre-commit>=2.20.0,<2.21.0",
41-
"pytest-cov>=4.0.0,<4.1.0",
42-
"pytest>=7.2.0,<7.3.0",
43-
"ruff>=0.3.0,<0.4.0",
35+
"black>=25.1.0,<25.2.0",
36+
"codecov>=2.1.13,<2.2.0",
37+
"isort>=6.0.0,<6.1.0",
38+
"pdoc>=15.0.1,<15.2.0",
39+
"pre-commit>=4.1.0,<4.2.0",
40+
"pytest-cov>=6.0.0,<6.1.0",
41+
"pytest>=8.3.4,<8.4.0",
42+
"ruff>=0.9.6,<0.10.0",
4443
]
44+
# note: update .pre-commit-config.yaml as well
4545

4646
[project.urls]
4747
Homepage = "https://github.com/DakaraProject/dakara-feeder"
@@ -53,7 +53,7 @@ Changelog = "https://github.com/DakaraProject/dakara-feeder/blob/master/CHANGELO
5353
dakara-feeder = "dakara_feeder.__main__:main"
5454

5555
[build-system]
56-
requires = ["setuptools"]
56+
requires = ["setuptools>=75.8.0"]
5757
build-backend = "setuptools.build_meta"
5858

5959
[tool.setuptools.dynamic]

tests/unit/test_customization.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
class GetCustomSongTestCase(TestCase):
1616
def test_get_from_class(self, mocked_import_from_module, mocked_import_from_file):
1717
"""Test to get a valid song class from class module name."""
18+
1819
# mock the returned class
1920
class MySong(BaseSong):
2021
pass
@@ -156,6 +157,7 @@ def test_get_from_class_error_not_song_subclass(
156157
self, mocked_import_from_module, mocked_import_from_file
157158
):
158159
"""Test to get a song class that is not a subclass of Song."""
160+
159161
# mock the returned class
160162
class MySong:
161163
pass

0 commit comments

Comments
 (0)