summaryrefslogtreecommitdiff
path: root/tests/test_func.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-01-16 23:04:25 +0100
committerGitHub <noreply@github.com>2023-01-16 23:04:25 +0100
commit4a5b4e63c8177ec1b1c7d1ecb4eb2c448c7481a3 (patch)
tree33c7d491e2462d766aa0c3f360f9499e1cce809e /tests/test_func.py
parenteae0eaff11239db4dc89d570d120ff0a6cbe1e61 (diff)
downloadpylint-git-4a5b4e63c8177ec1b1c7d1ecb4eb2c448c7481a3.tar.gz
[style] Limit line length and complexity using flake8 (#8064)
125 is a good start. The check was activated in pylint with value = 100, but flake8 is less lenient than pylint and does not make any exceptions (for docstrings, strings and comments in particular).
Diffstat (limited to 'tests/test_func.py')
-rw-r--r--tests/test_func.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_func.py b/tests/test_func.py
index 493489aee..a032baf5d 100644
--- a/tests/test_func.py
+++ b/tests/test_func.py
@@ -73,9 +73,11 @@ class LintTestUsingModule:
self.linter.check(tocheck)
except Exception as ex:
print(f"Exception: {ex} in {tocheck}:: {'‚ '.join(ex.args)}")
- ex.file = tocheck # type: ignore[attr-defined] # This is legacy code we're trying to remove, not worth it to type correctly
+ # This is legacy code we're trying to remove, not worth it to type correctly
+ ex.file = tocheck # type: ignore[attr-defined]
print(ex)
- ex.__str__ = exception_str # type: ignore[assignment] # This is legacy code we're trying to remove, impossible to type correctly
+ # This is legacy code we're trying to remove, not worth it to type correctly
+ ex.__str__ = exception_str # type: ignore[assignment]
raise
assert isinstance(self.linter.reporter, GenericTestReporter)
self._check_result(self.linter.reporter.finalize())