Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pre-commit.ci #14

Merged
merged 2 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading