Skip to content

Commit

Permalink
Make the CLI work again and add software tests to prevent future havo…
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Sep 15, 2020
1 parent 6abefe4 commit a12dfb9
Show file tree
Hide file tree
Showing 9 changed files with 335 additions and 74 deletions.
2 changes: 1 addition & 1 deletion .flake8
Expand Up @@ -2,4 +2,4 @@
select = B,B9,BLK,C,E,F,W,S
ignore = E203,W503
max-line-length = 88
per-file-ignores = tests/*:S101, wetterdienst/__init__.py:F401 wetterdienst/cli.py:B950
per-file-ignores = tests/*:S101, wetterdienst/__init__.py:F401, wetterdienst/cli.py:E501,B950
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Expand Up @@ -7,14 +7,14 @@ Development
- Add test for Jupyter notebook
- Add function to discover available climate observations
(time resolution, parameter, period type)
- Make the CLI work again and add software tests to prevent future havocs

0.6.0 (07.09.2020)
==================

- enhance usage of get_nearby_stations to check for availability
- output of get_nearby_stations is now a slice of meta_data DataFrame output


0.5.0 (27.08.2020)
==================

Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Expand Up @@ -11,15 +11,15 @@
@nox.session(python=["3.6", "3.7", "3.8"])
def tests(session):
"""Run tests."""
session.run("poetry", "install", "--no-dev", external=True)
session.run("poetry", "install", "--no-dev", "--extras=excel", external=True)
install_with_constraints(session, "pytest", "pytest-notebook", "matplotlib", "mock")
session.run("pytest")


@nox.session(python=["3.7"])
def coverage(session: Session) -> None:
"""Run tests and upload coverage data."""
session.run("poetry", "install", "--no-dev", external=True)
session.run("poetry", "install", "--no-dev", "--extras=excel", external=True)
install_with_constraints(
session,
"coverage[toml]",
Expand Down
72 changes: 63 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Expand Up @@ -85,9 +85,11 @@ importlib_metadata = {version = "1.6.1", python = "<3.8"}
ipython = { version = "^7.10.1", optional = true }
ipython-genutils = { version = "^0.2.0", optional = true }
matplotlib = { version = "^3.0.3", optional = true }
openpyxl = { version = "^3.0.5", optional = true }

[tool.poetry.extras]
ipython = ["ipython", "ipython-genutils", "matplotlib"]
excel = ["openpyxl"]

[tool.poetry.dev-dependencies]
nox = "^2020.8.22"
Expand Down

0 comments on commit a12dfb9

Please sign in to comment.