Skip to content

Commit 5854170

Browse files
Merge branch 'main' into dependabot/pip/samples/web-app-managed-identity/python/src/flask-3.1.3
2 parents 0c66f18 + 1b00332 commit 5854170

7 files changed

Lines changed: 54 additions & 7 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Pre-commit Checks
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
pre-commit:
13+
name: Run pre-commit hooks
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repo
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
with:
20+
persist-credentials: false
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
24+
with:
25+
python-version: '3.12'
26+
cache: 'pip'
27+
28+
- name: Install pre-commit
29+
run: pip install pre-commit
30+
31+
- name: Run pre-commit
32+
run: pre-commit run --all-files --show-diff-on-failure

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ celerybeat.pid
179179
*.sage.py
180180

181181
# Environments
182+
# Local environment files may contain credentials
182183
.env
184+
.env.*
185+
!.env.example
183186
.venv
184187
env/
185188
venv/

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
repos:
2+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
3+
rev: v1.25.2
4+
hooks:
5+
- id: zizmor
6+
exclude: ^\.github/workflows/run-samples\.yml$
7+
8+
- repo: https://github.com/gitleaks/gitleaks
9+
rev: v8.30.1
10+
hooks:
11+
- id: gitleaks

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
-r requirements-runtime.txt
2+
pre-commit
23
pytest
34
pytest-xdist
45
pytest-timeout
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Flask==3.1.0
1+
Flask==3.1.3
22
azure-mgmt-cosmosdb==9.8.0
33
azure-cosmos==4.7.0
4-
gunicorn==20.1.0
5-
python-dotenv==1.1.1
4+
gunicorn==22.0.0
5+
python-dotenv==1.2.2
66
setuptools==79.0.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Flask==3.1.0
1+
Flask==3.1.3
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Flask==3.1.3
2-
azure-identity==1.12.0
2+
azure-identity==1.16.1
33
azure-storage-blob==12.26.0
4-
azure-core==1.35.0
4+
azure-core==1.38.0
55
gunicorn==23.0.0
6-
python-dotenv==1.1.1
6+
python-dotenv==1.2.2

0 commit comments

Comments
 (0)