From 5ef591d37671c1da1b3e07ec5882bdb816581ac4 Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Thu, 3 Oct 2024 16:15:17 +0300 Subject: [PATCH 1/2] Fix CI (#445) Co-authored-by: Kyle King --- .flake8 | 7 +++++-- .readthedocs.yaml | 13 +++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.flake8 b/.flake8 index 367e8ec4..01b9f8dd 100644 --- a/.flake8 +++ b/.flake8 @@ -1,6 +1,9 @@ [flake8] max-line-length = 88 max-complexity = 10 -# These checks violate PEP8 so let's ignore them -extend-ignore = E203 +extend-ignore = + # E203: Whitespace before ':' (violates PEP8 and black style) + E203, + # A005: A module is shadowing a Python builtin module + A005, extend-exclude = */site-packages/* diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 9b067d35..de87c933 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,16 +1,13 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Required version: 2 -# Build documentation in the docs/ directory with Sphinx +build: + os: 'ubuntu-lts-latest' + tools: + python: '3.11' + sphinx: fail_on_warning: true -# Optionally set the version of Python and requirements required to build your docs python: - version: '3.8' install: - requirements: docs/requirements.txt From 28a7a6d53749573d99ebe1a66340f1d7840ef53f Mon Sep 17 00:00:00 2001 From: wzy <32936898+Freed-Wu@users.noreply.github.com> Date: Thu, 3 Oct 2024 21:39:02 +0800 Subject: [PATCH 2/2] DOCS: Add mdformat-ruff (#425) --- docs/users/plugins.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/users/plugins.md b/docs/users/plugins.md index dfcb1069..0d519790 100644 --- a/docs/users/plugins.md +++ b/docs/users/plugins.md @@ -51,6 +51,11 @@ assert formatted == '```python\n"""black converts quotes"""\n```\n' go Requires Go installation + + mdformat-ruff + python + + mdformat-rustfmt rust