Skip to content

Commit

Permalink
add mypy to ci (but ignore for now), add numpy typing plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Sep 3, 2024
1 parent d086f1b commit aa4c635
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:
- '**.md'
- '.gitignore'
jobs:
lint:
name: Lint
check:
name: Check
runs-on: ubuntu-latest
steps:

Expand All @@ -30,8 +30,15 @@ jobs:
- name: Install Python packages
run: pip install ".[lint]"

- name: Run ruff
- name: Linter
run: ruff check .

- name: Formatter
run: ruff format --check

# TODO: enable when passing
# - name: Type checker
# run: mypy flopy4

build:
name: Build
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,10 @@ ignore = [
"F821", # undefined name TODO FIXME
"E722" # do not use bare `except`
]

[tool.mypy]
packages = ["flopy4"]
modules = ["test"]
plugins = [
"numpy.typing.mypy_plugin"
]

0 comments on commit aa4c635

Please sign in to comment.