diff options
| author | Iwan Aucamp <aucampia@gmail.com> | 2023-04-14 21:26:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-14 21:26:10 +0200 |
| commit | cbd61510ec581aee262bc2bb8ad95d94f7784842 (patch) | |
| tree | abd7f64b89dd3b4bed049af8a157e860396faf31 /test/test_issues | |
| parent | 4ea14367ffa2c05e5c288842982dcc3cdd194dd6 (diff) | |
| download | rdflib-cbd61510ec581aee262bc2bb8ad95d94f7784842.tar.gz | |
test: Eliminate flake8 errors in tests (#2353)
Eliminate some occurrences of the following flake8 errors in tests:
* E265 block comment should start with '# '
* E266 too many leading '#' for block comment
* E402 module level import not at top of file
* E712 comparison to False should be 'if cond is False:' or 'if not cond:'
* E712 comparison to True should be 'if cond is True:' or 'if cond:'
* E722 do not use bare 'except'
* F401 ... imported but unused
* F403 ... used; unable to detect undefined names
* F405 ... may be undefined, or defined from star imports: ...
* F541 f-string is missing placeholders
* F841 local variable 'result' is assigned to but never used
* N806 variable 'TEST_DIR' in function should be lowercase
This is pursuant to eliminating
[flakeheaven](https://github.com/flakeheaven/flakeheaven), as it no longer
supports the latest version of flake8
[[ref](https://github.com/flakeheaven/flakeheaven/issues/132)].
Diffstat (limited to 'test/test_issues')
| -rw-r--r-- | test/test_issues/test_issue492.py | 3 | ||||
| -rw-r--r-- | test/test_issues/test_issue604.py | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/test/test_issues/test_issue492.py b/test/test_issues/test_issue492.py index 713ce7ac..83d2d938 100644 --- a/test/test_issues/test_issue492.py +++ b/test/test_issues/test_issue492.py @@ -1,7 +1,4 @@ # test for https://github.com/RDFLib/rdflib/issues/492 - -#!/usr/bin/env python3 - import rdflib diff --git a/test/test_issues/test_issue604.py b/test/test_issues/test_issue604.py index d5662943..cb5aaac9 100644 --- a/test/test_issues/test_issue604.py +++ b/test/test_issues/test_issue604.py @@ -1,4 +1,4 @@ -from rdflib import * +from rdflib import RDF, BNode, Graph, Literal, Namespace from rdflib.collection import Collection |
