Skip to content

Commit

Permalink
fix flake8, README, add dev requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Sep 15, 2017
1 parent d931594 commit 69f347f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
[![Build Status](https://travis-ci.org/OSGeo/Cat-Interop.png)](https://travis-ci.org/OSGeo/Cat-Interop)

##OSGeo Catalogue Interoperability Working Group
## OSGeo Catalogue Interoperability Working Group
A place to version documents and discuss issues surrounding the Cat-Interop Project.

* Here's more about the overall project: http://wiki.osgeo.org/wiki/Cat-Interop.
Expand Down
1 change: 1 addition & 0 deletions export/export.py
Expand Up @@ -53,6 +53,7 @@ def csv2ct(version, version_date, csvfile):
return template.render(version=version, version_date=version_date,
link_types=reader)


if __name__ == '__main__':
if len(sys.argv) < 5:
print('Usage: %s <version> <version_date> <csv> <xml>' % sys.argv[0])
Expand Down
1 change: 1 addition & 0 deletions vocab/app/app.py
Expand Up @@ -80,5 +80,6 @@ def resolve_vocab_member(provider, resource_type, identifier, version):
if link['link_type'] == url:
return redirect(link['redirect'])


if __name__ == '__main__': # run locally, for fun
APP.run(host='0.0.0.0', port=8000, use_reloader=True, debug=True)
5 changes: 3 additions & 2 deletions vocab/pavement.py
Expand Up @@ -38,7 +38,7 @@
options(
app=Bunch(
home=path('app'),
voc='https://raw.githubusercontent.com/OSGeo/Cat-Interop/%s/LinkPropertyLookupTable.csv',
voc='https://raw.githubusercontent.com/OSGeo/Cat-Interop/%s/LinkPropertyLookupTable.csv', # noqa
build=path('app/build'),
version=open('VERSION.txt').read().strip()
)
Expand All @@ -56,7 +56,8 @@ def setup():
url = options.app.voc % 'master'
else:
url = options.app.voc % options.app.version
with open(options.app.build / 'LinkPropertyLookupTable.csv', 'w') as fileobj:
file_ = options.app.build / 'LinkPropertyLookupTable.csv'
with open(file_, 'w') as fileobj:
fileobj.write(urlopen(url).read())


Expand Down
1 change: 1 addition & 0 deletions vocab/requirements-dev.txt
@@ -0,0 +1 @@
flake8

0 comments on commit 69f347f

Please sign in to comment.