Skip to content

Commit cd33e29

Browse files
committed
lint fixes and poetry
1 parent d352d20 commit cd33e29

3 files changed

Lines changed: 49 additions & 10 deletions

File tree

.github/workflows/package-test.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,26 @@ jobs:
2525
with:
2626
python-version: "3.12"
2727

28-
- name: Install lint tools
29-
run: pip install ruff isort pyright
30-
- name: Install Black (match pyproject / poetry.lock)
31-
run: pip install "black==25.11.0"
28+
- name: Install Poetry
29+
run: curl -sSL https://install.python-poetry.org | python - -y
30+
31+
- name: Update PATH
32+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
33+
34+
- name: Install dependencies
35+
run: poetry install --no-interaction
3236

3337
- name: Ruff (lint)
34-
run: ruff check python_obfuscator tests
38+
run: poetry run ruff check python_obfuscator tests
3539

3640
- name: Black (format check)
37-
run: black --check python_obfuscator tests
41+
run: poetry run black --check python_obfuscator tests
3842

3943
- name: isort (import order check)
40-
run: isort --check-only python_obfuscator tests
44+
run: poetry run isort --check-only python_obfuscator tests
4145

4246
- name: Pyright (type check)
43-
run: pyright python_obfuscator
47+
run: poetry run pyright python_obfuscator
4448

4549
test:
4650
name: Test (Python ${{ matrix.python-version }})

poetry.lock

Lines changed: 35 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ruff = ">=0.9.0"
1717
pytest = "^8.3.4"
1818
coverage = "^7.6.12"
1919
pytest-cov = "^7.1.0"
20+
pyright = "^1.1.408"
2021

2122
[project]
2223
name = "python_obfuscator"
@@ -44,6 +45,7 @@ dev = [
4445
"ruff",
4546
"coverage",
4647
"isort",
48+
"pyright",
4749
]
4850

4951
[project.scripts]

0 commit comments

Comments
 (0)