Commit Graph

37 Commits

Author SHA1 Message Date
Oleh Prypin
d110f03f48 CI: Bump node-version 2023-12-09 18:25:38 +01:00
Oleh Prypin
0d25830a20 Add a CI job checking that the docs site builds 2023-12-03 13:11:33 +01:00
Oleh Prypin
e2a9576b24 Drop Python 3.7, officially support Python 3.12 2023-10-16 22:39:14 +02:00
Oleh Prypin
44e6536060 Update CI to be consistent with deploy-release.yml 2023-10-14 13:35:26 +02:00
Oleh Prypin
63b50450fb Change PyPI deploy to rely on "trusted publishers" (#3400) 2023-09-18 18:13:47 +02:00
Oleh Prypin
347c3a91dd Apply automatic fixes from ruff, show diff in CI 2023-09-11 00:02:51 +02:00
Oleh Prypin
b0915b4697 Switch to "ruff" linter, enable many of its rules (#3368)
Co-authored-by: Ultrabug <ultrabug@ultrabug.net>
2023-09-04 10:02:38 +02:00
Oleh Prypin
bfb52a30ac Create FUNDING.yml (#3295) 2023-07-19 20:44:38 +02:00
Oleh Prypin
fad2926760 Update Hatch matrix specification, properly add Python 3.11 2023-07-07 15:17:40 +02:00
Oleh Prypin
1363c7c390 Upgrade PyPy in CI 2023-06-03 15:36:39 +02:00
Oleh Prypin
452c39eae2 Chore dependency upgrade 2022-10-29 22:44:38 +02:00
Oleh Prypin
c576f07d30 Declare support for Python 3.11 (#3020) 2022-10-29 14:48:00 +02:00
Oleh Prypin
0584e51e7d Chore dependency upgrade 2022-10-16 16:27:32 +02:00
Oleh Prypin
aa10190a55 Migrate from Tox to Hatch as test runner (#2991) 2022-10-07 23:18:05 +02:00
Oleh Prypin
65c24c21f0 Integrate Babel build steps as a Hatch hook (#2992) 2022-10-07 18:07:35 +02:00
Oleh Prypin
30cdac47a9 Switch to pyproject.toml and Hatch build (#2988) 2022-10-07 00:42:48 +02:00
Oleh Prypin
12ee265cc1 Remove pybabel setuptools integration (#2990) 2022-10-03 19:30:02 +02:00
Oleh Prypin
df3739d519 Add a lot more type annotations, fix new type warnings (#2970)
(including some behavior changes, assumed to be no-op)

This is based on auto-generated annotations from "monkeytype".
2022-09-07 18:04:39 +02:00
Oleh Prypin
f7307905d4 Drop support for Python 3.6. It's EOL 2022-08-23 21:29:53 +02:00
Oleh Prypin
90e85f9fae Enforce 'mypy' type checker, add py.typed (#2941) 2022-08-21 18:51:17 +02:00
Oleh Prypin
92611dc633 Slim down the CI test matrix (#2942) 2022-08-21 17:16:13 +02:00
Oleh Prypin
2a06ece80a Synchronize requirements files, reduce deps installation for lint (#2943) 2022-08-21 17:15:46 +02:00
Oleh Prypin
a66a7ba474 Enforce 'isort' formatter 2022-08-08 21:42:39 +02:00
Oleh Prypin
d6bfb1bc6f Merge pull request #2913 from oprypin/black
Re-format code with `black -l100` and enforce it
2022-08-08 18:54:58 +02:00
Oleh Prypin
de5436fbc8 Stop checking diffs in translation files in CI (#2917)
This check has only caused a lot of spurious failures. I never check it.
2022-08-08 18:50:28 +02:00
Oleh Prypin
58a99e5b38 Enforce Black formatter 2022-08-07 20:25:35 +02:00
Álvaro Mondéjar
b599749d7c Fix PyPy version in MacOS CI workflow (#2755)
Use pypy-3.7-v7.x selector
2022-01-25 23:21:35 +01:00
Álvaro Mondéjar
7e69cc5f68 Declare support for Python 3.10 (#2617)
* Bump minimum Jinja2 requirement
2021-12-30 23:17:56 +02:00
Oleh Prypin
d15b240247 Allow CI to run when pushing to a branch (#2439)
The motivation is that contributors currently have no good way to test their changes before opening a pull request
2021-11-28 17:34:17 +01:00
Álvaro Mondéjar
c93c05341d Add codespell step to CI lint workflow (#2551) 2021-08-23 19:50:25 +02:00
Oleh Prypin
6f5443caee CI: Run all lint checks in one job (#2501)
This is more considerate of the computational resources. The lint checks are not the bottleneck, and now they won't starve other jobs from starting.
All checks will still run and a failure in any of them will fail the job.

Also upgrade Python and Node versions

+ Remove unused 'max-parallel'
2021-07-14 22:02:15 +02:00
Waylan Limberg
d3f8b242d3 babel is required for deployment 2021-06-07 11:26:06 -04:00
Ultrabug
e1b77ab66e Support theme localization
A framework for translating themes as been added, which includes:

1. Use of Jinja's `i18n` plugin for translating phrases in templates (not page content).
2. A French translation of the built-in themes (contributions in other languages are welcome).
3. A new `theme.locale` option to define the locale/language of the site.
4. The search plugin uses the value of `theme.locale` as its default 'lang'.
5. Third party themes may chose to use the framework (use is optional).
6. A documented workflow for translating MkDocs built-in themes.
7. Custom tooling for use by translators and theme devs.

The dependencies are not installed by default and are not needed to use MkDocs without translations. However, for anyone who wants to make use of the features, `pip install mkdocs[i18n]` will install all necessary dependencies.

Relates to #211.
2021-05-06 14:30:21 -04:00
Waylan Limberg
c7d86d4989 Support PY39 and drop PY35 (#2260)
PyYAML 3.13 fails to install on PY3.9 on MacOS. The next public release was 5.1.
2020-12-21 16:31:38 -05:00
AleksaC
7dc35a11ad Reintroduce pypy to CI 2020-11-16 09:17:20 -05:00
Waylan Limberg
725371c946 Temporarily exclude Windows/PyPy check
Due to a bug in PyPy 3.6.9 on Windows, tox is not able to start up and run.
See tox-dev/tox#1704 for details. Revert this when PyPy is updated to
the next release and/or when the bug is fixed upstream.
2020-11-05 15:04:06 -05:00
Waylan Limberg
e28c20223b Switch to GitHub Actions from Travis/Appveyor
This duplicates everything we already had in Travis and Appveyor.
Any additional actions can be added separately later.
2020-11-05 15:04:06 -05:00