Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
default_language_version:
python: python
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-merge-conflict
Expand All @@ -13,15 +14,19 @@ repos:
exclude: ChangeLog-spell-corrected.diff
- id: trailing-whitespace
exclude: ChangeLog-spell-corrected.diff
- repo: https://github.com/pycqa/isort
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
stages: [pre-commit]
- repo: https://github.com/psf/black
- repo: https://github.com/psf/black
rev: 25.11.0
hooks:
- id: black
language_version: python3
exclude: 'mathics/version.py'
stages: [pre-commit]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.31.0 # Use the latest version
hooks:
- id: check-github-workflows
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ Downloads = "https://github.com/Mathics3/mathics-core/releases"

[project.optional-dependencies]
dev = [
"check-jsonschema",
"pexpect",
"pre-commit",
"pytest",
]
full = [
Expand Down Expand Up @@ -130,9 +132,6 @@ version = {attr = "mathics.version.__version__"}
force_union_syntax = true

[[tool.mypy.overrides]]
module = ["mpmath", "llvmlite.*", "trepan.*"]
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = ["mathics.benchmark", "mathics.builtin.*", "mathics.eval.*", "test.*"]
module = ["mpmath", "llvmlite.*", "trepan.*", "mathics.benchmark",
"mathics.builtin.*", "mathics.eval.*", "test.*"]
ignore_errors = true
Loading