Skip to content

Commit

Permalink
Enforce ruff/flake8-simplify rules (SIM)
Browse files Browse the repository at this point in the history
Leave SIM108 for later.
  • Loading branch information
DimitriPapadopoulos committed Jun 24, 2024
1 parent afc9e37 commit 35d2d0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,9 @@ extend-exclude = ["bench"]
extend-select = [
"B",
"I",
"SIM",
"UP",
]
ignore = [
"SIM108",
]
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
from skbuild import setup

# Blosc version
VERSION = open("VERSION").read().strip()
with open("VERSION") as f:
VERSION = f.read().strip()
# Create the version.py file
open("blosc2/version.py", "w").write(f'__version__ = "{VERSION}"\n')
with open("blosc2/version.py", "w") as f:
f.write(f'__version__ = "{VERSION}"\n')


def exclude_pkgconfig(cmake_manifest):
Expand Down

0 comments on commit 35d2d0e

Please sign in to comment.