Skip to content

Commit 5630b7d

Browse files
Merge pull request #2383 from VWS-Python/windows-support
Add Windows as a supported platform
2 parents e6bd7f6 + 28495fd commit 5630b7d

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.git_archival.txt export-subst
2+
* text=auto eol=lf

.github/workflows/lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ on:
1616
jobs:
1717
build:
1818

19-
runs-on: ubuntu-latest
20-
2119
strategy:
2220
matrix:
2321
python-version: ['3.12']
22+
platform: [ubuntu-latest, windows-latest]
23+
24+
runs-on: ${{ matrix.platform }}
25+
2426
steps:
2527
- uses: actions/checkout@v4
28+
2629
- name: Install uv
2730
uses: astral-sh/setup-uv@v3
2831

.pre-commit-config.yaml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ repos:
3535
- id: text-unicode-replacement-char
3636
- id: rst-backticks
3737

38+
- repo: https://github.com/AleksaC/hadolint-py
39+
rev: v2.12.1b3
40+
hooks:
41+
- id: hadolint
42+
3843
- repo: local
3944
hooks:
4045
- id: custom-linters
@@ -70,8 +75,9 @@ repos:
7075

7176
- id: shellcheck-docs
7277
name: shellcheck-docs
78+
# We exclude SC2215 as it is a false positive for an unknown reason on Windows.
7379
entry: uv run --extra=dev doccmd --language=shell --language=console --command="shellcheck
74-
--shell=bash --exclude=SC1017"
80+
--shell=bash --exclude=SC1017 --exclude=SC2215"
7581
language: python
7682
types_or: [markdown, rst]
7783
additional_dependencies: [uv]
@@ -186,17 +192,6 @@ repos:
186192
stages: [manual]
187193
types_or: [markdown, rst, python, toml]
188194

189-
- id: hadolint-docker
190-
name: Lint Dockerfiles
191-
description: Runs hadolint Docker image to lint Dockerfiles
192-
language: docker_image
193-
types_or: [dockerfile]
194-
stages: [manual] # Requires Docker to be running
195-
# We choose not to use a Python wrapper or alternative to hadolint as none
196-
# appear to be well maintained, and they require more setup than we would
197-
# want.
198-
entry: ghcr.io/hadolint/hadolint hadolint
199-
200195
- id: ruff-check-fix
201196
name: Ruff check fix
202197
entry: uv run --extra=dev -m ruff check --fix

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ classifiers = [
2828
"Environment :: Web Environment",
2929
"Framework :: Pytest",
3030
"License :: OSI Approved :: MIT License",
31+
"Operating System :: Microsoft :: Windows",
3132
"Operating System :: POSIX",
3233
"Programming Language :: Python :: 3 :: Only",
3334
"Programming Language :: Python :: 3.12",

0 commit comments

Comments
 (0)