[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 21/21] qapi: [WIP] Enable linters on parser.py
From: |
John Snow |
Subject: |
[PATCH v2 21/21] qapi: [WIP] Enable linters on parser.py |
Date: |
Tue, 11 May 2021 18:06:01 -0400 |
(Only works after we excise QAPIDoc, of course.)
Signed-off-by: John Snow <jsnow@redhat.com>
---
scripts/qapi/mypy.ini | 6 ------
scripts/qapi/pylintrc | 3 +--
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/scripts/qapi/mypy.ini b/scripts/qapi/mypy.ini
index 1a72be2c788..56c0f306c5e 100644
--- a/scripts/qapi/mypy.ini
+++ b/scripts/qapi/mypy.ini
@@ -3,12 +3,6 @@ strict = True
disallow_untyped_calls = False
python_version = 3.6
-[mypy-qapi.parser]
-# QAPISchemaParser is done, I promise!
-disallow_untyped_defs = False
-disallow_incomplete_defs = False
-check_untyped_defs = False
-
[mypy-qapi.qapidoc]
disallow_untyped_defs = False
disallow_incomplete_defs = False
diff --git a/scripts/qapi/pylintrc b/scripts/qapi/pylintrc
index ec7605edade..b41a26c1ceb 100644
--- a/scripts/qapi/pylintrc
+++ b/scripts/qapi/pylintrc
@@ -2,8 +2,7 @@
# Add files or directories matching the regex patterns to the ignore list.
# The regex matches against base names, not paths.
-ignore-patterns=parser.py,
- qapidoc.py,
+ignore-patterns=qapidoc.py,
schema.py,
--
2.30.2
- [PATCH v2 10/21] qapi/parser: Fix token membership tests when token can be None, (continued)
- [PATCH v2 10/21] qapi/parser: Fix token membership tests when token can be None, John Snow, 2021/05/11
- [PATCH v2 11/21] qapi/parser: Rework _check_pragma_list_of_str as a TypeGuard, John Snow, 2021/05/11
- [PATCH v2 12/21] qapi/parser: add type hint annotations, John Snow, 2021/05/11
- [PATCH v2 13/21] qapi/parser: Remove superfluous list comprehension, John Snow, 2021/05/11
- [PATCH v2 15/21] qapi/parser: add docstrings, John Snow, 2021/05/11
- [PATCH v2 14/21] qapi/parser: allow 'ch' variable name, John Snow, 2021/05/11
- [PATCH v2 16/21] CHECKPOINT, John Snow, 2021/05/11
- [PATCH v2 19/21] qapi: [WIP] Import QAPIDoc from qapidoc Signed-off-by: John Snow <address@hidden>, John Snow, 2021/05/11
- [PATCH v2 18/21] qapi: [WIP] Add type ignores for qapidoc.py, John Snow, 2021/05/11
- [PATCH v2 21/21] qapi: [WIP] Enable linters on parser.py,
John Snow <=
- [PATCH v2 20/21] qapi: [WIP] Add QAPIDocError, John Snow, 2021/05/11
- [PATCH v2 17/21] qapi: [WIP] Rip QAPIDoc out of parser.py, John Snow, 2021/05/11