-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from stefco/dev
v0.2.10 add landscape.io, fix some stuff
- Loading branch information
Showing
14 changed files
with
1,290 additions
and
936 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
languages: | ||
Python: true | ||
exclude_paths: | ||
- "docs/*" | ||
- "env/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/sh | ||
# | ||
# 2016-03-01 If python version is updated, tag this commit. --stefco | ||
# | ||
# An example hook script to verify what is about to be committed. | ||
# Called by "git commit" with no arguments. The hook should | ||
# exit with non-zero status after issuing an appropriate message if | ||
# it wants to stop the commit. | ||
# | ||
# To enable this hook, rename this file to "pre-commit". | ||
|
||
if git rev-parse --verify HEAD~1 >/dev/null 2>&1 | ||
then | ||
against=HEAD~1 | ||
else | ||
# Initial commit: diff against an empty tree object | ||
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | ||
fi | ||
|
||
if git rev-parse --verify HEAD >/dev/null 2>&1 | ||
then | ||
current=HEAD | ||
else | ||
# Initial commit: diff against an empty tree object | ||
current=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | ||
fi | ||
|
||
PRJ="geco_stat" | ||
if ! [ -e "$PRJ/_version.py" ]; then | ||
echo "no $PRJ/_version.py file found." | ||
elif [ "`git show $against:$PRJ/_version.py`" == "`git show $current:$PRJ/_version.py`" ]; then | ||
echo "version info unchanged in $PRJ/_version.py." | ||
else | ||
echo "version info updated in $PRJ/_version.py, tagging this commit." | ||
version=$( printf "`cat geco_stat/_version.py`\nprint('v' + __release__)\n" | python ) | ||
git tag -a "$version" -m "update to version $version" | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# landscape.io configuration for GWpy | ||
|
||
max-line-length: 80 | ||
|
||
# ignore non-package files/directories | ||
ignore-paths: | ||
- docs | ||
- env | ||
- hooks | ||
# - examples | ||
# - ez_setup.py | ||
|
||
requirements: | ||
- requirements.txt | ||
|
||
# ignore errors | ||
# pylint: | ||
# disable: | ||
# - super-on-old-class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
class VersionException(Exception): | ||
""" | ||
For when the user attempts to instantiate an object using a | ||
datastructure from a different version number of the class. | ||
""" | ||
|
||
|
||
class MissingChannelDataException(Exception): | ||
""" | ||
For when an attempt has been made to fetch a timeseries for | ||
a given time interval, but no data has been found, or the | ||
data request has timed out. | ||
""" |
Oops, something went wrong.