diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 82dc3cfc2..598de900b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 0e60c7c5a..3563b1aac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,7 +67,9 @@ Downloads = "https://github.com/Mathics3/mathics-core/releases" [project.optional-dependencies] dev = [ + "check-jsonschema", "pexpect", + "pre-commit", "pytest", ] full = [ @@ -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