File tree Expand file tree Collapse file tree 5 files changed +15
-10
lines changed Expand file tree Collapse file tree 5 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 28
28
# pycharm
29
29
.idea /
30
30
31
- # typshed repo
32
- typeshed /2and3 /schema_salad
33
- typeshed /2and3 /ruamel /yaml
31
+ # local type stubs
32
+ mypy-stubs /ruamel /yaml
34
33
35
34
36
35
# mypy
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ clean: FORCE
72
72
# Linting and code style related targets
73
73
# # sorting imports using isort: https://github.com/timothycrosley/isort
74
74
sort_imports : $(PYSOURCES )
75
- isort $^ typeshed
75
+ isort $^
76
76
77
77
remove_unused_imports : $(PYSOURCES )
78
78
autoflake --in-place --remove-all-unused-imports $^
@@ -93,7 +93,7 @@ format:
93
93
black setup.py cwlupgrader tests
94
94
95
95
format-check :
96
- black --diff --check cwlupgrader setup.py typeshed
96
+ black --diff --check cwlupgrader setup.py
97
97
98
98
# # pylint : run static code analysis on Python code
99
99
pylint : $(PYSOURCES )
@@ -153,11 +153,11 @@ mypy3: mypy
153
153
mypy : $(PYSOURCES )
154
154
if ! test -f $( shell python3 -c ' import ruamel.yaml; import os.path; print(os.path.dirname(ruamel.yaml.__file__))' ) /py.typed ; \
155
155
then \
156
- rm -Rf typeshed /ruamel/yaml ; \
156
+ rm -Rf mypy-stubs /ruamel/yaml ; \
157
157
ln -s $(shell python3 -c 'import ruamel.yaml; import os.path; print(os.path.dirname(ruamel.yaml.__file__) )' ) \
158
- typeshed /ruamel/ ; \
158
+ mypy-stubs /ruamel/ ; \
159
159
fi # if minimally required ruamel.yaml version is 0.15.99 or greater, than the above can be removed
160
- MYPYPATH=$$ MYPYPATH:typeshed mypy $^
160
+ MYPYPATH=$$ MYPYPATH:mypy-stubs mypy $^
161
161
162
162
pyupgrade : $(PYSOURCES )
163
163
pyupgrade --exit-zero-even-if-changed --py36-plus $^
File renamed without changes.
Original file line number Diff line number Diff line change 1
- ruamel.yaml >= 0.14.12 , < 0.17.22
1
+ ruamel.yaml >= 0.16.0 , < 0.17.22 ;python_version >= '3.10'
2
+ ruamel.yaml >= 0.15.98 , < 0.17.22 ;python_version >= '3.9'
3
+ ruamel.yaml >= 0.15.78 , < 0.17.22 ;python_version >= '3.8'
4
+ ruamel.yaml >= 0.15.71 , < 0.17.22
2
5
schema-salad
Original file line number Diff line number Diff line change 27
27
package_data = {"cwlupgrader.tests" : ["../testdata/**/*.cwl" ]},
28
28
install_requires = [
29
29
"setuptools" ,
30
- "ruamel.yaml >= 0.14.12, < 0.17.22" ,
30
+ "ruamel.yaml >= 0.16.0, < 0.17.22;python_version>='3.10'" ,
31
+ "ruamel.yaml >= 0.15.98, < 0.17.22;python_version>='3.9'" ,
32
+ "ruamel.yaml >= 0.15.78, < 0.17.22;python_version>='3.8'" ,
33
+ "ruamel.yaml >= 0.15.71, < 0.17.22" ,
31
34
"schema_salad" ,
32
35
],
33
36
entry_points = {"console_scripts" : ["cwl-upgrader = cwlupgrader.main:main" ]},
You can’t perform that action at this time.
0 commit comments