Skip to content

Commit

Permalink
chore(internal): exclude mypy from running on tests (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 27, 2024
1 parent 8125eac commit 9ad6f0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ show_error_codes = True
# Exclude _files.py because mypy isn't smart enough to apply
# the correct type narrowing and as this is an internal module
# it's fine to just use Pyright.
exclude = ^(src/lithic/_files\.py|_dev/.*\.py|src/lithic/resources/external_bank_accounts/external_bank_accounts\.py)$
#
# We also exclude our `tests` as mypy doesn't always infer
# types correctly and Pyright will still catch any type errors.
exclude = ^(src/lithic/_files\.py|_dev/.*\.py|tests/.*|src/lithic/resources/external_bank_accounts/external_bank_accounts\.py)$

strict_equality = True
implicit_reexport = True
Expand Down

0 comments on commit 9ad6f0b

Please sign in to comment.