Skip to content

Add mypy check to CI and skip ASE tests when package missing#51

Merged
awvwgk merged 2 commits intomainfrom
gncs/fix-mypy
Apr 22, 2026
Merged

Add mypy check to CI and skip ASE tests when package missing#51
awvwgk merged 2 commits intomainfrom
gncs/fix-mypy

Conversation

@gncs
Copy link
Copy Markdown
Contributor

@gncs gncs commented Apr 22, 2026

Changes

  • Add mypy . step to the pre-commit CI job in .github/workflows/test.yml.
  • Remove the commented-out mypy hook from .pre-commit-config.yaml (mypy now runs as a dedicated CI step, not via pre-commit).
  • Use pytest.importorskip("ase") in tests/test_ase.py to skip the whole module when ASE is unavailable, replacing the prior try/except + per-test skipif decorators.
  • Incidental fixes carried in this branch: pyproject.toml and src/skala/ase/calculator.py.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@gncs gncs linked an issue Apr 22, 2026 that may be closed by this pull request
@gncs gncs requested a review from awvwgk April 22, 2026 10:15
Move mypy into the former pre-commit job (now renamed 'lint') so both
static checks share one environment setup. Update 'test.needs'
accordingly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Member

@awvwgk awvwgk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@awvwgk awvwgk merged commit ea23f03 into main Apr 22, 2026
30 checks passed
@awvwgk awvwgk deleted the gncs/fix-mypy branch April 22, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable type checking with mypy

2 participants