Skip to content
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
14 changes: 0 additions & 14 deletions .github/workflows/pre-commit.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Style

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

on:
pull_request:

workflow_dispatch:

push:
branches:
- master

jobs:
prek:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: prek
uses: glotzerlab/workflows/prek@1fe577d5430222a9793694a14cdb316cf8f720e1 # 0.9.0

# This job is used to provide a single requirement for branch merge conditions.
tests_complete:
name: All style checks
if: always()
needs: [prek]
runs-on: ubuntu-24.04

steps:
- run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
- name: Done
run: exit 0
9 changes: 3 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
ci:
autoupdate_schedule: quarterly

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v5.0.0'
rev: 'v6.0.0'
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand All @@ -21,10 +18,10 @@ repos:
- --py36-plus
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.12.2
rev: v0.13.0
hooks:
# Run the linter.
- id: ruff
- id: ruff-check
types_or: [ python, pyi, jupyter ]
args: [ --fix ]
# Run the formatter.
Expand Down
2 changes: 1 addition & 1 deletion cmaps/cubeellipse/cubeellipse.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import matplotlib.pyplot as plt
import numpy.linalg as la

import numpy as np
import numpy.linalg as la

"""
This helper script generates a cyclic colormap based on D.A. Green's
Expand Down
6 changes: 6 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>glotzerlab/renovate-config"
]
}