Skip to content

Commit

Permalink
Adding mypy ini as flag to mypy_cli when present.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlgy authored Aug 6, 2024
1 parent 8c6c163 commit 4f4da47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mypy/private/mypy.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def _mypy_impl(target, ctx):
args.add_all(ctx.rule.files.srcs)

if hasattr(ctx.attr, "_mypy_ini"):
args.add("--mypy-ini", ctx.file._mypy_ini.path)
config_files = [ctx.file._mypy_ini]
else:
config_files = []
Expand Down

0 comments on commit 4f4da47

Please sign in to comment.