pixi: add pylint
This commit is contained in:
17
.github/workflows/pylint.yml
vendored
17
.github/workflows/pylint.yml
vendored
@@ -6,17 +6,8 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: conda-incubator/setup-miniconda@v2
|
||||
- uses: prefix-dev/setup-pixi@v0.8.0
|
||||
with:
|
||||
auto-update-conda: true
|
||||
python-version: "3.11"
|
||||
use-only-tar-bz2: true
|
||||
miniforge-version: latest
|
||||
- name: install dependencies
|
||||
run: |
|
||||
mamba update --all
|
||||
mamba install freecad numpy scipy pylint
|
||||
- name: Analysing the code with pylint
|
||||
run: |
|
||||
${CONDA}/bin/pylint $(git ls-files '*.py')
|
||||
pixi-version: v0.39.0
|
||||
cache: false
|
||||
- run: pixi run lint
|
||||
@@ -9,9 +9,13 @@ version = "0.1.0"
|
||||
[pypi-dependencies]
|
||||
freecad_gears = { path = ".", editable = true }
|
||||
|
||||
[tasks]
|
||||
lint = "pylint $(git ls-files '*.py')"
|
||||
|
||||
[dependencies]
|
||||
numpy = ">=2.1.3,<3"
|
||||
scipy = ">=1.14.1,<2"
|
||||
sympy = ">=1.13.3,<2"
|
||||
jupyter = ">=1.1.1,<2"
|
||||
freecad = ">=1.0.0,<2"
|
||||
pylint = ">=3.3.2,<4"
|
||||
|
||||
Reference in New Issue
Block a user