Skip to content

Commit 08593b3

Browse files
committed
Fill our contributor docs
1 parent 1e4b6a5 commit 08593b3

4 files changed

Lines changed: 62 additions & 10 deletions

File tree

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

doc/source/contributor.rst

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,57 @@
22
Contributor 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.

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ dependency_groups =
3131
commands =
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]
3542
runner = uv-venv-lock-runner
3643
dependency_groups =

0 commit comments

Comments
 (0)