Skip to content

Commit

Permalink
Merge pull request #14 from mraspaud/add-precommit
Browse files Browse the repository at this point in the history
Use pre-commit.ci
  • Loading branch information
mraspaud authored May 17, 2024
2 parents bee0429 + 990d240 commit 77886d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ wheels/
*.egg-info

# venv
.venv
.venv
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 77886d5

Please sign in to comment.