Bump lint workflow py version
This commit is contained in:
parent
917110f155
commit
64f7cb63db
|
@ -8,7 +8,7 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.6'
|
||||
python-version: '3.7'
|
||||
- name: Install requirements
|
||||
run: pip install flake8 pycodestyle
|
||||
- name: Check syntax
|
||||
|
|
|
@ -15,9 +15,13 @@ from pprint import pprint
|
|||
from ckan import model
|
||||
from ckan.model.package_extra import PackageExtra
|
||||
|
||||
from ckanext.spatial.lib.reports import validation_report
|
||||
from ckanext.spatial.harvesters import SpatialHarvester
|
||||
from ckanext.spatial.harvested_metadata import ISODocument
|
||||
try:
|
||||
from ckanext.spatial.lib.reports import validation_report
|
||||
from ckanext.spatial.harvesters import SpatialHarvester
|
||||
from ckanext.spatial.harvested_metadata import ISODocument
|
||||
except ImportError:
|
||||
# ckanext-harvest not loaded
|
||||
pass
|
||||
|
||||
from ckantoolkit import config
|
||||
|
||||
|
|
Loading…
Reference in New Issue