diff options
author | aa-turner <aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2023-03-25 17:54:40 +0000 |
---|---|---|
committer | aa-turner <aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2023-03-25 17:54:40 +0000 |
commit | a08d569fe110a6ff6f89f831c9f42f950c0df11d (patch) | |
tree | 2aa040cd6dca34d3b0616b41cc29fe645708716a | |
parent | 0cfafb31e894b5d8ba2f91306a6151aba615dda3 (diff) | |
download | docutils-a08d569fe110a6ff6f89f831c9f42f950c0df11d.tar.gz |
Update Flake8 version and resolve lint warnings
Flake8 6.0.0 introduces a stricter format for parsing ``.flake8``
files, which does not allow comments on the same line as the error
code in ``ignore`` sections. For now, update to the last version
before 6.0.0.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9331 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r-- | .pre-commit-config.yaml | 2 | ||||
-rw-r--r-- | docutils/docutils/writers/latex2e/__init__.py | 2 | ||||
-rw-r--r-- | docutils/test/test_CLI.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a748e8c2b..761abf28e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,6 +12,6 @@ repos: exclude: ^sandbox|(.svg)|docutils/test/data/utf-16-le-sig.txt$ - repo: https://github.com/pycqa/flake8 - rev: 3.8.4 # pick a git hash / tag to point to + rev: 5.0.4 # Docutils' ``.flake8`` configuration files do not work with Flake8 >=6 hooks: - id: flake8 diff --git a/docutils/docutils/writers/latex2e/__init__.py b/docutils/docutils/writers/latex2e/__init__.py index 4cf49d3f1..8f19d1ea4 100644 --- a/docutils/docutils/writers/latex2e/__init__.py +++ b/docutils/docutils/writers/latex2e/__init__.py @@ -652,7 +652,7 @@ class CharMaps: 0x2001: '\\quad', # EM QUAD 0x2002: '\\enskip', # EN SPACE 0x2003: '\\quad', # EM SPACE - 0x2008: '\\,', # PUNCTUATION SPACE + 0x2008: '\\,', # PUNCTUATION SPACE 0x200b: '\\hspace{0pt}', # ZERO WIDTH SPACE 0x202F: '\\,', # NARROW NO-BREAK SPACE # 0x02d8: '\\\u{ }', # BREVE diff --git a/docutils/test/test_CLI.py b/docutils/test/test_CLI.py index 2d058e3e4..9732c9468 100644 --- a/docutils/test/test_CLI.py +++ b/docutils/test/test_CLI.py @@ -30,7 +30,7 @@ if __name__ == '__main__': # so we import the local `docutils` package. sys.path.insert(0, str(Path(__file__).resolve().parents[1])) -from docutils import __main__, core, frontend +from docutils import __main__, core # DATA_ROOT is ./test/data/ from the docutils root DATA_ROOT = Path(__file__).parent / 'data' |