Commit 1bac23b9 authored by Jonas Kaufmann's avatar Jonas Kaufmann Committed by Antoine Kaufmann
Browse files

Makefile: move definition of typecheck-python and lint-python targets here

parent d64fbc3a
...@@ -45,7 +45,6 @@ $(eval $(call subdir,sims)) ...@@ -45,7 +45,6 @@ $(eval $(call subdir,sims))
$(eval $(call subdir,dist)) $(eval $(call subdir,dist))
$(eval $(call subdir,doc)) $(eval $(call subdir,doc))
$(eval $(call subdir,images)) $(eval $(call subdir,images))
$(eval $(call subdir,experiments))
all: $(ALL_ALL) all: $(ALL_ALL)
...@@ -94,6 +93,17 @@ format-isort: ...@@ -94,6 +93,17 @@ format-isort:
isort --skip experiments/simbricks/orchestration/utils/graphlib.py \ isort --skip experiments/simbricks/orchestration/utils/graphlib.py \
results/ experiments/ doc/ results/ experiments/ doc/
lint-python:
pylint -d missing-module-docstring,missing-class-docstring \
--ignore-paths experiments/simbricks/orchestration/utils/graphlib.py \
experiments/ results/
typecheck-python:
pytype -j 0 --keep-going \
--exclude experiments/pyexps/ae/ \
experiments/simbricks/orchestration/utils/graphlib.py \
-- experiments/ results/
lint: lint-cpplint lint-clang-format lint-python lint: lint-cpplint lint-clang-format lint-python
lint-all: lint lint-clang-tidy typecheck-python lint-all: lint lint-clang-tidy typecheck-python
......
# Copyright 2022 Max Planck Institute for Software Systems, and
# National University of Singapore
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
include mk/subdir_pre.mk
lint-python:
pylint -d missing-module-docstring,missing-class-docstring \
--ignore-paths experiments/simbricks/orchestration/utils/graphlib.py \
experiments/ results/
typecheck-python:
pytype -j 0 --keep-going \
--exclude experiments/pyexps/ae/ \
experiments/simbricks/orchestration/utils/graphlib.py \
-- experiments/ results/
include mk/subdir_post.mk
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment