Skip to content

Commit f0d105b

Browse files
authored
Merge pull request #149 from LilSpazJoekp/codebase-cleanup
Codebase cleanup
2 parents 300e42f + 9022eb2 commit f0d105b

23 files changed

+2088
-851
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ jobs:
2222
with:
2323
enable-cache: true
2424
- name: Install dependencies
25-
run: uv sync --group lint
25+
run: uv sync --python-preference only-managed --group lint
2626
- name: Lint with pre-commit
2727
run: uv run pre-commit run --all-files
2828
- name: Run docstrfmt
29-
run: uv run docstrfmt .
29+
run: uv run docstrfmt
30+
- name: Run pyright
31+
run: uv run pyright -p pyproject.toml
3032
strategy:
3133
matrix:
3234
os: [ macOS-latest, ubuntu-latest, windows-latest ]
@@ -65,11 +67,10 @@ jobs:
6567
uses: astral-sh/setup-uv@v7
6668
with:
6769
enable-cache: true
68-
python-version: ${{ matrix.python-version }}
6970
- name: Install dependencies
70-
run: uv sync --group test --group ci
71+
run: uv sync --python-preference only-managed --group test --group ci
7172
- name: Test with pytest
72-
run: uv run coverage run --source docstrfmt --module pytest
73+
run: uv run coverage run --source docstrfmt -m pytest
7374
- env:
7475
COVERALLS_PARALLEL: true
7576
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}

AUTHORS.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
Maintainers
2-
===========
1+
#############
2+
Maintainers
3+
#############
34

45
- Joel Payne <lilspazjoekp@gmail.com> `@LilSpazJoekp <https://github.com/LilSpazJoekp>`_
56

6-
rstfmt Author
7-
=============
7+
###############
8+
rstfmt Author
9+
###############
810

911
- Danny Zhu <dzhu@dzhu.us> `@dzhu <https://github.com/dzhu>`_

CHANGES.rst

Lines changed: 89 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
Change Log
2-
==========
1+
############
2+
Change Log
3+
############
34

4-
Unreleased
5-
----------
5+
************
6+
Unreleased
7+
************
68

79
**Added**
810

@@ -22,11 +24,8 @@ Unreleased
2224

2325
**Fixed**
2426

25-
- Fixed line length resolution order. The order is now:
26-
1. Command line argument
27-
2. ``pyproject.toml`` setting
28-
3. Black config setting
29-
4. Default of 88
27+
- Fixed line length resolution order. The order is now: 1. Command line argument 2.
28+
``pyproject.toml`` setting 3. Black config setting 4. Default of 88
3029
- Image and Unicode substitution definitions were not being formatted correctly.
3130
- Files specified in pyproject are now parsed correctly.
3231
- Fixed issue when loading cache in certain environments.
@@ -35,16 +34,18 @@ Unreleased
3534

3635
- Removed support for Python 3.9.
3736

38-
1.11.1 (2025/08/26)
39-
-------------------
37+
*********************
38+
1.11.1 (2025/08/26)
39+
*********************
4040

4141
**Fixed**
4242

4343
- Fixed an issue where footnotes were getting malformed when using auto-numbering.
4444
- Switch to package ``roman`` for roman numeral parsing.
4545

46-
1.11.0 (2025/08/15)
47-
-------------------
46+
*********************
47+
1.11.0 (2025/08/15)
48+
*********************
4849

4950
**Added**
5051

@@ -70,8 +71,9 @@ Unreleased
7071

7172
- Removed support for Python 3.8.
7273

73-
1.10.0 (2025/02/25)
74-
-------------------
74+
*********************
75+
1.10.0 (2025/02/25)
76+
*********************
7577

7678
**Added**
7779

@@ -87,8 +89,9 @@ Unreleased
8789
reported at once.
8890
- Fixed compatibility issue with Sphinx.
8991

90-
1.9.0 (2024/08/26)
91-
------------------
92+
********************
93+
1.9.0 (2024/08/26)
94+
********************
9295

9396
**Added**
9497

@@ -104,8 +107,9 @@ Unreleased
104107
- Fix handling of ``.. code::`` blocks. They should now be correctly formatted to ``..
105108
code-block::``.
106109

107-
1.8.0 (2024/07/28)
108-
------------------
110+
********************
111+
1.8.0 (2024/07/28)
112+
********************
109113

110114
**Added**
111115

@@ -117,8 +121,9 @@ Unreleased
117121

118122
- Incorrect import of ``dataclass``.
119123

120-
1.7.0 (2024/07/25)
121-
------------------
124+
********************
125+
1.7.0 (2024/07/25)
126+
********************
122127

123128
**Added**
124129

@@ -127,15 +132,17 @@ Unreleased
127132
- Added support for Sphinx metadata fields.
128133
- Added support for Sphinx Python directives.
129134

130-
1.6.1 (2023/12/12)
131-
------------------
135+
********************
136+
1.6.1 (2023/12/12)
137+
********************
132138

133139
**Fixed**
134140

135141
- Fix incorrect blank line padding around ``:returns:`` and ``:raises:`` fields.
136142

137-
1.6.0 (2023/12/10)
138-
------------------
143+
********************
144+
1.6.0 (2023/12/10)
145+
********************
139146

140147
**Added**
141148

@@ -159,15 +166,17 @@ Unreleased
159166
- Removed support for Python 3.6.
160167
- Removed support for Python 3.7.
161168

