Skip to content

Commit

Permalink
Change settings for code formatting and checking
Browse files Browse the repository at this point in the history
- Format code with line length 120

- Add more linting checks
  • Loading branch information
gutzbenj committed Jan 23, 2022
1 parent d3fed23 commit 48a25c2
Show file tree
Hide file tree
Showing 94 changed files with 1,376 additions and 2,189 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Expand Up @@ -48,7 +48,7 @@ jobs:
uses: actions/cache@v2
env:
# Increase this value to reset cache if `poetry.lock` has not changed.
CACHE_NUMBER: 3
CACHE_NUMBER: 1
with:
path: ${{ steps.poetry-cache-dir.outputs.dir }}
key: poetry-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}-${{ env.CACHE_NUMBER }}
Expand Down
6 changes: 6 additions & 0 deletions README.rst
Expand Up @@ -109,6 +109,12 @@ ECCC (Environnement et Changement Climatique Canada / Environment and Climate Ch
- Hourly, daily, monthly, (annual) resolution
- Time series of stations in Canada

NOAA (National Oceanic And Atmospheric Administration / National Oceanic And Atmospheric Administration / United States Of America)
- Global Historical Climatology Network
- Historical, daily weather observations from around the globe
- more then 100k stations
- data for weather services which don't publish data themselves

To get better insight on which data we have currently made available and under which
license those are published take a look at the data_ section.

Expand Down
221 changes: 204 additions & 17 deletions THIRD_PARTY_NOTICES
Expand Up @@ -1701,7 +1701,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


aenum
3.1.6
3.1.7
BSD License
Ethan Furman
https://github.com/ethanfurman/aenum
Expand Down Expand Up @@ -4273,6 +4273,32 @@ immunities granted to it by virtue of its status as an
Intergovernmental Organization or submit itself to any jurisdiction.


docformatter
1.4
MIT License
Steven Myint
https://github.com/myint/docformatter
Copyright (C) 2012-2018 Steven Myint

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


docutils
0.16
BSD License; GNU General Public License (GPL); Public Domain; Python Software Foundation License
Expand Down Expand Up @@ -4894,6 +4920,13 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.


eradicate
2.0.0
MIT License
Steven Myint
https://github.com/myint/eradicate
UNKNOWN

et-xmlfile
1.1.0
MIT License
Expand Down Expand Up @@ -5225,6 +5258,32 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


flake8-2020
1.6.1
MIT License
Anthony Sottile
https://github.com/asottile/flake8-2020
Copyright (c) 2019 Anthony Sottile

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.


flake8-bandit
2.1.2
MIT License
Expand Down Expand Up @@ -5679,6 +5738,67 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


flake8-copyright
0.2.2
UNKNOWN
Virgil Dupras
https://github.com/savoirfairelinux/flake8-copyright
UNKNOWN

flake8-docstrings
1.6.0
MIT License
Simon ANDRÉ
https://gitlab.com/pycqa/flake8-docstrings
Copyright (c) 2013 Simon Andre, Ian Cordasco

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.


flake8-eradicate
1.2.0
MIT License
Nikita Sobolev
https://github.com/wemake-services/flake8-eradicate
MIT License

Copyright (c) 2018 Nikita Sobolev

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


flake8-isort
4.1.1
GNU General Public License v2 (GPLv2)
Expand Down Expand Up @@ -6025,6 +6145,34 @@ library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.


flake8-plugin-utils
1.3.2
MIT License
Afonasev Evgeniy
https://pypi.org/project/flake8-plugin-utils
MIT License

Copyright (c) 2019 Afonasev Evgeniy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


flake8-polyfill
1.0.2
MIT License
Expand All @@ -6039,19 +6187,14 @@ Joseph Kahn
https://github.com/jbkahn/flake8-print
UNKNOWN

flakeheaven
0.11.0
flake8-return
1.1.3
MIT License
Gram (@orsinium)
https://github.com/flakeheaven/flakeheaven
UNKNOWN

flakehell
0.8.0
Afonasev Evgeniy
https://pypi.org/project/flake8-return
MIT License
Gram (@orsinium)
https://github.com/life4/flakehell
MIT License 2019 Gram (@orsinium) <master_fess@mail.ru>

Copyright (c) 2019 Afonasev Evgeniy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -6060,8 +6203,8 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Expand All @@ -6072,6 +6215,13 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


flakeheaven
0.11.0
MIT License
Gram (@orsinium)
https://github.com/flakeheaven/flakeheaven
UNKNOWN

freezegun
1.1.0
Apache Software License
Expand Down Expand Up @@ -7191,7 +7341,7 @@ http://jupyter.org
UNKNOWN

jupyter-client
7.1.1
7.1.2
BSD License
Jupyter Development Team
https://jupyter.org
Expand Down Expand Up @@ -7393,7 +7543,7 @@ to indicate the copyright and license terms:


jupyter-server
1.13.3
1.13.4
BSD License
Jupyter Development Team
https://jupyter.org
Expand Down Expand Up @@ -8167,7 +8317,7 @@ Copyright (C) 2008-2011 INADA Naoki <songofacandy@gmail.com>


multidict
5.2.0
6.0.0
Apache Software License
Andrew Svetlov
https://github.com/aio-libs/multidict
Expand Down Expand Up @@ -11380,6 +11530,36 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


pydocstyle
6.1.1
MIT License
Amir Rachum
https://github.com/PyCQA/pydocstyle/
Copyright (c) 2012 GreenSteam, <http://greensteam.dk/>

Copyright (c) 2014-2020 Amir Rachum, <http://amir.rachum.com/>

Copyright (c) 2020 Sambhav Kothari, <https://github.com/samj1912>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


pyflakes
2.4.0
MIT License
Expand Down Expand Up @@ -15208,6 +15388,13 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


untokenize
0.1.1
MIT License
Steven Myint
https://github.com/myint/untokenize
UNKNOWN

urllib3
1.26.8
MIT License
Expand Down
8 changes: 5 additions & 3 deletions example/dwd_describe_fields.py
Expand Up @@ -7,7 +7,7 @@
=====
Acquire information about the data fields from DWD.
"""
""" # Noqa:D205,D400
import logging
from pprint import pprint

Expand All @@ -22,11 +22,12 @@


def fields_example():
"""Print DWD field examples for one specification."""
# Output in JSON format.
# import json; print(json.dumps(metadata.describe_fields(), indent=4))
# import json; print(json.dumps(metadata.describe_fields(), indent=4)) # Noqa:E800

# Output in YAML format.
# import yaml; print(yaml.dump(dict(metadata.describe_fields()), default_style="|"))
# import yaml; print(yaml.dump(dict(metadata.describe_fields()), default_style="|")) # Noqa:E800

# Output in pretty-print format.
pprint(
Expand All @@ -49,6 +50,7 @@ def fields_example():


def main():
"""Run example."""
logging.basicConfig(level=logging.INFO)
fields_example()

Expand Down

0 comments on commit 48a25c2

Please sign in to comment.