Repository navigation
Move ruff linter settings to pyproject.toml - #5386
Conversation
|
I think we can/should move all the ruff settings there too (their current location pre-dates our move to using |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5386 +/- ##
==========================================
+ Coverage 85.58% 86.46% +0.87%
==========================================
Files 281 281
Lines 59561 59563 +2
==========================================
+ Hits 50978 51501 +523
+ Misses 8583 8062 -521 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
c6ec2e6 to
218fcee
Compare
| - id: check-executables-have-shebangs | ||
| files: \.(py|sh)$ | ||
| - id: check-json | ||
| - id: check-toml |
There was a problem hiding this comment.
This is overdue with pyproject.toml
|
Cross reference #5354, there are still a bunch of new linter codes in the latest ruff to review (to either add to our ignore list or apply). Having the settings here makes running |
|
|
||
| [tool.ruff.lint] | ||
| isort.force-single-line=true | ||
| isort.order-by-type=false |
There was a problem hiding this comment.
As far as I could tell, we need the isort settings twice - once if using isort directly at the command line, and once again for using ruff's implementation of isort.
ruff EXE001 Shebang is present but file is not executable
This facilitates running flake8 with flake8-isort, ruff, or isort directly (outside of the pre-commit framework but with consistent settings. Closes biopython#2828. Move ruff lint settings to pyproject.toml
Shortened comments in Doc/examples/nmr/simplepredict.py imports. Dropped some redundant comments
|
Rebasing for the trivial merge conflict from a deprecation removal... |
218fcee to
c6072ce
Compare
This facilitates running flake8 with flake8-isort, ruff, or isort directly (outside of the pre-commit framework but with consistent settings).
I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile, have runpre-commitlocally, and understand that continuous integration checks will be used to
confirm the Biopython unit tests and style checks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)
Closes #2828.