Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

fix: pylint and isort ignore gitignore mentioned paths during test

Clémence Lesnéc81004ea295a
diff --git a/Makefile b/Makefile
index 5002cc6..b66d41f 100644
--- a/Makefile
+++ b/Makefile
@@ -84,10 +84,7 @@ test:
python3 -m deptry .
@echo "➡️ Test code smells (Pylint)..."
- python3 -m pylint \
- --fail-under=8 \
- --recursive=true \
- .
+ python3 -m pylint .
@echo "➡️ Test types (Pyright)..."
python3 -m pyright .
diff --git a/pyproject.toml b/pyproject.toml
index 9cee6fb..2ef9cd1 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -84,10 +84,15 @@ target-version = ["py311"]
[tool.isort]
combine_as_imports = true
profile = "black"
+skip_gitignore = true
[tool.pylint.MAIN]
+fail-under = 8.0
+ignore-paths = [".python_packages/.+"]
init-hook='import sys; sys.path.append(".")'
+jobs = 0
py-version = "3.11"
+recursive = true
[tool.pylint.format]
max-line-length = "88"