File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,9 +128,9 @@ Tests are executed through `tox <https://tox.readthedocs.io/en/latest/>`_.
128128 Code Style
129129~~~~~~~~~~
130130
131- Code is formatted using `black <https://github.com/python/black >`_.
131+ Code is formatted using `ruff <https://github.com/python/black >`_.
132132
133- You can check your formatting using black 's check mode:
133+ You can check your formatting using ruff 's check mode:
134134
135135.. code-block :: bash
136136
@@ -140,7 +140,7 @@ You can also get black to format your changes for you:
140140
141141.. code-block :: bash
142142
143- tox -e format -- src/ tests/
143+ . tox/ format/bin/ruff src/ tests
144144
145145
146146 Release Notes
Original file line number Diff line number Diff line change 22Contributor Guide
33*****************
44
5- .. todo ::
5+ Making a Change
6+ ===============
7+
8+ Tests are executed through `tox <https://tox.readthedocs.io/en/latest/ >`_.
9+
10+ .. code-block :: bash
11+
12+ tox
13+
14+
15+ Code is formatted using `ruff <https://github.com/python/black >`_.
16+
17+ .. code-block :: bash
18+
19+ tox -e autoformat
20+
21+
22+ When making a pull request you will need to create a news fragment to document your change.
23+ Release notes are managed through `towncrier <https://towncrier.readthedocs.io/en/stable/index.html >`_.
24+
25+ .. code-block :: bash
26+
27+ tox -e release_notes -- create --help
628
7- * Making a change
8- * Tests
9- * Formatting
10- * Release notes
1129
1230 Release Process
13- ===============
31+ ===============
32+
33+ This page documents the steps to be taken to release a new version of Sphinx AutoAPI.
34+
35+ Pre-Checks
36+ ----------
37+
38+ 1. Check that the dependencies of the package are correct.
39+ 2. Clean the ``.tox `` directory and run the tests.
40+ 3. Commit and push any changes needed to make the tests pass.
41+ 4. Check that the tests passed on github.
42+
43+ Preparation
44+ -----------
45+
46+ 1. Update the version numbers in ``autoapi/__init__.py ``.
47+ 2. Run ``tox -e release_notes -- build ``
48+ 3. Commit and push the changes.
49+ 4. Check that the tests passed on github.
50+
51+ Release
52+ -------
53+
54+ 1. Create a new release in github that tags the commit
55+ and uses the built release notes as the description.
56+
57+ The tag created by the release will trigger the github actions to
58+ build and upload the package to PyPI.
Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ def pytest_collection_modifyitems(items):
1616 }
1717 for item in items :
1818 if item .nodeid in to_skip :
19- item .addmarker (pytest .mark .xfail )
19+ item .add_marker (pytest .mark .xfail )
Original file line number Diff line number Diff line change @@ -31,6 +31,13 @@ dependency_groups =
3131commands =
3232 ruff format --check --diff
3333
34+ [testenv:autoformat]
35+ runner = uv-venv-lock-runner
36+ dependency_groups =
37+ format
38+ commands =
39+ ruff format
40+
3441[testenv:lint]
3542runner = uv-venv-lock-runner
3643dependency_groups =
You can’t perform that action at this time.
0 commit comments