From 3ea034895cd42683415e7c364f8eae2c633fdd54 Mon Sep 17 00:00:00 2001 From: Farid Zakaria Date: Fri, 22 Sep 2023 22:00:43 +0000 Subject: [PATCH] exclude _version.py from pyright and flake8 --- pyproject.toml | 4 ++-- setup.cfg | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5620ecb..926c624 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,8 +60,7 @@ profile = "black" addopts = "" [tool.pyright] -include = ["sqlelf", "tests"] -exclude = ["**/__pycache__"] +exclude = ["**/__pycache__", "sqlelf/_version.py"] reportMissingImports = true reportMissingTypeStubs = true @@ -69,3 +68,4 @@ useLibraryCodeForTypes = true pythonVersion = "3.10" pythonPlatform = "Linux" +include = ["sqlelf", "tests"] diff --git a/setup.cfg b/setup.cfg index 213eb8d..ab8808e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,5 @@ [flake8] extend-ignore = E203 -max-line-length = 88 \ No newline at end of file +max-line-length = 88 +exclude = + _version.py \ No newline at end of file