Skip to content

Commit 4f45869

Browse files
authored
Ruff: Address migrations, reduce redundancy, and remove Flake8 (#10494)
1 parent d5556d3 commit 4f45869

4 files changed

Lines changed: 2 additions & 57 deletions

File tree

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
"dependencyDashboardApproval": false,
77
"baseBranches": ["dev"],
88
"rebaseWhen": "conflicted",
9+
"ignorePaths": ["requirements.txt", "requirements-lint.txt", "components/package.json", "components/package-lock.json", "dojo/components/yarn.lock", "dojo/components/package.json", "Dockerfile**"],
910
"ignoreDeps": [
1011
"mysql",
1112
"rabbitmq"
1213
],
13-
"ignorePaths": ["requirements.txt", "components/package.json", "components/package-lock.json", "dojo/components/yarn.lock", "dojo/components/package.json", "Dockerfile**"],
1414
"packageRules": [{
1515
"packagePatterns": ["*"],
1616
"commitMessageExtra": "from {{currentVersion}} to {{#if isMajor}}v{{{newMajor}}}{{else}}{{#if isSingleVersion}}v{{{toVersion}}}{{else}}{{{newValue}}}{{/if}}{{/if}}",

.github/workflows/flake8.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/ruff.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,13 @@ name: Ruff Linter
22

33
on:
44
workflow_dispatch:
5-
pull_request_target:
65
push:
7-
6+
pull_request:
87
jobs:
98
ruff-linting:
109
runs-on: ubuntu-latest
1110
steps:
1211
- name: Checkout
13-
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
14-
uses: actions/checkout@v4
15-
# by default the pull_requst_target event checks out the base branch, i.e. dev
16-
# so we need to explicitly checkout the head of the PR
17-
# we use fetch-depth 0 to make sure the full history is checked out and we can compare against
18-
# the base commit (branch) of the PR
19-
# more info https://github.community/t/github-actions-are-severely-limited-on-prs/18179/16
20-
# we checkout merge_commit here as this contains all new code from dev also. we don't need to compare against base_commit
21-
with:
22-
persist-credentials: false
23-
fetch-depth: 0
24-
ref: refs/pull/${{ github.event.pull_request.number }}/merge
25-
# repository: ${{github.event.pull_request.head.repo.full_name}}
26-
27-
- name: Checkout
28-
# for non PR runs we just checkout the default, which is a sha on a branch probably
29-
if: github.event_name != 'pull_request' && github.event_name != 'pull_request_target'
3012
uses: actions/checkout@v4
3113

3214
- name: Install Ruff Linter

ruff.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ select = [
3939
"UP",
4040
"YTT",
4141
"ASYNC",
42-
"TRIO",
4342
"S2", "S5", "S7",
4443
"C4",
4544
"T10",

0 commit comments

Comments
 (0)