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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.git_archival.txt export-subst
* text=auto eol=lf
7 changes: 5 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ on:
jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: ['3.12']
platform: [ubuntu-latest, windows-latest]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3

Expand Down
19 changes: 7 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ repos:
- id: text-unicode-replacement-char
- id: rst-backticks

- repo: https://github.com/AleksaC/hadolint-py
rev: v2.12.1b3
hooks:
- id: hadolint

- repo: local
hooks:
- id: custom-linters
Expand Down Expand Up @@ -70,8 +75,9 @@ repos:

- id: shellcheck-docs
name: shellcheck-docs
# We exclude SC2215 as it is a false positive for an unknown reason on Windows.
entry: uv run --extra=dev doccmd --language=shell --language=console --command="shellcheck
--shell=bash --exclude=SC1017"
--shell=bash --exclude=SC1017 --exclude=SC2215"
language: python
types_or: [markdown, rst]
additional_dependencies: [uv]
Expand Down Expand Up @@ -186,17 +192,6 @@ repos:
stages: [manual]
types_or: [markdown, rst, python, toml]

- id: hadolint-docker
name: Lint Dockerfiles
description: Runs hadolint Docker image to lint Dockerfiles
language: docker_image
types_or: [dockerfile]
stages: [manual] # Requires Docker to be running
# We choose not to use a Python wrapper or alternative to hadolint as none
# appear to be well maintained, and they require more setup than we would
# want.
entry: ghcr.io/hadolint/hadolint hadolint

- id: ruff-check-fix
name: Ruff check fix
entry: uv run --extra=dev -m ruff check --fix
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [
"Environment :: Web Environment",
"Framework :: Pytest",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
Expand Down