Skip to content

Commit 90c2d9a

Browse files
Merge remote-tracking branch 'upstream/main'
2 parents ae331d4 + 6c983f5 commit 90c2d9a

27 files changed

+1098
-757
lines changed

.flake8

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
[flake8]
22
max-line-length = 120
3-
exclude = .venv, _pycache_, migrations, build, dist
4-
ignore =
5-
F401
6-
F841
7-
W293
8-
E501
9-
E722
10-
W503
11-
F811
12-
E266
13-
F541
3+
exclude = .venv, _pycache_, migrations
4+
ignore = E501,F401,F811,F841,E203,E231,W503

.github/CODEOWNERS

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
# Each line is a file pattern followed by one or more owners.
33

44
# These owners will be the default owners for everything in the repo.
5-
* @Avijit-Microsoft @Roopan-Microsoft @Prajwal-Microsoft
6-
5+
* @toherman-msft @hunterjam @Avijit-Microsoft @Roopan-Microsoft @Prajwal-Microsoft

.github/dependabot.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,20 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "pip" # See documentation for possible values
9-
directory: "/" # Location of package manifests
8+
- package-ecosystem: "npm" # for frontend dependencies
9+
directory: "/frontend"
1010
schedule:
11-
interval: "weekly"
11+
interval: "monthly"
12+
commit-message:
13+
prefix: "build"
14+
target-branch: "dependabotchanges"
15+
open-pull-requests-limit: 10
16+
17+
- package-ecosystem: "pip" # for backend dependencies
18+
directory: "/"
19+
schedule:
20+
interval: "monthly"
21+
commit-message:
22+
prefix: "build"
23+
target-branch: "dependabotchanges"
24+
open-pull-requests-limit: 10

.github/pull_request_template.md

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,40 @@
1-
### Motivation and Context
2-
3-
<!-- Thank you for your contribution to this repo!
4-
Please help reviewers and future users, providing the following information:
5-
1. Why is this change required?
6-
2. What problem does it solve?
7-
3. What scenario does it contribute to?
8-
4. If it fixes an open issue, please link to the issue here.
9-
5. Does this solve an issue or add a feature that *all* users of this sample app can benefit from? Contributions will only be accepted that apply across all users of this app.
10-
-->
1+
## Purpose
2+
<!-- Describe the intention of the changes being proposed. What problem does it solve or functionality does it add? -->
3+
* ...
114

12-
### Description
5+
## Does this introduce a breaking change?
6+
<!-- Mark one with an "x". -->
137

14-
<!-- Describe your changes, the overall approach, the underlying design.
15-
These notes will help understanding how your code works. Thanks! -->
8+
- [ ] Yes
9+
- [ ] No
1610

11+
<!-- Please prefix your PR title with one of the following:
12+
* `feat`: A new feature
13+
* `fix`: A bug fix
14+
* `docs`: Documentation only changes
15+
* `style`: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
16+
* `refactor`: A code change that neither fixes a bug nor adds a feature
17+
* `perf`: A code change that improves performance
18+
* `test`: Adding missing tests or correcting existing tests
19+
* `build`: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
20+
* `ci`: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
21+
* `chore`: Other changes that don't modify src or test files
22+
* `revert`: Reverts a previous commit
23+
* !: A breaking change is indicated with a `!` after the listed prefixes above, e.g. `feat!`, `fix!`, `refactor!`, etc.
24+
-->
1725

18-
### Contribution Checklist
26+
## Golden Path Validation
27+
- [ ] I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.
1928

20-
<!-- Before submitting this PR, please make sure: -->
29+
## Deployment Validation
30+
- [ ] I have validated the deployment process successfully and all services are running as expected with this change.
2131

