Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-26010: Move mypy execution to root directory, and run it on a directory. #329

Merged
merged 1 commit into from
Jul 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.