@@ -41,7 +41,6 @@ COV_HTML_OUT_DIR=$(PY_SPEC_DIR)/$(COV_HTML_OUT)
4141COV_INDEX_FILE =$(COV_HTML_OUT_DIR ) /index.html
4242
4343CURRENT_DIR = ${CURDIR}
44- LINTER_CONFIG_FILE = $(CURRENT_DIR ) /linter.ini
4544GENERATOR_ERROR_LOG_FILE = $(CURRENT_DIR ) /$(TEST_VECTOR_DIR ) /testgen_error_log.txt
4645
4746SCRIPTS_DIR = ${CURRENT_DIR}/scripts
@@ -151,13 +150,16 @@ codespell:
151150
152151lint : pyspec
153152 . venv/bin/activate; cd $(PY_SPEC_DIR ) ; \
154- flake8 --config $(LINTER_CONFIG_FILE ) ./eth2spec \
155- && python -m pylint --rcfile $(LINTER_CONFIG_FILE ) $(PYLINT_SCOPE ) \
156- && python -m mypy --config-file $(LINTER_CONFIG_FILE ) $(MYPY_SCOPE )
153+ flake8 --config $(CURRENT_DIR ) /flake8.ini ./eth2spec \
154+ && python -m pylint --rcfile $(CURRENT_DIR ) /pylint.ini $(PYLINT_SCOPE ) \
155+ && python -m mypy --config-file $(CURRENT_DIR ) /mypy.ini $(MYPY_SCOPE )
157156
158157lint_generators : pyspec
159158 . venv/bin/activate; cd $(TEST_GENERATORS_DIR ) ; \
160- flake8 --config $(LINTER_CONFIG_FILE )
159+ flake8 --config $(CURRENT_DIR ) /flake8.ini
160+
161+ # If set to true, it will not run generator tests.
162+ modcheck ?= false
161163
162164# Runs a generator, identified by param 1
163165define run_generator
@@ -177,7 +179,7 @@ define run_generator
177179 . venv/bin/activate; \
178180 pip3 install ../../../dist/eth2spec-*.whl; \
179181 pip3 install 'eth2spec[generator]'; \
180- python3 main.py -o $(CURRENT_DIR ) /$(TEST_VECTOR_DIR ) ; \
182+ python3 main.py -o $(CURRENT_DIR ) /$(TEST_VECTOR_DIR ) $( if $( filter true, $( modcheck ) ) ,--modcheck) ; \
181183 echo "generator $(1 ) finished"
182184endef
183185
0 commit comments