Commit Graph

190 Commits

Author SHA1 Message Date
Adam Turner
9e3f4521db Drop support for Python 3.9 (#12633) 2024-07-22 15:05:15 +01:00
Stephen Finucane
5ea16e748b Add tox `lint` target (#11602)
Signed-off-by: Stephen Finucane <stephen@that.guru>
2024-07-06 19:42:20 +01:00
Chris Sewell
13b16c9b04 DOCS: hide todo admonitions on RTD (#12442)
`todo` admonitions should not be present in the user-facing documentation (built on ReadTheDocs)
2024-06-19 15:15:31 +02:00
Chris Sewell
b97d14a8b0 Improve tox docs config (#12434)
For example, allow for `CLEAN=true BUILDER=man tox -e docs -- -j4`, 
to use the `man` builder on a clean build, with 4 processes
2024-06-17 11:52:52 +02:00
Chris Sewell
43276dcbac 🔧 add tox environment for mypy (#12376) 2024-05-15 07:18:31 +02:00
Chris Sewell
71d50a8658 🔧 Update ruff v0.4.4 (#12375) 2024-05-15 07:00:55 +02:00
Adam Turner
794324ac00 Declare support for Python 3.13 2023-08-17 04:28:52 +01:00
Adam Turner
ad61e41157 Drop support for Python 3.8 (#11511) 2023-07-25 02:07:23 +01:00
Adam Turner
c17300aa7a Treat Python warnings as errors during testing 2023-02-15 04:34:10 +00:00
Adam Turner
ff852bc7c3 Update GitHub Actions workflows 2023-02-15 03:10:50 +00:00
Adam Turner
8634fbce60 Adopt the Ruff code linting tool
https://github.com/charliermarsh/ruff
2022-12-29 17:00:27 +00:00
Jean-François B
7418d2ccc4 Deactivate (provisorily) Python12-dev testing (#11035)
* fix flake8 warnings

* Deactivate (provisorily) testing with 3.12-dev

(refs:
https://github.com/sphinx-doc/sphinx/pull/10995#issuecomment-1330310586
)

* Escape # in tox.ini for tox 4 compatibility ('du-latest' tests)

Co-authored-by: Daniel Eades <danieleades@hotmail.com>
2022-12-16 12:41:54 +01:00
Adam Turner
33d65fbdaf Merge Docutils master tests into the main workflow 2022-10-27 09:53:56 +01:00
Adam Turner
995e2615a7 Test on Python 3.12 prereleases 2022-10-27 09:48:14 +01:00
Adam Turner
e70a0fac6d Merge branch '5.x'
# Conflicts:
#	.github/workflows/main.yml
#	CHANGES
#	sphinx/__init__.py
#	sphinx/domains/c.py
2022-10-16 11:24:18 +01:00
Adam Turner
cef1a030cd Update image for LaTeX job (#10916) 2022-10-12 23:01:55 +01:00
Adam Turner
bb62d2a2ee Increase minimum Docutils to 0.18 2022-09-27 18:31:47 +01:00
Adam Turner
080517ce55 Increase minimum Docutils to 0.17 2022-09-27 18:31:47 +01:00
Adam Turner
4660b62de0 Drop Python 3.7 2022-09-27 18:31:47 +01:00
Adam Turner
7649eb1505 Clean up after dropping Python 3.6 2022-09-27 18:31:47 +01:00
Hugo van Kemenade
d5b28997f2 Declare support for Python 3.11 (#10871) 2022-09-27 14:21:55 +01:00
Adam Turner
b347657809 Use declarative metadata
- Move to pyproject.toml metadata
- Update references to `setup.py`
- Use pypa/build
- Update workflows and tooling
2022-09-13 10:31:27 +01:00
Chris Holdgraf
eb0a6c574f Update documentation structure and theming (#10677)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2022-07-18 22:48:28 +01:00
Adam Turner
9112cfeb8d Refresh the Sphinx13 theme (#10652) 2022-07-10 22:48:15 +01:00
Adam Turner
1f21e973d4 Use released Docutils 0.19 on CI 2022-07-06 19:18:10 +01:00
Adam Turner
68bc916cf4 Test with Docutils 0.19 prereleases (#10598) 2022-06-25 22:15:30 +01:00
Julien Palard
4a67ea1da3 doc linting: Re-enable a check (#10573) 2022-06-19 23:29:00 +01:00
Julien Palard
956cddb7d4 Replace doclinter with sphinx-lint (#10389)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-06-16 19:32:09 +01:00
Adam Turner
65ae948eca Split out coverage 2022-05-02 17:47:46 +01:00
Adam Turner
3420d15cb9 Bump Docutils dependency 2022-04-19 03:09:45 +01:00
Takeshi KOMIYA
a0f5f240ea Merge branch '5.x' into encoding-warnings 2022-04-17 13:10:08 +09:00
Adam Turner
26c5c40b50 Enable the opt-in EncodingWarning
https://docs.python.org/3/library/io.html#io-encoding-warning
2022-04-16 19:30:45 +01:00
Adam Turner
ec0c13c26d Don't use deprecated setup.py build_sphinx 2022-04-16 19:08:27 +01:00
Takeshi KOMIYA
ab5b8dc9ee CI: refactor tox.ini; Install HEAD of docutils directly 2022-01-08 22:57:31 +09:00
Takeshi KOMIYA
c16b36c499 CI: Remove unused no longer needed PYTHONWARNINGS 2022-01-02 15:03:20 +09:00
James Knight
334bdceeff tox: support coverage on win32
When invoking the `coverage` on a Windows environment, the following
exception may generate:

    ...
        raise CoverageException(f"Couldn't read {fname!r} as a config file")
    coverage.exceptions.CoverageException: Couldn't read 'C:mycodesphinx/setup.cfg' as a config file
    ERROR: InvocationError for command 'C:\mycode\sphinx\.tox\coverage\Scripts\python.EXE' -X dev -m pytest --durations 25 (exited with code 1)

Enclosing with configuration file with quotes can improve the handling
of a provided path on multiple platform types.

Signed-off-by: James Knight <james.d.knight@live.com>
2021-12-05 14:24:14 -05:00
Hugo van Kemenade
2d9c6db3ce Remove py workaround 2021-11-05 13:14:42 +02:00
Takeshi KOMIYA
0f0b93df9e Merge pull request #9702 from tk0miya/test_with_docutils-latest
test: Do test with the HEAD of docutils
2021-10-09 13:57:37 +09:00
Takeshi KOMIYA
5a79bafe85 CI: Install unreleased "py" package for 3.11-dev 2021-10-09 13:00:48 +09:00
Takeshi KOMIYA
f13ad80207 Support Python 3.10 2021-10-07 02:34:44 +09:00
Takeshi KOMIYA
6fc96f412a test: Do test with the HEAD of docutils 2021-10-03 20:15:36 +09:00
Daniel Hahler
e89de152d8 ci(tox.ini): add COLORTERM to passenv
This is required for [kitty](https://sw.kovidgoyal.net/kitty/), which
uses TERM=xterm-kitty, which is not detected as being a colored
terminal, without its `COLORTERM=truecolor` also being passed [1].

1: d194e0f490/sphinx/util/console.py (L70-L71)
2021-08-30 10:32:30 +02:00
Takeshi KOMIYA
2308a2fffa test: Test with the bugfixed version of each docutils release 2021-04-11 12:44:04 +09:00
Takeshi KOMIYA
41a377fee5 Merge branch '3.x' 2021-04-04 00:06:45 +09:00
Takeshi KOMIYA
cf2d11f947 test: Do test with docutils-0.17 (final) 2021-04-03 23:54:41 +09:00
Takeshi KOMIYA
26d0bb641b test: Do test with docutils-0.17b1 2021-04-03 23:54:19 +09:00
Takeshi KOMIYA
62a0ee3fef Merge branch '3.x' 2020-12-31 14:33:09 +09:00
Takeshi KOMIYA
f054b9b976 refactor: Reduce warnings on testing 2020-12-29 19:23:46 +09:00
Takeshi KOMIYA
279e547860 Merge branch '3.x' 2020-11-12 02:50:43 +09:00
Takeshi KOMIYA
64fb1e5624 Merge pull request #8411 from francoisfreitag/devmode
Run tests with Python Development mode
2020-11-12 02:20:43 +09:00