From 458623df6af9bd84451f291b2dff256120d2c265 Mon Sep 17 00:00:00 2001 From: Simo Tukiainen Date: Sun, 20 Nov 2022 12:11:39 +0200 Subject: [PATCH] Update README --- .github/workflows/test.yml | 3 +-- README.md | 9 ++++++--- cloudnetpy/products/drizzle.py | 1 - setup.py | 2 ++ 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d7b8e89e..884fa4a8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,8 +31,7 @@ jobs: mypy --ignore-missing-imports tests/ - name: Test with pytest-flakefinder run: | - pytest --flake-finder tests/unit/ --flake-runs=2 - pytest --flake-finder cloudnetpy/model_evaluation/tests/unit/ --flake-runs=2 + pytest --flake-finder --flake-runs=2 - name: Run e2e-test run: | python3 tests/e2e_test.py diff --git a/README.md b/README.md index bc0af0cc..f6d70031 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ We encourage you to contribute to CloudnetPy! Please check out the [contribution ## Development -Follow the installation instructions from the source above but instead of `pip install .` install with the test-dependencies and [pre-commit](https://pre-commit.com/) hooks: +Follow the installation instructions from the source above but install with the test-dependencies and [pre-commit](https://pre-commit.com/) hooks: ```sh python3 -m pip install -e .[test,dev] pre-commit install @@ -55,15 +55,18 @@ pre-commit install Run unit tests: ```sh -pytest +pytest --flake-finder --flake-runs=2 ``` Run end-to-end tests: ```sh python3 tests/e2e_test.py ``` +```sh +for f in cloudnetpy/model_evaluation/tests/e2e/*/main.py; do $f; done +``` -Force `pre-commit` checks of all files: +Force `pre-commit` checks (`pylint`, `mypy`, etc.) for all files: ```sh pre-commit run --all ``` diff --git a/cloudnetpy/products/drizzle.py b/cloudnetpy/products/drizzle.py index 07eeeaf5..604b41d2 100644 --- a/cloudnetpy/products/drizzle.py +++ b/cloudnetpy/products/drizzle.py @@ -111,7 +111,6 @@ def _calc_lwc(self): """Calculates drizzle liquid water content (kg m-3)""" rho_water = 1000 dia, mu, s = [self._params.get(key) for key in ("Do", "mu", "S")] - print(dia, mu, s) assert isinstance(mu, np.ndarray) assert isinstance(s, np.ndarray) assert isinstance(dia, np.ndarray) diff --git a/setup.py b/setup.py index 67f5048b..29ee3fed 100644 --- a/setup.py +++ b/setup.py @@ -45,6 +45,8 @@ classifiers=[ "Development Status :: 5 - Production/Stable", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Intended Audience :: Science/Research",