pubsync test

This commit is contained in:
Eric Froemling 2019-10-06 08:33:41 -07:00
parent a0d3188b38
commit 27b1fc4548
5 changed files with 11 additions and 5 deletions

View File

@ -4,8 +4,8 @@
# The targets here do not expect -jX to be passed to them and generally # The targets here do not expect -jX to be passed to them and generally
# add that argument to subprocesses as needed. # add that argument to subprocesses as needed.
# Default is to build/run the mac version. # Print help by default
all: cmake all: help
# We often want one job per core, so try to determine our logical core count. # We often want one job per core, so try to determine our logical core count.
ifeq ($(wildcard /proc),/proc) # Linux ifeq ($(wildcard /proc),/proc) # Linux

View File

@ -482,7 +482,9 @@ def _filter_module_name(mpath: str) -> str:
def runmypy(filenames: List[str], full: bool = False, def runmypy(filenames: List[str], full: bool = False,
check: bool = True) -> None: check: bool = True) -> None:
"""Run MyPy on provided filenames.""" """Run MyPy on provided filenames."""
args = ['mypy', '--pretty', '--config-file', '.mypy.ini'] + filenames args = [
'python3.7', '-m', 'mypy', '--pretty', '--config-file', '.mypy.ini'
] + filenames
if full: if full:
args.insert(1, '--no-incremental') args.insert(1, '--no-incremental')
subprocess.run(args, check=check) subprocess.run(args, check=check)

View File

@ -370,6 +370,10 @@ def makefile_target_list() -> None:
return ' - ' + doc return ' - ' + doc
return doc return doc
print('--------------------------\n'
'Available Makefile Targets\n'
'--------------------------\n')
entries: List[_Entry] = [] entries: List[_Entry] = []
for i, line in enumerate(lines): for i, line in enumerate(lines):

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python3.7
"""Wee little snippets of functionality specific to this project. """Wee little snippets of functionality specific to this project.
All top level functions here can be run by passing them as the first All top level functions here can be run by passing them as the first

View File

@ -224,7 +224,7 @@ def main() -> None:
# Update our python enums module. # Update our python enums module.
# Should do this before updating asset deps since this is an asset. # Should do this before updating asset deps since this is an asset.
if os.path.exists('tools/update_puthon_enums_module'): if os.path.exists('tools/update_python_enums_module'):
if os.system('tools/update_python_enums_module' + checkarg) != 0: if os.system('tools/update_python_enums_module' + checkarg) != 0:
print(CLRRED + 'Error checking/updating python enums module' + print(CLRRED + 'Error checking/updating python enums module' +
CLREND) CLREND)