Skip to content

Commit a30f664

Browse files
authored
Merge branch 'main' into dependabot/pip/pydantic-gte-2.9.2-and-lt-2.11.0
2 parents 3de690d + e953dd2 commit a30f664

File tree

122 files changed

+5991
-4622
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+5991
-4622
lines changed

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ff87bcaf1741e8ecf15cb8d401438592dfef3ba7 # Mass reformat with adoption of ruff

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ updates:
1212
schedule:
1313
interval: "daily"
1414
open-pull-requests-limit: 6
15+
- package-ecosystem: "github-actions"
16+
directory: "/"
17+
schedule:
18+
# Check for updates to GitHub Actions every week
19+
interval: "weekly"

.github/workflows/ruff.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: lint & format
2+
on:
3+
pull_request:
4+
types: [opened, reopened, synchronize]
5+
6+
jobs:
7+
lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Install Python
12+
uses: actions/setup-python@v5
13+
with:
14+
python-version: "3.11"
15+
- name: Install ruff
16+
run: |
17+
python -m pip install --upgrade pip
18+
pip install ruff
19+
- name: Run lint
20+
run: ruff check --output-format=github contentctl/
21+
- name: Run Formatter
22+
run: ruff format --check contentctl/

.github/workflows/testEndToEnd.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: testEndToEnd
22
on:
3-
push:
43
pull_request:
5-
types: [opened, reopened]
4+
types: [opened, reopened, synchronize]
65
schedule:
76
- cron: "44 4 * * *"
87

@@ -11,8 +10,8 @@ jobs:
1110
strategy:
1211
fail-fast: false
1312
matrix:
14-
python_version: ["3.11", "3.12"]
15-
operating_system: ["ubuntu-20.04", "ubuntu-22.04", "macos-latest", "macos-14", "windows-2022"]
13+
python_version: ["3.11", "3.12", "3.13"]
14+
operating_system: ["ubuntu-24.04", "macos-15", "windows-2022"]
1615
#operating_system: ["ubuntu-20.04", "ubuntu-22.04", "macos-latest"]
1716

1817

.github/workflows/test_against_escu.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
# note yet been fixed in security_content, we may see this workflow fail.
77
name: test_against_escu
88
on:
9-
push:
109
pull_request:
11-
types: [opened, reopened]
10+
types: [opened, reopened, synchronize]
1211
schedule:
1312
- cron: "44 4 * * *"
1413

@@ -17,9 +16,9 @@ jobs:
1716
strategy:
1817
fail-fast: false
1918
matrix:
20-
python_version: ["3.11", "3.12"]
19+
python_version: ["3.11", "3.12", "3.13"]
2120

22-
operating_system: ["ubuntu-20.04", "ubuntu-22.04", "macos-latest", "macos-14"]
21+
operating_system: ["ubuntu-24.04", "macos-15"]
2322
# Do not test against ESCU until known character encoding issue is resolved
2423
# operating_system: ["ubuntu-20.04", "ubuntu-22.04", "macos-latest", "macos-14", "windows-2022"]
2524

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ poetry.lock
33
# usual mac files
44
.DS_Store
55
*/.DS_Store
6+
.ruff_cache
67

78
# custom
89
dist/*

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0 # Use the ref you want to point at
4+
hooks:
5+
- id: check-json
6+
- id: check-symlinks
7+
- id: check-yaml
8+
- id: detect-private-key
9+
- id: forbid-submodules
10+
- repo: https://github.com/astral-sh/ruff-pre-commit
11+
rev: v0.9.2
12+
hooks:
13+
- id: ruff
14+
args: [ --fix ]
15+
- id: ruff-format

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"charliermarsh.ruff"
4+
]
5+
}

.vscode/settings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44
"python.testing.cwd": "${workspaceFolder}",
55
"python.languageServer": "Pylance",
66
"python.analysis.typeCheckingMode": "strict",
7-
"editor.defaultFormatter": "ms-python.black-formatter"
7+
"[python]": {
8+
"editor.formatOnSave": true,
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll": "explicit",
11+
"source.organizeImports": "explicit"
12+
},
13+
"editor.defaultFormatter": "charliermarsh.ruff",
14+
},
15+
"ruff.nativeServer": "on"
816

917

1018
}

contentctl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1.0'
1+
__version__ = "0.1.0"

0 commit comments

Comments
 (0)