162-
1.5.1 (2022/09/01)
163-
------------------
169+
********************
170+
1.5.1 (2022/09/01)
171+
********************
164172

165173
**Fixed**
166174

167175
- Fix ``ImportError`` when importing from black. Pinned black to 22.8.*.
168176

169-
1.5.0 (2022/07/19)
170-
------------------
177+
********************
178+
1.5.0 (2022/07/19)
179+
********************
171180

172181
**Added**
173182

@@ -178,23 +187,26 @@ Unreleased
178187
- Fix ``AttributeError`` when accessing ``rawsource`` during the handling ``Text``
179188
nodes.
180189

181-
1.4.4 (2022/02/06)
182-
------------------
190+
********************
191+
1.4.4 (2022/02/06)
192+
********************
183193

184194
**Changed**
185195

186196
- Bump maximum version of ``click`` from ``8.0.0`` to ``9.0.0``.
187197
- Bump minimum version of ``black`` to ``22``.
188198

189-
1.4.3 (2021/11/19)
190-
------------------
199+
********************
200+
1.4.3 (2021/11/19)
201+
********************
191202

192203
**Fixed**
193204

194205
- An issue where docstrfmt would not properly find the ``pyproject.toml`` file.
195206

196-
1.4.2 (2021/11/16)
197-
------------------
207+
********************
208+
1.4.2 (2021/11/16)
209+
********************
198210

199211
**Changed**
200212

@@ -204,37 +216,42 @@ Unreleased
204216

205217
- An issue where the summary line of docstring was incorrectly wrapped.
206218

207-
1.4.1 (2021/09/10)
208-
------------------
219+
********************
220+
1.4.1 (2021/09/10)
221+
********************
209222

210223
**Added**
211224

212225
- Add ``appdirs`` dependency.
213226

214-
1.4.0 (2021/07/30)
215-
------------------
227+
********************
228+
1.4.0 (2021/07/30)
229+
********************
216230

217231
**Added**
218232

219233
- Add Pre-commit hooks.
220234

221-
1.3.0 (2021/07/16)
222-
------------------
235+
********************
236+
1.3.0 (2021/07/16)
237+
********************
223238

224239
**Added**
225240

226241
- Add a check for blank fields and raise an error when found.
227242
- Add ``toml`` dependency.
228243

229-
1.2.0 (2021/06/15)
230-
------------------
244+
********************
245+
1.2.0 (2021/06/15)
246+
********************
231247

232248
**Added**
233249

234250
- Add ability to specify config setting from ``pyproject.toml``.
235251

236-
1.1.4 (2021/05/18)
237-
------------------
252+
********************
253+
1.1.4 (2021/05/18)
254+
********************
238255

239256
**Changed**
240257

@@ -244,8 +261,9 @@ Unreleased
244261

245262
- Fix bug where exclude paths were not being excluded properly.
246263

247-
1.1.3 (2021/05/10)
248-
------------------
264+
********************
265+
1.1.3 (2021/05/10)
266+
********************
249267

250268
**Changed**
251269

@@ -255,15 +273,17 @@ Unreleased
255273

256274
- Fixed import error with sphinx>=4.0.0.
257275

258-
1.1.2 (2021/05/04)
259-
------------------
276+
********************
277+
1.1.2 (2021/05/04)
278+
********************
260279

261280
**Fixed**
262281

263282
- Fixed issue when `target_version` is not set in `pyproject.toml`.
264283

265-
1.1.1 (2021/05/04)
266-
------------------
284+
********************
285+
1.1.1 (2021/05/04)
286+
********************
267287

268288
**Added**
269289

@@ -277,16 +297,18 @@ Unreleased
277297

278298
- Fixed import error when parsing black config.
279299

280-
1.1.0 (2021/02/18)
281-
------------------
300+
********************
301+
1.1.0 (2021/02/18)
302+
********************
282303

283304
- Make docstrfmt operate in parallel when processing more than 2 files similar to
284305
psf/black.
285306
- Added a caching mechanism similar to psf/black has so files that haven't changed from
286307
the last run won't be checked again.
287308

288-
1.0.3 (2021/01/23)
289-
------------------
309+
********************
310+
1.0.3 (2021/01/23)
311+
********************
290312

291313
**Added**
292314

@@ -304,15 +326,17 @@ Unreleased
304326
- Bug where some raw docstrings were not being formatted.
305327
- Bug where some syntax errors in python blocks were not caught or raised correctly.
306328

307-
1.0.2 (2020/12/27)
308-
------------------
329+
********************
330+
1.0.2 (2020/12/27)
331+
********************
309332

310333
**Fixed**
311334

312335
- Fix UnicodeEncodeError in Windows Github Actions jobs.
313336

314-
1.0.1 (2020/12/27)
315-
------------------
337+
********************
338+
1.0.1 (2020/12/27)
339+
********************
316340

317341
**Changed**
318342

@@ -322,13 +346,15 @@ Unreleased
322346

323347
- Fix encoding/decoding errors when opening files on Windows.
324348

325-
1.0.0 (2020/12/26)
326-
------------------
349+
********************
350+
1.0.0 (2020/12/26)
351+
********************
327352

328353
- First official docstrfmt release!
329354

330-
1.0.0.pre0 (2020/12/26)
331-
-----------------------
355+
*************************
356+
1.0.0.pre0 (2020/12/26)
357+
*************************
332358

333359
- Forked from `dzhu/rstfmt <https://github.com/dzhu/rstfmt>`_
334360
- Renamed to docstrfmt

0 commit comments

Comments
 (0)