@@ -49,7 +49,7 @@ install-dep: install-dependencies
4949
5050install-dependencies : FORCE
5151 pip install --upgrade $(DEVPKGS )
52- pip install -r requirements.txt -r mypy-requirements.txt -r docs/requirements.txt
52+ pip install -r requirements.txt -r mypy-requirements.txt
5353
5454# # install : install the ${MODULE} module and script(s)
5555install : FORCE
@@ -80,7 +80,7 @@ clean: FORCE
8080# Linting and code style related targets
8181# # sorting imports using isort: https://github.com/timothycrosley/isort
8282sort_imports : $(filter-out schema_salad/metaschema.py,$(PYSOURCES ) )
83- isort $^ typeshed
83+ isort $^ mypy-stubs
8484
8585remove_unused_imports : $(filter-out schema_salad/metaschema.py,$(PYSOURCES ) )
8686 autoflake --in-place --remove-all-unused-imports $^
@@ -98,10 +98,10 @@ diff_pydocstyle_report: pydocstyle_report.txt
9898
9999# # format : check/fix all code indentation and formatting (runs black)
100100format :
101- black --exclude metaschema.py --exclude _version.py schema_salad setup.py typeshed
101+ black --exclude metaschema.py --exclude _version.py schema_salad setup.py mypy-stubs
102102
103103format-check :
104- black --diff --check --exclude metaschema.py --exclude _version.py schema_salad setup.py typeshed
104+ black --diff --check --exclude metaschema.py --exclude _version.py schema_salad setup.py mypy-stubs
105105
106106# # pylint : run static code analysis on Python code
107107pylint : $(PYSOURCES )
@@ -169,16 +169,10 @@ list-author-emails:
169169
170170mypy3 : mypy
171171mypy : $(filter-out setup.py,$(PYSOURCES ) )
172- if ! test -f $( shell python3 -c ' import ruamel.yaml; import os.path; print(os.path.dirname(ruamel.yaml.__file__))' ) /py.typed ; \
173- then \
174- rm -Rf typeshed/ruamel/yaml ; \
175- ln -s $(shell python3 -c 'import ruamel.yaml; import os.path; print(os.path.dirname(ruamel.yaml.__file__) )' ) \
176- typeshed/ruamel/ ; \
177- fi # if minimally required ruamel.yaml version is 0.15.99 or greater, than the above can be removed
178- MYPYPATH=$$ MYPYPATH:typeshed mypy $^
172+ MYPYPATH=$$ MYPYPATH:mypy-stubs mypy $^
179173
180174mypyc : $(PYSOURCES )
181- MYPYPATH=typeshed SCHEMA_SALAD_USE_MYPYC=1 python setup.py test
175+ MYPYPATH=mypy-stubs SCHEMA_SALAD_USE_MYPYC=1 python setup.py test
182176
183177pyupgrade : $(filter-out schema_salad/metaschema.py,$(PYSOURCES ) )
184178 pyupgrade --exit-zero-even-if-changed --py36-plus $^
0 commit comments