diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index e60c9c0..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Lint - -on: - workflow_call: - -env: - PYTHONUNBUFFERED: 1 - FORCE_COLOR: 1 - CLICOLOR_FORCE: 1 - -permissions: - contents: read - -jobs: - lint: - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - name: Set up Python 3.12 - uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1 - with: - python-version: '3.12' - cache: pip - - run: python -m pip install --constraint=.github/workflows/constraints.txt pip setuptools wheel hatch - - name: Set up pre-commit cache - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 - with: - path: ~/.cache/pre-commit - key: lint-${{ hashFiles('.pre-commit-config.yaml') }} - - run: hatch run lint:all diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bc86785..e9744c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,8 +17,6 @@ permissions: contents: read jobs: - lint: - uses: ./.github/workflows/lint.yml test: uses: ./.github/workflows/test.yml secrets: inherit diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f244c4f..5f68b81 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,8 +6,8 @@ ci: autofix_prs: false autoupdate_commit_msg: 'build: update pre-commit hooks' - autoupdate_schedule: weekly - skip: [licensecheck] + autoupdate_schedule: monthly + skip: [licensecheck] # does not run on pre-commit.ci, due to sqlite error, runs locally repos: # Ref: https://pre-commit.com/#meta-hooks diff --git a/README.md b/README.md index 2749048..04a1416 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ This is a community maintained fork of the original [sickle](https://github.com/ | | | | --- | --- | -| CI | [![ci][ci-badge]][ci-workflow] [![coverage][coverage-badge]][ci-workflow] | +| CI | [![pre-commit.ci status][pre-commit-ci-badge]][pre-commit-ci-status] [![ci][ci-badge]][ci-workflow] [![coverage][coverage-badge]][ci-workflow] | | Docs | [![docs][docs-badge]][docs-workflow] | -| Meta | [![OpenSSF Scorecard][scorecard-badge]][scorecard-url] [![hatch][hatch-badge]][hatch] [![pre-commit enabled][pre-commit-badge]][pre-commit] [![ruff][ruff-badge]][ruff] [![mypy][mypy-badge]][mypy] [![License][license-badge]][license] | +| Meta | [![OpenSSF Scorecard][scorecard-badge]][scorecard-url] [![hatch][hatch-badge]][hatch] [![ruff][ruff-badge]][ruff] [![mypy][mypy-badge]][mypy] [![License][license-badge]][license] | oaipmh-scythe is a lightweight [OAI-PMH](http://www.openarchives.org/OAI/openarchivesprotocol.html) client library written in Python. It has been designed for conveniently retrieving data from OAI interfaces the Pythonic way: @@ -54,6 +54,8 @@ oaipmh-scythe is distributed under the terms of the [BSD](https://spdx.org/licen [ci-workflow]: https://github.com/afuetterer/oaipmh-scythe/actions/workflows/main.yml [ci-badge]: https://github.com/afuetterer/oaipmh-scythe/actions/workflows/main.yml/badge.svg [coverage-badge]: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/afuetterer/fcb87d45f4d7defdfeffa65eb1d65f63/raw/coverage-badge.json +[pre-commit-ci-status]: https://results.pre-commit.ci/latest/github/afuetterer/oaipmh-scythe/main +[pre-commit-ci-badge]: https://results.pre-commit.ci/badge/github/afuetterer/oaipmh-scythe/main.svg [docs-url]: https://afuetterer.github.io/oaipmh-scythe [docs-workflow]: https://github.com/afuetterer/oaipmh-scythe/actions/workflows/docs.yml [docs-badge]: https://github.com/afuetterer/oaipmh-scythe/actions/workflows/docs.yml/badge.svg @@ -64,8 +66,6 @@ oaipmh-scythe is distributed under the terms of the [BSD](https://spdx.org/licen [license-badge]: https://img.shields.io/badge/License-BSD_3--Clause-blue.svg [hatch]: https://github.com/pypa/hatch [hatch-badge]: https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg -[pre-commit]: https://pre-commit.com/ -[pre-commit-badge]: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white [ruff]: https://github.com/charliermarsh/ruff [ruff-badge]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json [mypy]: https://mypy-lang.org