Skip to content

Commit

Permalink
Merge pull request #329 from lsst/tickets/DM-26010
Browse files Browse the repository at this point in the history
DM-26010: Move mypy execution to root directory, and run it on a directory.
  • Loading branch information
TallJimbo committed Jul 18, 2020
2 parents a83748a + a4e3d6f commit 5dce7a7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ jobs:
run: pip install mypy

- name: Change to source directory and run mypy
working-directory: ./python
run: mypy lsst
run: mypy python/lsst
4 changes: 4 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# -*- python -*-
from lsst.sconsUtils import scripts
from lsst.sconsUtils import state

scripts.BasicSConstruct("daf_butler", disableCc=True)
mypy = state.env.Command("mypy.log", "python/lsst/daf/butler",
"mypy python/lsst 2>&1 | tee -a mypy.log")
state.env.Alias("mypy", mypy)
1 change: 0 additions & 1 deletion python/mypy.ini → mypy.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[mypy]
warn_unused_configs = True
warn_redundant_casts = True
namespace_packages = True

[mypy-sqlalchemy.*]
ignore_missing_imports = True
Expand Down
6 changes: 0 additions & 6 deletions python/SConscript

This file was deleted.

0 comments on commit 5dce7a7

Please sign in to comment.