Skip to content

Commit ea12043

Browse files
authored
Merge pull request #72 from the-dotify-project/development
Enriching the project's documentation
2 parents a759969 + b7bc5a8 commit ea12043

34 files changed

+680
-490
lines changed

.flake8

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ exclude =
1111
dist
1212
docs
1313
examples
14+
tests
1415
__pycache__
1516
extend-ignore =
1617
E203,
@@ -29,4 +30,8 @@ extend-ignore =
2930
WPS433,
3031
WPS412,
3132
WPS410,
32-
WPS323
33+
WPS323,
34+
D105,
35+
D106,
36+
RST,
37+
WPS436 # https://github.com/wemake-services/wemake-python-styleguide/issues/1441

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
repos:
2+
- repo: https://github.com/humitos/mirrors-autoflake.git
3+
rev: v1.3
4+
hooks:
5+
- id: autoflake
6+
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
27
- repo: https://github.com/pycqa/isort
38
rev: 5.8.0
49
hooks:
@@ -12,6 +17,7 @@ repos:
1217
rev: 3.9.2
1318
hooks:
1419
- id: flake8
20+
exclude: ^docs|examples|tests
1521
additional_dependencies: [wemake_python_styleguide]
1622
- repo: https://github.com/pre-commit/pre-commit-hooks
1723
rev: v4.0.1
@@ -37,3 +43,7 @@ repos:
3743
rev: 2.3.5
3844
hooks:
3945
- id: editorconfig-checker
46+
- repo: https://github.com/jendrikseipp/vulture
47+
rev: v2.3
48+
hooks:
49+
- id: vulture

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
alt="docs"
2626
/>
2727
</a>
28-
<a href="https://codeclimate.com/github/the-dotify-project/dotify/maintainability">
28+
<a href="https://codeclimate.com/github/billsioros/dotify/maintainability">
2929
<img
3030
src="https://api.codeclimate.com/v1/badges/573685a448c6422d49de/maintainability"
3131
alt="Maintainability"
3232
/>
3333
</a>
34-
<a href="https://codeclimate.com/github/the-dotify-project/dotify/test_coverage">
34+
<a href="https://codeclimate.com/github/billsioros/dotify/test_coverage">
3535
<img
3636
src="https://api.codeclimate.com/v1/badges/573685a448c6422d49de/test_coverage"
3737
alt="Test Coverage"

docs/decorators.md

Whitespace-only changes.

docs/json_serializable.md

Whitespace-only changes.

docs/model.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Documentation for `Dotify`
2+
3+
::: dotify._model.Model

docs/models/album.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Documentation for `Album`
22

3-
::: dotify.Album
3+
::: dotify.models._album.AlbumBase
4+
5+
::: dotify.models._album.Album

docs/models/playlist.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Documentation for `Playlist`
22

3-
::: dotify.Playlist
3+
::: dotify.models._playlist.PlaylistBase
4+
5+
::: dotify.models._playlist.Playlist

docs/models/track.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Documentation for `Track`
22

3-
::: dotify.Track
3+
::: dotify.models._track.TrackBase
4+
5+
::: dotify.models._track.Track

dotify/__init__.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1+
"""Yet another Spotify Web API Python library.
2+
3+
Examples:
4+
---
5+
>>> from dotify import Dotify, Track
6+
>>> with Dotify(SPOTIFY_ID, SPOTIFY_SECRET):
7+
>>> result = next(Track.search("SAINt JHN 5 Thousand Singles", limit=1))
8+
>>> result
9+
<Track "SAINt JHN - 5 Thousand Singles">
10+
>>> result.url
11+
'https://open.spotify.com/track/0fFWxRZGKR7HDW2xBMOZgW'
12+
>>> result.download("SAINt JHN - 5 Thousand Singles.mp3")
13+
PosixPath('SAINt JHN - 5 Thousand Singles.mp3')
14+
"""
15+
116
__all__ = [
217
"Dotify",
3-
"Album",
4-
"Playlist",
5-
"Track",
618
]
719

8-
from dotify.dotify import Dotify
9-
from dotify.models.album import Album
10-
from dotify.models.playlist import Playlist
11-
from dotify.models.track import Track
20+
from dotify._dotify import Dotify

0 commit comments

Comments
 (0)