Skip to content

Commit

Permalink
Update config to allow running mypy on Captum in fbcode (pytorch#1386)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#1386

Running mypy directly on Captum within fbcode results in errors due to fb only directories, which doesn't match the behavior of mypy in OSS.

Add appropriate excludes to setup.cfg to enable direct usage of mypy in fbcode

Reviewed By: craymichael

Differential Revision: D64576023

fbshipit-source-id: 59df78ea24719c9eba307836c5fe2373541cd800
  • Loading branch information
Vivek Miglani authored and facebook-github-bot committed Oct 18, 2024
1 parent 75be44f commit ad40160
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ exclude =
omit =
test/*
setup.py

[mypy]
exclude = ^.*fb.*$

[mypy-captum.log.fb.*]
ignore_errors = True

0 comments on commit ad40160

Please sign in to comment.