Skip to content

Commit 61c41c6

Browse files
Merge main into msl-auth
2 parents c86723a + f14a413 commit 61c41c6

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.flake8

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

.github/workflows/check-build-deploy.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444

4545
- name: Run Flake8
4646
# TODO: Run from locked dependencies, once project's Python version has been updated to 3.14
47-
run: uvx --python 3.14 --with flake8-carrot>=0.1.4 -- flake8
47+
run: uvx --python 3.14 --with flake8-carrot>=0.1.4 --with flake8-pyproject>=1.2 --
48+
flake8
4849

4950
mypy: # yamllint disable-line rule:key-ordering
5051
env:
@@ -154,9 +155,9 @@ jobs:
154155
- name: Save pre-commit Checks Which Require Skipping
155156
run: |
156157
if [[ "${{github.event_name}}" == "push" && "${{github.ref_name}}" == "${{github.event.repository.default_branch}}" ]]; then
157-
echo "SKIP=check-github-workflows,ruff-check,uv-lock,gitlint-ci" >> $GITHUB_ENV
158+
echo "SKIP=check-github-workflows,flake8,ruff-check,uv-lock,gitlint-ci" >> $GITHUB_ENV
158159
else
159-
echo "SKIP=check-github-workflows,ruff,uv-lock" >> $GITHUB_ENV
160+
echo "SKIP=check-github-workflows,flake8,ruff-check,uv-lock" >> $GITHUB_ENV
160161
fi
161162
162163
- name: Run pre-commit

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ sort = "cover"
4343
[tool.django-stubs]
4444
django_settings_module = "db._settings"
4545

46+
[tool.flake8]
47+
select = ["CAR", "TXB"]
48+
extend_exclude = ["**/migrations/", ".venv/"]
49+
require_plugins = ["flake8-carrot"]
50+
4651
[tool.mypy]
4752
check_untyped_defs = true
4853
disallow_any_decorated = true

0 commit comments

Comments
 (0)