Skip to content

Commit

Permalink
tell mypy to ignore missing types in imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tjlane committed Aug 22, 2024
1 parent c06af5c commit ebc2da0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ dev = [
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

[tool.mypy]
[[tool.mypy.overrides]]
module = "reciprocalspaceship.*,gemmi.*,scipy.stats.*,scipy.optimize.*"
ignore_missing_imports = true

[tool.ruff]
line-length = 100
lint.flake8-pytest-style.fixture-parentheses = false

lint.select = [
"E", # pycodestyle (PEP 8) rules
"F", # pyflakes rules
Expand All @@ -37,7 +41,6 @@ lint.select = [
"Q", # quote rules (e.g., enforcing consistent quote usage)
"PT", # flake8-pytest-style rules for pytest
]

exclude = [
"build/",
"dist/",
Expand Down

0 comments on commit ebc2da0

Please sign in to comment.