Skip to content

Commit 8c03fbf

Browse files
authored
chore: apply pre-commit hooks across all files (#9)
1 parent 5a76826 commit 8c03fbf

Some content is hidden

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

60 files changed

+1035
-1039
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @SAP/cloud-sdk-python-team
1+
* @SAP/cloud-sdk-python-team

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ body:
4040
- Python version via `python --version`: ...
4141
- SAP Cloud SDK for Python version: ...
4242
- Framework version (if applicable, e.g., Flask, FastAPI): ...
43-
43+
4444
<details><summary>Installed packages via <code>pip list</code> or <code>uv pip list</code></summary>
45-
45+
4646
```
4747
Package list here
4848
```
@@ -104,4 +104,4 @@ body:
104104
label: "Timeline"
105105
description: "Please briefly state your timeline, e.g., Go-Live in 12 weeks."
106106
validations:
107-
required: false
107+
required: false

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ body:
5050
label: "Timeline"
5151
description: "Please briefly state your timeline, e.g., Go-Live in 12 weeks."
5252
validations:
53-
required: false
53+
required: false

.github/ISSUE_TEMPLATE/question.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ body:
88
label: "Ask the Question"
99
description: Give a clear and concise description.
1010
validations:
11-
required: true
11+
required: true

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ updates:
77
interval: "weekly"
88
day: "monday"
99
time: "09:00"
10-
10+
1111
# Commit message configuration
1212
commit-message:
1313
prefix: "chore"
@@ -19,7 +19,7 @@ updates:
1919
rebase-strategy: "auto"
2020
# Target branch for updates
2121
target-branch: "main"
22-
22+
2323
# Enable version updates for GitHub Actions
2424
- package-ecosystem: "github-actions"
2525
directory: "/"
@@ -32,4 +32,4 @@ updates:
3232
- "github-actions"
3333
commit-message:
3434
prefix: "chore"
35-
include: "scope"
35+
include: "scope"

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ If this PR introduces breaking changes, please describe:
5151

5252
## Additional Notes
5353

54-
Add any additional context, screenshots, or information that would help reviewers.
54+
Add any additional context, screenshots, or information that would help reviewers.

.github/workflows/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ The CI pipeline is split into three independent workflows for optimal performanc
1212
**Purpose**: Fast feedback on code style and type safety
1313
**Jobs**:
1414
- `lint` - Ruff linter checks
15-
- `format` - Ruff formatter checks
15+
- `format` - Ruff formatter checks
1616
- `typecheck` - ty type checker
1717

1818
**Parallelization**: All jobs run in parallel (~1-2 min total)
1919

20-
**Security**:
20+
**Security**:
2121
- Uses `pull_request` trigger (read-only by default)
2222
- ✅ SAFE: Only runs static analysis tools (no code execution)
2323
- ❌ NO secrets or write permissions
@@ -31,7 +31,7 @@ The CI pipeline is split into three independent workflows for optimal performanc
3131
**Jobs**:
3232
- `test` - Unit tests with coverage reporting
3333

34-
**Permissions**:
34+
**Permissions**:
3535
- `contents: read` - Read-only access
3636

3737
**Security**:
@@ -61,23 +61,23 @@ Fork PR opened
6161
└─────────────────────────────────────────┘
6262
↓ (1-2 min)
6363
✓ Quick feedback to contributor
64-
64+
6565
↓ (Runs in parallel)
66-
66+
6767
┌─────────────────────────────────────────┐
6868
│ test.yaml (auto-runs) │
6969
│ └─ test (with coverage) │
7070
└─────────────────────────────────────────┘
7171
↓ (3-5 min)
72-
72+
7373
↓ (Maintainer clicks "Approve and run")
74-
74+
7575
┌─────────────────────────────────────────┐
7676
│ build.yaml (requires approval) │
7777
│ └─ build (package creation) │
7878
└─────────────────────────────────────────┘
7979
↓ (1-2 min)
80-
80+
8181
✓ All checks passed, ready to merge
8282
```
8383

@@ -140,4 +140,4 @@ This means fork PR workflows are disabled in repository settings:
140140

141141
- [GitHub Actions: Events that trigger workflows](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows)
142142
- [Keeping your GitHub Actions secure](https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions)
143-
- [Using pull_request_target safely](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)
143+
- [Using pull_request_target safely](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

.github/workflows/build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ jobs:
5151
# Check that both wheel and source distribution were created
5252
wheel_count=$(ls -1 dist/*.whl 2>/dev/null | wc -l)
5353
tar_count=$(ls -1 dist/*.tar.gz 2>/dev/null | wc -l)
54-
54+
5555
if [ "$wheel_count" -eq 0 ]; then
5656
echo "ERROR: No wheel file found"
5757
exit 1
5858
fi
59-
59+
6060
if [ "$tar_count" -eq 0 ]; then
6161
echo "ERROR: No source distribution found"
6262
exit 1
6363
fi
64-
64+
6565
echo "✓ Build artifacts verified: $wheel_count wheel(s), $tar_count source distribution(s)"
6666
6767
- name: "Upload Build Artifacts"
@@ -70,4 +70,4 @@ jobs:
7070
with:
7171
name: ${{ env.SDK_DIST_NAME }}
7272
path: dist/
73-
retention-days: 7
73+
retention-days: 7

.github/workflows/codeql.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
include:
2626
- language: python
2727
build-mode: none
28-
28+
2929
steps:
3030
- name: Checkout repository
3131
uses: actions/checkout@v6
@@ -40,4 +40,4 @@ jobs:
4040
- name: Perform CodeQL Analysis
4141
uses: github/codeql-action/analyze@v4
4242
with:
43-
category: "/language:${{matrix.language}}"
43+
category: "/language:${{matrix.language}}"

.github/workflows/integration-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ jobs:
3939
- name: Set up integration test environment
4040
run: |
4141
echo "Setting up environment variables for integration tests..."
42-
42+
4343
# Process GitHub secrets (all configuration stored as secrets)
4444
echo '${{ toJSON(secrets) }}' | jq -r 'to_entries[] | select(.key | startswith("CLOUD_SDK_CFG_")) | "\(.key)=\(.value)"' | while read line; do
4545
echo "$line" >> $GITHUB_ENV
4646
var_name=$(echo "$line" | cut -d= -f1)
4747
echo "Set secret: $var_name"
4848
done
49-
49+
5050
# Process GitHub variables (all configuration stored as variables)
5151
echo '${{ toJSON(vars) }}' | jq -r 'to_entries[] | select(.key | startswith("CLOUD_SDK_CFG_")) | "\(.key)=\(.value)"' | while read line; do
5252
echo "$line" >> $GITHUB_ENV
5353
var_name=$(echo "$line" | cut -d= -f1)
5454
echo "Set variable: $var_name"
5555
done
56-
56+
5757
echo "Environment setup complete - automatically configured all CLOUD_SDK_CFG_* environment variables and secrets"
5858
5959
- name: Run integration tests

0 commit comments

Comments
 (0)