From 9119b6a07036febd8d2f007758c52ee639829168 Mon Sep 17 00:00:00 2001 From: Stephane Bruckert Date: Thu, 27 Nov 2025 07:33:35 +0000 Subject: [PATCH] Fix lint workflow --- CONTRIBUTING.md | 20 +++++++++----------- setup.py | 6 +++--- tox.ini | 5 ++++- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 63f38b6..ed867a2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -39,8 +39,7 @@ To give you a flavour of what we mean, here are some examples of what PRs go whe Just choose v3 if you are unsure which branch to work on. - -### Create virtual environment, install dependencies, run tests: +### Create virtual environment, install dependencies, run tests ```bash $ virtualenv --python=python3 env @@ -51,7 +50,7 @@ $ source env/bin/activate ### Lint - pip install .[test] + pip install ".[test]" To automatically fix some of the code style: @@ -75,9 +74,9 @@ Don't forget to add a short description of your change in the [CHANGELOG](CHANGE ### Publishing (by maintainer) - - Bump version in setup.py - - Bump and date changelog - - Add to changelog: +- Bump version in setup.py +- Bump and date changelog +- Add to changelog: ## Unreleased Add your changes below. @@ -88,9 +87,8 @@ Don't forget to add a short description of your change in the [CHANGELOG](CHANGE ### Removed - - Commit changes - - Push tag to trigger PyPI build & release workflow - - Create github release https://github.com/plamere/spotipy/releases with the changelog content +- Commit changes +- Push tag to trigger PyPI build & release workflow +- Create github release with the changelog content for the version and a short name that describes the main addition - - Verify doc uses latest https://readthedocs.org/projects/spotipy/ - \ No newline at end of file +- Verify doc uses latest diff --git a/setup.py b/setup.py index aa29244..5b36cdc 100644 --- a/setup.py +++ b/setup.py @@ -13,9 +13,9 @@ extra_reqs = { ], 'test': [ 'autopep8>=2.3.2', - 'flake8>=7.1.1', - 'flake8-string-format>=0.3.0', - 'isort>=5.13.2' + 'flake8>=7.3.0', + 'flake8-use-fstring>=1.4', + 'isort>=7.0.0' ] } diff --git a/tox.ini b/tox.ini index daba9d2..48224c9 100644 --- a/tox.ini +++ b/tox.ini @@ -8,6 +8,9 @@ commands=python -m unittest discover -v tests/unit max-line-length = 99 exclude= .git, + .venv, + build, dist, docs, - examples \ No newline at end of file + examples, + spotipy.egg-info \ No newline at end of file