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

Use ruff #1994

Merged
merged 19 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update requirements files
  • Loading branch information
adamjstewart committed Apr 13, 2024
commit da8010471d811d214747638466b329167360106e
13 changes: 2 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,8 @@ docs = [
"sphinx>=4,<6",
]
style = [
# black 21.8+ required for Jupyter support
"black[jupyter]>=21.8",
# flake8 3.8+ depends on pyflakes 2.2+, which fixes a bug with mypy error code ignores:
# https://github.com/PyCQA/pyflakes/pull/455
"flake8>=3.8",
# isort 5.8+ required for extend_skip option
"isort[colors]>=5.8",
# pydocstyle 6.1+ required for pyproject.toml support
"pydocstyle[toml]>=6.1",
# pyupgrade 2.8+ required for --py310-plus flag
"pyupgrade>=2.8",
# ruff 0.2+ required for [ruff.lint]
"ruff>=0.2",
]
tests = [
# mypy 0.900+ required for pyproject.toml support
Expand Down
14 changes: 0 additions & 14 deletions requirements/min-reqs.old
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,6 @@ scikit-image==0.19.0
scipy==1.7.2
zipfile-deflate64==0.2.0

# docs
ipywidgets==7.0.0
nbsphinx==0.8.5
sphinx==4.0.0

# style
black[jupyter]==21.8b0
flake8==3.8.0
isort[colors]==5.8.0
pydocstyle[toml]==6.1.0
pyupgrade==2.8.0

# tests
mypy==0.900
nbmake==1.3.3
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We don't actually run any docs/style tests with the min version, no need to install those deps.

pytest==7.3.0
pytest-cov==4.0.0
6 changes: 1 addition & 5 deletions requirements/style.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# style
black[jupyter]==24.3.0
flake8==7.0.0
isort[colors]==5.13.2
pydocstyle[toml]==6.3.0
pyupgrade==3.15.2
ruff==0.3.7
Loading