From 56576f4dabfa4cf156dc64deee8cf68cb58a52a0 Mon Sep 17 00:00:00 2001 From: "S. Co1" Date: Wed, 27 Oct 2021 17:45:45 -0400 Subject: [PATCH] Exclude Scanner from black & mypy until they support pattern matching See: https://github.com/python/mypy/pull/10191 https://github.com/psf/black/pull/2562 --- .pre-commit-config.yaml | 1 + pyproject.toml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ee59738..13101ed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,6 +6,7 @@ repos: rev: 21.9b0 hooks: - id: black + exclude: ^pylox/scanner.py - repo: https://github.com/pycqa/isort rev: 5.9.3 hooks: diff --git a/pyproject.toml b/pyproject.toml index 3768ea4..2a31b6c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,6 +47,7 @@ tox = "^3.24" [tool.black] line-length = 100 +extend-exclude = 'scanner.py' [tool.isort] case_sensitive = true @@ -56,6 +57,7 @@ order_by_type = false profile = "black" [tool.mypy] +exclude = "^pylox/scanner.py" disallow_incomplete_defs = true disallow_untyped_calls = true disallow_untyped_decorators = true