Add dev dependencies and CONTRIBUTING.rst (#3)
This commit is contained in:
parent
70429d2610
commit
e3175a117c
2 changed files with 42 additions and 0 deletions
33
CONTRIBUTING.rst
Normal file
33
CONTRIBUTING.rst
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
Contributing to ytmusicapi
|
||||||
|
##########################
|
||||||
|
|
||||||
|
Issues
|
||||||
|
-------
|
||||||
|
Please make sure to include sufficient details for reproducing your issue.
|
||||||
|
This includes the version of the library used as well as detailed instructions for reproduction.
|
||||||
|
If needed, please include the YouTube Music API response as well by debugging the API (responses
|
||||||
|
may differ based on the user account, so this helps with reproducing new issues).
|
||||||
|
|
||||||
|
|
||||||
|
Pull requests
|
||||||
|
--------------
|
||||||
|
Please open an issue before submitting, unless it's just a typo or some other small error.
|
||||||
|
|
||||||
|
Before making changes to the code, install the development requirements using
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
pip install -e .[dev]
|
||||||
|
|
||||||
|
Before committing, run style and linter checks using
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
pre-commit run
|
||||||
|
|
||||||
|
|
||||||
|
Code structure
|
||||||
|
---------------
|
||||||
|
The folder `ytmusicapi` contains the main library which is distributed to the users.
|
||||||
|
Each main library function in `ytmusic.py` is covered by a test in the `tests` folder.
|
||||||
|
If you want to contribute a new function, please create a corresponding unittest.
|
||||||
9
setup.py
9
setup.py
|
|
@ -23,6 +23,15 @@ setup(name='ytmusicapi',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'requests >= 2.22'
|
'requests >= 2.22'
|
||||||
],
|
],
|
||||||
|
extras_require={
|
||||||
|
'dev': [
|
||||||
|
'pre-commit',
|
||||||
|
'flake8',
|
||||||
|
'yapf',
|
||||||
|
'coverage',
|
||||||
|
'coverage-badge'
|
||||||
|
]
|
||||||
|
},
|
||||||
python_requires=">=3.5",
|
python_requires=">=3.5",
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
zip_safe=False
|
zip_safe=False
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue