diff --git a/.github/workflowstest.yml b/.github/workflowstest.yml new file mode 100644 index 0000000..c9e1d0d --- /dev/null +++ b/.github/workflowstest.yml @@ -0,0 +1,22 @@ +name: Lint All The Things +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: grantmcconnaughey/lintly-flake8-github-action@v1.0 + with: + # The GitHub API token to create reviews with + token: ${{ secrets.GITHUB_TOKEN }} + # Fail if "new" violations detected or "any", default "new" + failIf: any + # Additional arguments to pass to flake8, default "." (current directory) + args: "--ignore=E121,E123 ." diff --git a/agu_oss/clean_data.py b/agu_oss/clean_data.py index be27dba..3ae554c 100644 --- a/agu_oss/clean_data.py +++ b/agu_oss/clean_data.py @@ -20,8 +20,8 @@ def open_and_clean(url): """ temp_df = pd.read_csv(url, - skiprows=69, - delim_whitespace=True) + skiprows = 69, + delim_whitespace = True) all_cols = temp_df.columns[1:] @@ -34,5 +34,7 @@ def open_and_clean(url): # Finally create a date time column temp_df["date"] = pd.to_datetime(temp_df[['Year', 'Month', 'Day']]) + + print('done') return temp_df.set_index("date")