summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Enable Sphinx nitpicky mode and fix warnings (#2403)Jean Abou-Samra2023-04-111-1/+1
|
* Replace Makefile with tox (#2331)Jean Abou-Samra2023-02-231-4/+82
| | | | | | | | | | | | | | | Porting notes: - tox handles Python environments automatically. Remove a bit of PYTHONPATH manipulation (that was using Python 2 code which always failed!) - No `clean` target: `git clean -xdf` should fit the bill. - No `reindent` target: the `reindent.py` script it was using does not exist (anymore?). - No equivalent of tox-test-coverage, which was an artifact of the past, using nose. Instead, the test-coverage target only is ported, which uses pytest, and works.
* Declare support for Python 3.11, test 3.12-dev, drop EOL 3.6 (#2324)Hugo van Kemenade2023-01-251-1/+1
| | | | | | | | | | | * Add support for Python 3.11 * Test Python 3.12-dev * Add colour to CI for readability * Drop support for EOL Python 3.6 * Test slower Windows first to speed up CI
* Remove the lxml dependency.Matthäus G. Chajdas2022-12-071-1/+0
| | | | Replace lxml with html.parser for the structural-diff.
* Modify tox.ini to drop CPython 3.5 and PyPy3 testingKurt McKee2022-06-211-1/+1
|
* Update HTML tests.Matthäus G. Chajdas2021-12-061-0/+1
| | | | | This includes a new structural diff which is more robust, as it handles changes like different attribute order.
* Prohibit contrast degradation for styles via test (#1919)Martin Fischer2021-11-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Web accessibility is important. Unfortunately currently many pygments styles have rules with poor contrasts. This commit introduces a test case that fails if the minimum contrast of a style gets worse, e.g: E AssertionError: contrast degradation for style 'borland' E The following rules have a contrast lower than the required 2.9: E E * 1.90 Token.Text.Whitespace E * 2.80 Token.Generic.Heading E * 2.30 Token.Generic.Subheading E E assert not 1.9 < 2.9 This is accomplished by storing the current minimum contrasts in ./tests/contrast/min_contrasts.json. When you improve a minimum contrast the test fails with: E AssertionError: congrats, you improved a contrast! please run ./scripts/update_contrasts.py E assert not 1.9 > 0.9 Running the script as instructed updates the JSON file, making the test pass. New styles are required to meet the WCAG AA contrast minimum of 4.5. First commit to address #1718.
* Add support for Python 3.10 (#1917)Hugo van Kemenade2021-10-231-2/+2
| | | | | * Add support for Python 3.10 * Drop the dot https://twitter.com/pytestdotorg/status/753767547866972160
* Add Python 3.9 as a supported version (#1554)Kurt McKee2020-10-061-1/+1
| | | Co-authored-by: Matthäus G. Chajdas <Anteru@users.noreply.github.com>
* Add regexlint to tox so linting can be done during development (#1557)Kurt McKee2020-09-281-1/+7
| | | | | | | | | * Add regexlint to tox so linting can be done during development Tested on Windows. Closes #1556 * Make regex linting depend on pygments/regexlint@master
* Remove Python 2 environments from the tox environment list (py27, pypy) (#1532)Kurt McKee2020-09-041-1/+1
|
* Document and test all supported Python versionsJon Dufresne2019-11-241-1/+1
| | | | | Document support for Python 3.8 (released October 14th, 2019) and PyPy and add them to the test matrix.
* Remove unittest classes from the test suite.Georg Brandl2019-11-101-4/+5
|
* Fix the tests, and enable them for Python 2.7, 3.5, 3.6, 3.7.Matth?us G. Chajdas2018-11-241-1/+1
| | | | | Updated the documentation as well to make clear which Python versions are officially supported.
* merge default into stableGeorg Brandl2016-01-171-0/+7