32+
## What to Check
33+
Verify that the following are valid
2234
- [ ] I have built and tested the code locally and in a deployed app
2335
- [ ] For frontend changes, I have pulled the latest code from main, built the frontend, and committed all static files.
2436
- [ ] This is a change for all users of this app. No code or asset is specific to my use case or my organization.
25-
- [ ] I didn't break any existing functionality :smile:
37+
38+
39+
## Other Information
40+
<!-- Add any other helpful information that may be needed here.. -->
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "pr-title-checker"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
merge_group:
10+
11+
permissions:
12+
pull-requests: read
13+
14+
jobs:
15+
main:
16+
name: Validate PR title
17+
runs-on: ubuntu-latest
18+
if: ${{ github.event_name != 'merge_group' }}
19+
steps:
20+
- uses: amannn/action-semantic-pull-request@v5
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pylint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ jobs:
3030
echo "Formatting code with Black..."
3131
python -m black --verbose .
3232
echo "Running Flake8..."
33-
python -m flake8 --config=.flake8 --verbose . || true
33+
python -m flake8 --config=.flake8 --verbose .
3434
echo "Running Pylint..."
35-
python -m pylint --rcfile=.pylintrc --verbose . || true
35+
python -m pylint --rcfile=.pylintrc --verbose .

.github/workflows/stale-bot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
permissions:
7+
contents: write
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
stale:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@v9
16+
with:
17+
stale-issue-message: 'This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
18+
days-before-stale: 180
19+
days-before-close: 30
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Sync Main to dependabotchanges
2+
3+
on:
4+
# Schedule the sync job to run daily or customize as needed
5+
schedule:
6+
- cron: '0 1 * * *' # Runs every day at 1 AM UTC
7+
# Trigger the sync job on pushes to the main branch
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
sync:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0 # Fetch all history for accurate branch comparison
21+
22+
- name: Configure Git
23+
run: |
24+
git config user.name "github-actions[bot]"
25+
git config user.email "github-actions[bot]@users.noreply.github.com"
26+
27+
- name: Sync main to dependabotchanges
28+
run: |
29+
# Ensure we're on the main branch
30+
git checkout main
31+
# Fetch the latest changes
32+
git pull origin main
33+
34+
# Switch to dependabotchanges branch
35+
git checkout dependabotchanges
36+
# Merge main branch changes
37+
git merge main --no-edit
38+
39+
# Push changes back to dependabotchanges1 branch
40+
git push origin dependabotchanges
41+
42+
- name: Notify on Failure
43+
if: failure()
44+
run: echo "Sync from main to dependabotchanges failed!"

.pylintrc

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,24 @@
11
[MASTER]
2-
ignore=__init__.py,__pycache__
3-
2+
ignore=__pycache__, migrations, .venv
43

54
[MESSAGES CONTROL]
6-
# Retain your disabled warnings and errors
7-
disable=
8-
missing-docstring, # Missing docstrings
9-
invalid-name, # Variable names not in snake_case
10-
too-many-arguments, # Exceeding argument limits
11-
too-many-locals, # Exceeding local variable limits
12-
too-many-branches, # Complex functions
13-
too-many-lines, # Exceeding file line limit
14-
import-error, # Ignored unresolved imports
15-
no-name-in-module, # Missing module names
16-
broad-exception-raised, # Avoid broad exceptions
17-
redefined-outer-name, # Outer variable shadowing
18-
no-else-return, # Remove unnecessary else
19-
unused-import, # Unused imports
5+
6+
disable=parse-error,missing-docstring,too-many-arguments,line-too-long
207

218
[FORMAT]
22-
# Set the maximum line length
9+
2310
max-line-length=120
2411

2512
[DESIGN]
26-
# Adjust thresholds for warnings
13+
2714
max-args=10
28-
max-locals=30
29-
max-branches=20
30-
max-statements=100
15+
max-locals=25
16+
max-branches=15
17+
max-statements=75
18+
19+
[REPORTS]
20+
output-format=colorized
21+
reports=no
3122

32-
[LOGGING]
33-
# Disable logging format errors
34-
logging-format-style=old
23+
[EXCEPTIONS]
24+
overgeneral-exceptions=builtins.Exception,builtins.BaseException

0 commit comments

Comments
 (0)