Bump lint workflow py version

This commit is contained in:
amercader 2022-12-14 15:57:23 +01:00
parent 917110f155
commit 64f7cb63db
2 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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