Skip to content

Commit

Permalink
add lint opt deps; add cython-lint check in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Jun 22, 2023
1 parent b2d000e commit b2583e0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,23 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black 'pylint<3' 'isort[colors]<6'
pip install -v --editable .
pip install -v --editable .[lint]
- name: black check
run: |
python -m black --check --diff --color .
- name: isort check
run: |
python -m isort --check --diff --color .
- name: pylint check
run: |
python -m pylint src/gstools/
- name: isort check
- name: cython-lint check
run: |
python -m isort --check --diff --color .
cython-lint src/gstools/
build_wheels:
name: wheels for ${{ matrix.cfg.os }} / ${{ matrix.cfg.arch }}
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ plotting = [
]
rust = ["gstools_core>=0.2.0,<1"]
test = ["pytest-cov>=3"]
lint = [
"black",
"pylint<3",
"isort[colors]<6",
"cython-lint",
]

[project.urls]
Changelog = "https://github.com/GeoStat-Framework/GSTools/blob/main/CHANGELOG.md"
Expand Down

0 comments on commit b2583e0

Please sign in to comment.