-
-
Notifications
You must be signed in to change notification settings - Fork 877
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
Added python script linting #3264
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[flake8] | ||
ignore = E402,E722,E203,F401,W503 | ||
max-line-length = 80 |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,14 @@ | ||||||||||||||||||||||
############################################################################# | ||||||||||||||||||||||
# DO NOT DELETE | ||||||||||||||||||||||
############################################################################# | ||||||||||||||||||||||
# | ||||||||||||||||||||||
# Required for GitHub Action workflow python checks | ||||||||||||||||||||||
# | ||||||||||||||||||||||
############################################################################# | ||||||||||||||||||||||
############################################################################# | ||||||||||||||||||||||
|
||||||||||||||||||||||
black | ||||||||||||||||||||||
pydocstyle | ||||||||||||||||||||||
flake8 | ||||||||||||||||||||||
flake8-docstrings | ||||||||||||||||||||||
docstring_parser | ||||||||||||||||||||||
Comment on lines
+10
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Pin package versions for reproducible builds. Dependencies should have version constraints to ensure reproducible builds and avoid breaking changes. -black
-pydocstyle
-flake8
-flake8-docstrings
-docstring_parser
+black==24.1.1
+pydocstyle==6.3.0
+flake8==7.0.0
+flake8-docstrings==1.7.0
+docstring_parser==0.15 📝 Committable suggestion
Suggested change
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Update setup-python action to latest version.
The setup-python action version is outdated.
📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.4)
468-468: the runner of "actions/setup-python@v4" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)