Skip to content

Commit e220ba2

Browse files
style: pre-commit fixes
1 parent 0f21e3f commit e220ba2

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- uses: actions/setup-python@v5
3131
with:
32-
python-version: '3.x'
32+
python-version: "3.x"
3333

3434
- name: Read idc-index-data version from pyproject.toml
3535
run: |

noxfile.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,19 @@ def get_idc_index_data_version() -> str:
2222
except ImportError:
2323
# If tomli is not available, install it in the current environment
2424
import subprocess
25+
2526
subprocess.check_call([sys.executable, "-m", "pip", "install", "tomli"])
2627
import tomli as tomllib
27-
28+
2829
pyproject_path = DIR / "pyproject.toml"
2930
with open(pyproject_path, "rb") as f:
3031
pyproject = tomllib.load(f)
31-
32+
3233
dependencies = pyproject.get("project", {}).get("dependencies", [])
3334
for dep in dependencies:
3435
if dep.startswith("idc-index-data=="):
3536
return dep.split("==")[1]
36-
37+
3738
raise ValueError("idc-index-data version not found in pyproject.toml")
3839

3940

@@ -47,13 +48,14 @@ def get_runtime_dependencies() -> list[str]:
4748
except ImportError:
4849
# If tomli is not available, install it in the current environment
4950
import subprocess
51+
5052
subprocess.check_call([sys.executable, "-m", "pip", "install", "tomli"])
5153
import tomli as tomllib
52-
54+
5355
pyproject_path = DIR / "pyproject.toml"
5456
with open(pyproject_path, "rb") as f:
5557
pyproject = tomllib.load(f)
56-
58+
5759
return pyproject.get("project", {}).get("dependencies", [])
5860

5961

@@ -83,10 +85,10 @@ def pylint(session: nox.Session) -> None:
8385
"""
8486
# This needs to be installed into the package environment, and is slower
8587
# than a pre-commit check
86-
88+
8789
# Generate bundled cache before installing package (required for build)
8890
generate_cache(session)
89-
91+
9092
session.install(".", "pylint")
9193
session.run("pylint", "idc_index", *session.posargs)
9294

@@ -98,7 +100,7 @@ def tests(session: nox.Session) -> None:
98100
"""
99101
# Generate bundled cache before installing package (required for build)
100102
generate_cache(session)
101-
103+
102104
session.install(".[test]")
103105
session.run("pytest", *session.posargs)
104106

0 commit comments

Comments
 (0)