File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }})
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ ruff = ">=0.9.0"
1717pytest = " ^8.3.4"
1818coverage = " ^7.6.12"
1919pytest-cov = " ^7.1.0"
20+ pyright = " ^1.1.408"
2021
2122[project ]
2223name = " python_obfuscator"
@@ -44,6 +45,7 @@ dev = [
4445 " ruff" ,
4546 " coverage" ,
4647 " isort" ,
48+ " pyright" ,
4749]
4850
4951[project .scripts ]
You can’t perform that action at this time.
0 commit comments