From f40295ef7f119c0ea9d38dc9c406e6f438471407 Mon Sep 17 00:00:00 2001 From: Martin Raspaud Date: Fri, 17 May 2024 14:29:33 +0200 Subject: [PATCH 1/2] Use pre-commit-ci --- .github/workflows/ci.yml | 7 ++----- README.md | 2 ++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3011881..5498f6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python -name: Python package +name: Run unit tests on: push: @@ -30,12 +30,9 @@ jobs: run: | sudo apt install -y redis-server python -m pip install --upgrade pip - python -m pip install ruff pytest pytest-cov freezegun responses + python -m pip install pytest pytest-cov freezegun responses python -m pip install git+https://github.com/gorakhargosh/watchdog python -m pip install -e .[local,minio,publishing,ssh,dataspace,datastore,dhus,selector] - - name: Lint with ruff - run: | - ruff check . - name: Test with pytest run: | pytest --cov=pytroll_watchers tests --cov-report=xml diff --git a/README.md b/README.md index 41ad1c0..5357fe7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # pytroll-watchers Utility functions and scripts to watch for new files on local or remote filesystems. + +[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/pytroll/pytroll-watchers/main.svg)](https://results.pre-commit.ci/latest/github/pytroll/pytroll-watchers/main) From 990d24025792ac6eddd7567d709f78b8feec3855 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 17 May 2024 12:30:33 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b2546d8..ae8554d 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,4 @@ wheels/ *.egg-info # venv -.venv \ No newline at end of file +.venv