Skip to content

Commit

Permalink
upgrade ruff version (#1456)
Browse files Browse the repository at this point in the history
* upgrade ruff version

* remove old comment

* update comment
  • Loading branch information
xavdid-stripe authored Feb 13, 2025
1 parent bb80436 commit eac6021
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion deps/dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
# version requirements: any modern python version (currently 3.10)

# typechecking for all versions
# can't use `>=1.1.339` since it flags override issues, e.g.:
# > Method "_cls_delete" overrides class "DeletableAPIResource" in an incompatible manner Parameter "**params" has no corresponding parameter Pylance(reportIncompatibleMethodOverride)
# can probably fix/ignore these issues and move forward, but we're stuck until then
pyright == 1.1.336
# general typechecking
mypy == 1.7.0
# formatting
ruff == 0.4.4
ruff == 0.9.6
# linting
flake8
3 changes: 1 addition & 2 deletions stripe/_ephemeral_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ async def delete_async( # pyright: ignore[reportGeneralTypeIssues]
def create(cls, **params):
if params.get("stripe_version") is None:
raise ValueError(
"stripe_version must be specified to create an ephemeral "
"key"
"stripe_version must be specified to create an ephemeral key"
)

url = cls.class_url()
Expand Down

0 comments on commit eac6021

Please sign in to comment.