Skip to content

Commit

Permalink
Merge pull request #1172 from rdmorganiser/pre-commit-ci-add-config
Browse files Browse the repository at this point in the history
pre-commit.ci add config to main
  • Loading branch information
MyPyDavid authored Oct 18, 2024
2 parents 1cdcf9e + efbd297 commit abfee20
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 72 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ on:
- conftest.py
- package.json
- pyproject.toml
types:
- opened
- synchronize
- reopened
- ready_for_review # this is needed to trigger checks, when an auto-generated "draft" PR is set for "ready for review".

# Ref: https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
Expand Down
62 changes: 0 additions & 62 deletions .github/workflows/pre-commit-autoupdate.yml

This file was deleted.

15 changes: 10 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
hooks:
- id: check-hooks-apply
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-ast
- id: check-json
Expand All @@ -22,21 +22,21 @@ repos:
exclude: \.dot$
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
rev: v0.6.9
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.56.0
rev: v9.12.0
hooks:
- id: eslint
args: [--fix, --color]
additional_dependencies:
- [email protected]
- eslint-plugin-react@7.34.0
- eslint-plugin-react@7.37.0
- [email protected]
- repo: https://github.com/crate-ci/typos
rev: v1.23.6
rev: v1.26.0
hooks:
- id: typos
exclude: |
Expand All @@ -49,3 +49,8 @@ repos:
testing/.*.json|
testing/.*.xml
)$
ci:
autoupdate_schedule: monthly
autofix_prs: false
autoupdate_branch: 'dependency-updates'
autoupdate_commit_msg: 'build(pre-commit): pre-commit autoupdate by ci'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RDMO - Research Data Management Organiser
[![Django Versions](https://img.shields.io/pypi/frameworkversions/django/rdmo)](https://pypi.python.org/pypi/rdmo/)
[![License](https://img.shields.io/github/license/rdmorganiser/rdmo?style=flat)](https://github.com/rdmorganiser/rdmo/blob/main/LICENSE) \
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/rdmorganiser/rdmo/main.svg)](https://results.pre-commit.ci/latest/github/rdmorganiser/rdmo/main)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![CI Workflow Status](https://github.com/rdmorganiser/rdmo/actions/workflows/ci.yml/badge.svg)](https://github.com/rdmorganiser/rdmo/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/rdmorganiser/rdmo/badge.svg?branch=main&service=github)](https://coveralls.io/github/rdmorganiser/rdmo?branch=main)
Expand Down

0 comments on commit abfee20

Please sign in to comment.