Skip to content

Commit e858136

Browse files
authored
Merge branch 'main' into dev/remove-codecov
2 parents d61a45d + 3f36d49 commit e858136

File tree

13 files changed

+167
-79
lines changed

13 files changed

+167
-79
lines changed

.editorconfig

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# https://editorconfig.org/
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
end_of_line = lf
11+
charset = utf-8
12+
13+
[*.py]
14+
max_line_length = 99
15+
16+
[*.yml]
17+
indent_size = 2
18+
19+
[*.ini]
20+
indent_size = 2
21+
22+
[*.json]
23+
indent_size = 2
24+
insert_final_newline = unset
25+
26+
[*.rst]
27+
indent_size = unset
28+
insert_final_newline = unset
29+
30+
[*.bat]
31+
indent_style = tab
32+
33+
[LICENSE]
34+
indent_size = unset
35+
36+
[docs/Makefile]
37+
indent_style = tab

.editorconfig-checker.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"Exclude": [
3+
"pytest_django/fixtures.py",
4+
".tox/*",
5+
".ruff_cache/*",
6+
"pytest_django.egg-info/*",
7+
"__pycache__/*",
8+
"zizmor.sarif"
9+
],
10+
"Disable": {
11+
"MaxLineLength": true
12+
}
13+
}

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
persist-credentials: false
2020

2121
- name: Build and Check Package
22-
uses: hynek/build-and-inspect-python-package@b5076c307dc91924a82ad150cdd1533b444d3310 # v2.12.0
22+
uses: hynek/build-and-inspect-python-package@c52c3a4710070b50470d903818a7b25115dcd076 # v2.13.0
2323

2424
deploy:
2525
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pytest-django'

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ jobs:
5252
5353
- name: Install dependencies
5454
run: |
55-
python -m pip install --upgrade pip
56-
pip install tox==4.26.0
55+
python -m pip install uv
56+
uv tool install tox==4.28.4 --with tox-uv
5757
5858
- name: Run tox
5959
run: tox
@@ -243,6 +243,6 @@ jobs:
243243

244244
steps:
245245
- name: Decide whether the needed jobs succeeded or failed
246-
uses: re-actors/alls-green@223e4bb7a751b91f43eda76992bcfbf23b8b0302
246+
uses: re-actors/alls-green@2765efec08f0fd63e83ad900f5fd75646be69ff6
247247
with:
248248
jobs: ${{ toJSON(needs) }}

.readthedocs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ build:
99
python: "3"
1010

1111
python:
12-
install:
13-
- method: pip
14-
path: .
15-
extra_requirements:
16-
- docs
12+
install:
13+
- method: pip
14+
path: .
15+
extra_requirements:
16+
- docs
1717

1818
formats:
1919
- epub

docs/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ How can I use ``manage.py test`` with pytest-django?
7979
----------------------------------------------------
8080

8181
pytest-django is designed to work with the ``pytest`` command, but if you
82-
really need integration with ``manage.py test``, you can add this class path
82+
really need integration with ``manage.py test``, you can add this class path
8383
in your Django settings:
8484

8585
.. code-block:: python

docs/managing_python_path.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ You can explicitly add paths to the Python search path using pytest's
8787
Example: project with src layout
8888
````````````````````````````````
8989

90-
For a Django package using the ``src`` layout, with test settings located in a
90+
For a Django package using the ``src`` layout, with test settings located in a
9191
``tests`` package at the top level::
9292

9393
myproj

docs/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ You can switch it on in `pytest.ini`::
3333

3434
[pytest]
3535
FAIL_INVALID_TEMPLATE_VARS = True
36-
36+
3737
Additional pytest.ini settings
3838
------------------------------
3939

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
3-
"setuptools>=61.0.0",
4-
"setuptools-scm[toml]>=5.0.0",
3+
"setuptools>=61.0.0",
4+
"setuptools-scm[toml]>=5.0.0",
55
]
66
build-backend = "setuptools.build_meta"
77

@@ -40,7 +40,8 @@ classifiers = [
4040
dependencies = [
4141
"pytest>=7.0.0",
4242
]
43-
[dependency-groups]
43+
44+
[project.optional-dependencies]
4445
docs = [
4546
"sphinx",
4647
"sphinx_rtd_theme",
@@ -63,10 +64,12 @@ xdist = [
6364
"pytest-xdist",
6465
]
6566
linting = [
67+
"editorconfig-checker==3.2.1",
6668
"mypy==1.15.0",
6769
"ruff==0.9.5",
6870
"zizmor==1.9.0",
6971
]
72+
7073
[project.urls]
7174
Documentation = "https://pytest-django.readthedocs.io/"
7275
Repository = "https://github.com/pytest-dev/pytest-django"

tests/test_django_configurations.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def test_dc_env_overrides_ini(pytester: pytest.Pytester, monkeypatch: pytest.Mon
5858

5959
pytester.makeini(
6060
"""
61-
[pytest]
62-
DJANGO_SETTINGS_MODULE = DO_NOT_USE_ini
63-
DJANGO_CONFIGURATION = DO_NOT_USE_ini
61+
[pytest]
62+
DJANGO_SETTINGS_MODULE = DO_NOT_USE_ini
63+
DJANGO_CONFIGURATION = DO_NOT_USE_ini
6464
"""
6565
)
6666
pkg = pytester.mkpydir("tpkg")
@@ -91,9 +91,9 @@ def test_dc_ini(pytester: pytest.Pytester, monkeypatch: pytest.MonkeyPatch) -> N
9191

9292
pytester.makeini(
9393
"""
94-
[pytest]
95-
DJANGO_SETTINGS_MODULE = tpkg.settings_ini
96-
DJANGO_CONFIGURATION = MySettings
94+
[pytest]
95+
DJANGO_SETTINGS_MODULE = tpkg.settings_ini
96+
DJANGO_CONFIGURATION = MySettings
9797
"""
9898
)
9999
pkg = pytester.mkpydir("tpkg")
@@ -125,9 +125,9 @@ def test_dc_option(pytester: pytest.Pytester, monkeypatch: pytest.MonkeyPatch) -
125125

126126
pytester.makeini(
127127
"""
128-
[pytest]
129-
DJANGO_SETTINGS_MODULE = DO_NOT_USE_ini
130-
DJANGO_CONFIGURATION = DO_NOT_USE_ini
128+
[pytest]
129+
DJANGO_SETTINGS_MODULE = DO_NOT_USE_ini
130+
DJANGO_CONFIGURATION = DO_NOT_USE_ini
131131
"""
132132
)
133133
pkg = pytester.mkpydir("tpkg")

0 commit comments

Comments
 (0)