Skip to content

Commit ad40160

Browse files
Vivek Miglanifacebook-github-bot
Vivek Miglani
authored andcommitted
Update config to allow running mypy on Captum in fbcode (#1386)
Summary: Pull Request resolved: #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
1 parent 75be44f commit ad40160

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.cfg

+6
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ exclude =
1111
omit =
1212
test/*
1313
setup.py
14+
15+
[mypy]
16+
exclude = ^.*fb.*$
17+
18+
[mypy-captum.log.fb.*]
19+
ignore_errors = True

0 commit comments

Comments
 (0)