Skip to content

Commit

Permalink
Exclude Scanner from black & mypy until they support pattern matching
Browse files Browse the repository at this point in the history
  • Loading branch information
sco1 committed Oct 28, 2021
1 parent 5d91bb4 commit 56576f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Expand Up @@ -47,6 +47,7 @@ tox = "^3.24"

[tool.black]
line-length = 100
extend-exclude = 'scanner.py'

[tool.isort]
case_sensitive = true
Expand All @@ -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
Expand Down

0 comments on commit 56576f4

Please sign in to comment.