Skip to content

Commit 4f39885

Browse files
authored
Use consistent indentation in pyproject.toml (#2847)
`pyproject.toml` had mixed 2-space and 4-space indentation. It appears that 2-space is more common among Python projects. Updated `.editorconfig` to make maintaining it easier.
1 parent 6abc1f7 commit 4f39885

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ trim_trailing_whitespace = true
1111

1212
[*.{py, pyi}]
1313
indent_size = 4
14+
15+
[*.toml]
16+
indent_size = 2

.github/workflows/mypy_primer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
shell: bash
3434
run: |
3535
cd django-stubs_to_test
36-
MYPY_VERSION=$(grep mypy== pyproject.toml | sed -n 's/ "mypy==\([^;]*\).*",/\1/p')
36+
MYPY_VERSION=$(grep mypy== pyproject.toml | sed -n 's/ "mypy==\([^;]*\).*",/\1/p')
3737
3838
echo "new commit"
3939
git checkout $GITHUB_SHA

pyproject.toml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,28 @@ redis = ["redis", "types-redis"]
4747

4848
[dependency-groups]
4949
tests = [
50-
# Dev tools:
51-
"pytest==8.4.2",
52-
"pytest-mypy-plugins==3.2.0",
53-
"pytest-shard==0.1.2",
54-
"pytest-xdist==3.8.0",
55-
# Django deps:
56-
"django==5.2.6",
57-
"mysqlclient==2.2.7",
58-
"psycopg2-binary==2.9.10",
59-
"jinja2==3.1.6",
60-
"pyyaml==6.0.2",
61-
# typing:
62-
"mypy==1.18.1",
63-
"django-stubs[compatible-mypy,oracle,redis]",
50+
# Dev tools:
51+
"pytest==8.4.2",
52+
"pytest-mypy-plugins==3.2.0",
53+
"pytest-shard==0.1.2",
54+
"pytest-xdist==3.8.0",
55+
# Django deps:
56+
"django==5.2.6",
57+
"mysqlclient==2.2.7",
58+
"psycopg2-binary==2.9.10",
59+
"jinja2==3.1.6",
60+
"pyyaml==6.0.2",
61+
# typing:
62+
"mypy==1.18.1",
63+
"django-stubs[compatible-mypy,oracle,redis]",
6464
]
6565
pyright = [
66-
"pyright==1.1.405",
66+
"pyright==1.1.405",
6767
]
6868

6969
dev = [
70-
{include-group = "tests"},
71-
{include-group = "pyright"},
70+
{include-group = "tests"},
71+
{include-group = "pyright"},
7272
]
7373

7474
[project.urls]

0 commit comments

Comments
 (0)