Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint with flake8, fix code to pass it #1178

Merged
merged 4 commits into from
Feb 6, 2021

Conversation

aklajnert
Copy link
Contributor

@aklajnert aklajnert commented Feb 6, 2021

There are no changes in functionality - mostly fixed formatting issues like line breaks, spacing etc.
This is the first stage of flake8 introduction, later I'll add some plugins to check for more.

Additionally, mypy is extracted to a separate job in CI.

Copy link
Member

@Silverarmor Silverarmor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a note in CONTRIBUTING.md, getting devs to lint with flake8 before pushing changes?

@aklajnert
Copy link
Contributor Author

Should we add a note in CONTRIBUTING.md, getting devs to lint with flake8 before pushing changes?

I think we can add it later when we also add black for autoformatting. For now, an error in CI should be enough feedback.
But if you want, the CONTRIBUTING.md can be updated now.

Copy link
Member

@Silverarmor Silverarmor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good. Will edit CONTRIBUTING.md in the future - I'll open an issue to remember.

Just want to doublecheck, for future PRs, should we require the flake8 test to pass?

@aklajnert
Copy link
Contributor Author

Just want to doublecheck, for future PRs, should we require the flake8 test to pass?

Yes, it shouldn't be much work. Fixing the whole app took me around 30 minutes.

@Silverarmor Silverarmor merged commit 6bba464 into spotDL:dev Feb 6, 2021
@Silverarmor Silverarmor added the Enhancement Enhancing spotDL label Feb 6, 2021
@aklajnert aklajnert deleted the lint_with_flake8 branch February 6, 2021 08:38
Silverarmor added a commit that referenced this pull request Feb 7, 2021
@@ -1,5 +1,3 @@
from .__main__ import console_entry_point
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this removed?!?!?!

Silverarmor added a commit that referenced this pull request Feb 8, 2021
* Run regressions on CI (#1158)
Authored by @aklajnert 

* Use argparse instead of raw `sys.argv` (#1157)
Authored by @aklajnert 

* FIxed error caused by songs with ':' in name (#1162)
Authored by @MikhailZex 

* Fixed TypeError when downloading tracks (#1177)
Authored by @xnetcat

* Bump version to 3.3.2

* Lint with flake8, fix code to pass it (#1178)
Authored by @aklajnert 

* Fixed flake8 (#1181)
Authored by @aklajnert

* Skip song if track is empty. (#1164)
Authored by @bee395 

Co-authored-by: Andrzej Klajnert <github@aklajnert.pl>
Co-authored-by: Michael George <MikhailZex@gmail.com>
Co-authored-by: Jakub <42355410+xnetcat@users.noreply.github.com>
Co-authored-by: bee395 <bee395@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Enhancing spotDL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants