Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'print-statement' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'parameter-unpacking' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'unpacking-in-except' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'old-raise-syntax' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'backtick' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'import-star-module-level' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'apply-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'basestring-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'buffer-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'cmp-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'coerce-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'execfile-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'file-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'long-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'raw_input-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'reduce-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'standarderror-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'unicode-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'xrange-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'coerce-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'delslice-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'getslice-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'setslice-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'no-absolute-import' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'old-division' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-iter-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-view-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'next-method-called' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'metaclass-assignment' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'indexing-exception' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'raising-string' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'reload-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'oct-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'hex-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'nonzero-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'cmp-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'input-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'round-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'intern-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'unichr-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'map-builtin-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'zip-builtin-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'range-builtin-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'filter-builtin-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'using-cmp-argument' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'div-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'idiv-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'rdiv-method' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'exception-message-attribute' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'invalid-str-codec' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'sys-max-int' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'bad-python3-import' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-string-function' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-str-translate-call' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-itertools-function' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-types-field' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'next-method-defined' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-items-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-keys-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-values-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-operator-function' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-urllib-function' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'xreadlines-attribute' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-sys-function' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'exception-escape' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'comprehension-escape' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942. |
1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'long-suffix' |
1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'old-ne-operator' |
1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'old-octal-literal' |
1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'non-ascii-bytes-literal' |
1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'eq-without-hash' |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "getCaseData" doesn't conform to snake_case naming style |
36 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'matplotlib.pyplot' |
36 |
0 |
warning |
unused-import |
W0611 |
|
Unused matplotlib.pyplot imported as plt |
37 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
38 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
50 |
27 |
convention |
invalid-name |
C0103 |
check_for_completeness |
Argument name "df" doesn't conform to snake_case naming style |
63 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (139/120) |
64 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (142/120) |
69 |
4 |
refactor |
no-else-return |
R1705 |
check_for_completeness |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
117 |
8 |
convention |
invalid-name |
C0103 |
fetch_case_data |
Variable name "df" doesn't conform to snake_case naming style |
120 |
11 |
warning |
broad-except |
W0703 |
fetch_case_data |
Catching too general exception Exception |
123 |
8 |
warning |
unnecessary-pass |
W0107 |
fetch_case_data |
Unnecessary pass statement |
139 |
12 |
convention |
invalid-name |
C0103 |
fetch_case_data |
Variable name "df" doesn't conform to snake_case naming style |
143 |
8 |
warning |
bare-except |
W0702 |
fetch_case_data |
No exception type(s) specified |
153 |
16 |
convention |
invalid-name |
C0103 |
fetch_case_data |
Variable name "df" doesn't conform to snake_case naming style |
158 |
12 |
warning |
bare-except |
W0702 |
fetch_case_data |
No exception type(s) specified |
171 |
0 |
refactor |
too-many-arguments |
R0913 |
preprocess_case_data |
Too many arguments (6/5) |
189 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/120) |
199 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (126/120) |
200 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/120) |
207 |
8 |
convention |
invalid-name |
C0103 |
preprocess_case_data |
Variable name "df" doesn't conform to snake_case naming style |
213 |
8 |
convention |
invalid-name |
C0103 |
preprocess_case_data |
Variable name "AnzahlFall" doesn't conform to snake_case naming style |
214 |
8 |
convention |
invalid-name |
C0103 |
preprocess_case_data |
Variable name "AnzahlGenesen" doesn't conform to snake_case naming style |
215 |
8 |
convention |
invalid-name |
C0103 |
preprocess_case_data |
Variable name "AnzahlTodesfall" doesn't conform to snake_case naming style |
247 |
16 |
warning |
raise-missing-from |
W0707 |
preprocess_case_data |
Consider explicitly re-raising using 'except Exception as exc' and 'raise gd.DataError("Time data can't be transformed to intended format") from exc' |
252 |
8 |
convention |
invalid-name |
C0103 |
preprocess_case_data |
Variable name "dateToUse" doesn't conform to snake_case naming style |
267 |
12 |
convention |
invalid-name |
C0103 |
preprocess_case_data |
Variable name "df" doesn't conform to snake_case naming style |
278 |
20 |
convention |
invalid-name |
C0103 |
write_case_data |
Argument name "df" doesn't conform to snake_case naming style |
278 |
0 |
refactor |
too-many-arguments |
R0913 |
write_case_data |
Too many arguments (11/5) |
278 |
0 |
refactor |
too-many-locals |
R0914 |
write_case_data |
Too many local variables (26/15) |
278 |
0 |
refactor |
too-many-branches |
R0912 |
write_case_data |
Too many branches (14/12) |
278 |
0 |
refactor |
inconsistent-return-statements |
R1710 |
write_case_data |
Either all return statements in a function should return an expression, or none of them should. |
301 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (123/120) |
317 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (140/120) |
318 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (185/120) |
319 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (139/120) |
320 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (140/120) |
321 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (127/120) |
326 |
7 |
refactor |
consider-using-in |
R1714 |
write_case_data |
Consider merging these comparisons with 'in' by using 'files in ('All', ['All'])'. Use a set instead if elements are hashable. |
331 |
7 |
refactor |
consider-using-in |
R1714 |
write_case_data |
Consider merging these comparisons with 'in' by using 'files in ('Plot', ['Plot'])'. Use a set instead if elements are hashable. |
340 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "Altersgruppe" doesn't conform to snake_case naming style |
341 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "Geschlecht" doesn't conform to snake_case naming style |
342 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "AnzahlFall" doesn't conform to snake_case naming style |
343 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "AnzahlGenesen" doesn't conform to snake_case naming style |
344 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "AnzahlTodesfall" doesn't conform to snake_case naming style |
345 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "IdBundesland" doesn't conform to snake_case naming style |
346 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "IdLandkreis" doesn't conform to snake_case naming style |
347 |
4 |
convention |
invalid-name |
C0103 |
write_case_data |
Variable name "dateToUse" doesn't conform to snake_case naming style |
401 |
23 |
refactor |
use-dict-literal |
R1735 |
write_case_data |
Consider using {} instead of dict() |
405 |
27 |
convention |
consider-iterating-dictionary |
C0201 |
write_case_data |
Consider iterating the dictionary directly instead of calling .keys() |
409 |
12 |
refactor |
simplifiable-if-statement |
R1703 |
write_case_data |
The if statement can be replaced with 'var = bool(test)' |
450 |
0 |
refactor |
too-many-arguments |
R0913 |
get_case_data |
Too many arguments (10/5) |
450 |
0 |
refactor |
too-many-locals |
R0914 |
get_case_data |
Too many local variables (17/15) |
450 |
0 |
refactor |
inconsistent-return-statements |
R1710 |
get_case_data |
Either all return statements in a function should return an expression, or none of them should. |
480 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/120) |
492 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (123/120) |
502 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (135/120) |
505 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (135/120) |
506 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (135/120) |
507 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/120) |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "getDataIntoPandasDataFrame" doesn't conform to snake_case naming style |
39 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import warnings" should be placed before "import requests" |
40 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'matplotlib' |
41 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from io import BytesIO" should be placed before "import requests" |
42 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from zipfile import ZipFile" should be placed before "import requests" |
43 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from enum import Enum" should be placed before "import requests" |
46 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
52 |
0 |
convention |
missing-class-docstring |
C0115 |
VerbosityLevel |
Missing class docstring |
53 |
4 |
convention |
invalid-name |
C0103 |
VerbosityLevel |
Class constant name "Off" doesn't conform to UPPER_CASE naming style |
54 |
4 |
convention |
invalid-name |
C0103 |
VerbosityLevel |
Class constant name "Critical" doesn't conform to UPPER_CASE naming style |
55 |
4 |
convention |
invalid-name |
C0103 |
VerbosityLevel |
Class constant name "Error" doesn't conform to UPPER_CASE naming style |
56 |
4 |
convention |
invalid-name |
C0103 |
VerbosityLevel |
Class constant name "Warning" doesn't conform to UPPER_CASE naming style |
57 |
4 |
convention |
invalid-name |
C0103 |
VerbosityLevel |
Class constant name "Info" doesn't conform to UPPER_CASE naming style |
58 |
4 |
convention |
invalid-name |
C0103 |
VerbosityLevel |
Class constant name "Debug" doesn't conform to UPPER_CASE naming style |
59 |
4 |
convention |
invalid-name |
C0103 |
VerbosityLevel |
Class constant name "Trace" doesn't conform to UPPER_CASE naming style |
62 |
0 |
refactor |
too-few-public-methods |
R0903 |
Conf |
Too few public methods (0/2) |
77 |
32 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
107 |
30 |
refactor |
simplifiable-if-expression |
R1719 |
Conf.__init__ |
The if expression can be replaced with 'test' |
110 |
26 |
refactor |
simplifiable-if-expression |
R1719 |
Conf.__init__ |
The if expression can be replaced with 'test' |
112 |
31 |
refactor |
simplifiable-if-expression |
R1719 |
Conf.__init__ |
The if expression can be replaced with 'test' |
114 |
24 |
refactor |
simplifiable-if-expression |
R1719 |
Conf.__init__ |
The if expression can be replaced with 'test' |
115 |
26 |
refactor |
simplifiable-if-expression |
R1719 |
Conf.__init__ |
The if expression can be replaced with 'test' |
116 |
30 |
refactor |
simplifiable-if-expression |
R1719 |
Conf.__init__ |
The if expression can be replaced with 'test' |
120 |
76 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
122 |
77 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
124 |
66 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
126 |
73 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
128 |
62 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
130 |
58 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
133 |
70 |
convention |
consider-iterating-dictionary |
C0201 |
Conf.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
141 |
11 |
convention |
singleton-comparison |
C0121 |
Conf.__init__ |
Comparison 'Conf.show_progr == True' should be 'Conf.show_progr is True' if checking for the singleton value True, or 'Conf.show_progr' if testing for truthiness |
147 |
0 |
convention |
missing-function-docstring |
C0116 |
default_print |
Missing function or method docstring |
152 |
0 |
convention |
missing-function-docstring |
C0116 |
user_choice |
Missing function or method docstring |
152 |
25 |
warning |
unused-argument |
W0613 |
user_choice |
Unused argument 'default' |
155 |
8 |
refactor |
no-else-return |
R1705 |
user_choice |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
201 |
12 |
warning |
raise-missing-from |
W0707 |
download_file |
Consider explicitly re-raising using 'except OSError as exc' and 'raise FileNotFoundError('Error: URL ' + url + ' could not be opened.') from exc' |
242 |
31 |
convention |
invalid-name |
C0103 |
extract_zip |
Variable name "zipObj" doesn't conform to snake_case naming style |
245 |
8 |
convention |
consider-using-enumerate |
C0200 |
extract_zip |
Consider using enumerate instead of iterating with range and len |
249 |
16 |
warning |
bare-except |
W0702 |
extract_zip |
No exception type(s) specified |
256 |
0 |
warning |
dangerous-default-value |
W0102 |
get_file |
Dangerous default value {} as argument |
256 |
0 |
refactor |
too-many-locals |
R0914 |
get_file |
Too many local variables (19/15) |
256 |
0 |
refactor |
too-many-branches |
R0912 |
get_file |
Too many branches (14/12) |
261 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (128/120) |
287 |
12 |
convention |
invalid-name |
C0103 |
get_file |
Variable name "df" doesn't conform to snake_case naming style |
293 |
16 |
convention |
invalid-name |
C0103 |
get_file |
Variable name "df" doesn't conform to snake_case naming style |
298 |
16 |
warning |
raise-missing-from |
W0707 |
get_file |
Consider explicitly re-raising using 'except FileNotFoundError as exc' and 'raise FileNotFoundError(error_message) from exc' |
301 |
80 |
convention |
invalid-name |
C0103 |
get_file |
Variable name "p" doesn't conform to snake_case naming style |
320 |
16 |
convention |
invalid-name |
C0103 |
get_file |
Variable name "df" doesn't conform to snake_case naming style |
322 |
12 |
warning |
raise-missing-from |
W0707 |
get_file |
Consider explicitly re-raising using 'except OSError as exc' and 'raise FileNotFoundError('Error: URL ' + url + ' could not be opened.') from exc' |
328 |
11 |
refactor |
consider-merging-isinstance |
R1701 |
get_file |
Consider merging these isinstance calls to isinstance(df, (dict, list)) |
331 |
20 |
warning |
raise-missing-from |
W0707 |
get_file |
Consider explicitly re-raising using 'except AttributeError as exc' and 'raise DataError('Error: Dataframe is empty.') from exc' |
333 |
12 |
warning |
raise-missing-from |
W0707 |
get_file |
Consider explicitly re-raising using 'except AttributeError as exc' and 'raise DataError('Could not catch type of df: ' + str(type(df))) from exc' |
337 |
0 |
refactor |
too-many-branches |
R0912 |
cli |
Too many branches (20/12) |
337 |
0 |
refactor |
too-many-statements |
R0915 |
cli |
Too many statements (52/50) |
379 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (154/120) |
382 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (138/120) |
384 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (131/120) |
385 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (129/120) |
386 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (173/120) |
391 |
8 |
warning |
raise-missing-from |
W0707 |
cli |
Consider explicitly re-raising using 'except KeyError as exc' and 'raise ValueError('Wrong key or cli_dict.') from exc' |
443 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (128/120) |
549 |
20 |
convention |
invalid-name |
C0103 |
write_dataframe |
Argument name "df" doesn't conform to snake_case naming style |
549 |
0 |
warning |
dangerous-default-value |
W0102 |
write_dataframe |
Dangerous default value {} as argument |
572 |
4 |
convention |
invalid-name |
C0103 |
write_dataframe |
Variable name "outForm" doesn't conform to snake_case naming style |
579 |
8 |
convention |
invalid-name |
C0103 |
write_dataframe |
Variable name "outFormEnd" doesn't conform to snake_case naming style |
580 |
8 |
convention |
invalid-name |
C0103 |
write_dataframe |
Variable name "outFormSpec" doesn't conform to snake_case naming style |
582 |
8 |
warning |
raise-missing-from |
W0707 |
write_dataframe |
Consider explicitly re-raising using 'except KeyError as exc' and 'raise ValueError('Error: The file format: ' + file_type + ' does not exist. Use json, json_timeasstring, hdf5, csv or txt.') from exc' |
607 |
4 |
warning |
unnecessary-pass |
W0107 |
DataError |
Unnecessary pass statement |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
too-many-lines |
C0302 |
|
Too many lines in module (1501/1000) |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "getNPIData" doesn't conform to snake_case naming style |
24 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from datetime import date, datetime, timedelta" should be placed before "from memilio.epidata import getPopulationData as gpd" |
25 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import time" should be placed before "from memilio.epidata import getPopulationData as gpd" |
26 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import os" should be placed before "from memilio.epidata import getPopulationData as gpd" |
27 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import copy" should be placed before "from memilio.epidata import getPopulationData as gpd" |
28 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
28 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "import pandas as pd" should be placed before "from memilio.epidata import getPopulationData as gpd" |
29 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
29 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "import numpy as np" should be placed before "from memilio.epidata import getPopulationData as gpd" |
30 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import warnings" should be placed before "import pandas as pd" |
31 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'matplotlib' |
31 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "import matplotlib as mpl" should be placed before "from memilio.epidata import getPopulationData as gpd" |
32 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'matplotlib.pyplot' |
32 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "import matplotlib.pyplot as plt" should be placed before "from memilio.epidata import getPopulationData as gpd" |
40 |
49 |
convention |
invalid-name |
C0103 |
validate |
Argument name "countyID" doesn't conform to snake_case naming style |
40 |
59 |
convention |
invalid-name |
C0103 |
validate |
Argument name "npiCode" doesn't conform to snake_case naming style |
40 |
0 |
refactor |
too-many-arguments |
R0913 |
validate |
Too many arguments (10/5) |
40 |
0 |
refactor |
too-many-locals |
R0914 |
validate |
Too many local variables (22/15) |
60 |
8 |
convention |
invalid-name |
C0103 |
validate |
Variable name "npiCodes" doesn't conform to snake_case naming style |
63 |
8 |
convention |
invalid-name |
C0103 |
validate |
Variable name "npiCodes" doesn't conform to snake_case naming style |
64 |
8 |
refactor |
redefined-argument-from-local |
R1704 |
validate |
Redefining argument with the local name 'npiCode' |
65 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (128/120) |
127 |
0 |
refactor |
too-many-locals |
R0914 |
read_files |
Too many local variables (20/15) |
127 |
0 |
refactor |
too-many-branches |
R0912 |
read_files |
Too many branches (21/12) |
127 |
0 |
refactor |
too-many-statements |
R0915 |
read_files |
Too many statements (59/50) |
140 |
4 |
refactor |
too-many-nested-blocks |
R1702 |
read_files |
Too many nested blocks (6/5) |
190 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (133/120) |
211 |
12 |
warning |
raise-missing-from |
W0707 |
read_files |
Consider explicitly re-raising using 'except FileNotFoundError as exc' and 'raise FileNotFoundError from exc' |
232 |
12 |
warning |
raise-missing-from |
W0707 |
read_files |
Consider explicitly re-raising using 'except FileNotFoundError as exc' and 'raise FileNotFoundError from exc' |
251 |
8 |
warning |
raise-missing-from |
W0707 |
read_files |
Consider explicitly re-raising using 'except FileNotFoundError as exc' and 'raise FileNotFoundError from exc' |
261 |
8 |
warning |
raise-missing-from |
W0707 |
read_files |
Consider explicitly re-raising using 'except FileNotFoundError as exc' and 'raise FileNotFoundError('File ' + fname + ' not found.') from exc' |
292 |
59 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
312 |
71 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
357 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (134/120) |
368 |
0 |
refactor |
too-many-branches |
R0912 |
drop_codes_and_categories |
Too many branches (14/12) |
427 |
8 |
convention |
consider-using-enumerate |
C0200 |
drop_codes_and_categories |
Consider using enumerate instead of iterating with range and len |
447 |
0 |
convention |
missing-function-docstring |
C0116 |
npi_sanity_check |
Missing function or method docstring |
449 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (137/120) |
458 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'not' keyword |
460 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'not' keyword |
462 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'not' keyword |
476 |
0 |
refactor |
too-many-arguments |
R0913 |
get_npi_data |
Too many arguments (8/5) |
476 |
0 |
refactor |
too-many-locals |
R0914 |
get_npi_data |
Too many local variables (122/15) |
476 |
0 |
refactor |
too-many-branches |
R0912 |
get_npi_data |
Too many branches (96/12) |
476 |
0 |
refactor |
too-many-statements |
R0915 |
get_npi_data |
Too many statements (308/50) |
561 |
8 |
convention |
singleton-comparison |
C0121 |
get_npi_data |
Comparison 'df_npis_old.columns.str.contains('d2') == True' should be 'df_npis_old.columns.str.contains('d2') is True' if checking for the singleton value True, or 'bool(df_npis_old.columns.str.contains('d2'))' if testing for truthiness |
614 |
12 |
convention |
singleton-comparison |
C0121 |
get_npi_data |
Comparison '(df_npis_combinations_pre == 'x').any() == True' should be '(df_npis_combinations_pre == 'x').any() is True' if checking for the singleton value True, or 'bool((df_npis_combinations_pre == 'x').any())' if testing for truthiness |
616 |
45 |
refactor |
unnecessary-comprehension |
R1721 |
get_npi_data |
Unnecessary use of a comprehension, use list(columns_used) instead. |
620 |
50 |
refactor |
unnecessary-comprehension |
R1721 |
get_npi_data |
Unnecessary use of a comprehension, use list(range(0, len(columns_used))) instead. |
658 |
8 |
convention |
consider-using-enumerate |
C0200 |
get_npi_data |
Consider using enumerate instead of iterating with range and len |
663 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (145/120) |
685 |
8 |
convention |
consider-using-enumerate |
C0200 |
get_npi_data |
Consider using enumerate instead of iterating with range and len |
692 |
16 |
refactor |
unnecessary-comprehension |
R1721 |
get_npi_data |
Unnecessary use of a comprehension, use list(npi_codes_prior_desc[npi_codes_prior.isin(codes_local)].values) instead. |
696 |
15 |
convention |
singleton-comparison |
C0121 |
get_npi_data |
Comparison 'write_file == False' should be 'write_file is False' if checking for the singleton value False, or 'not write_file' if testing for falsiness |
732 |
8 |
convention |
consider-using-enumerate |
C0200 |
get_npi_data |
Consider using enumerate instead of iterating with range and len |
735 |
11 |
convention |
unneeded-not |
C0113 |
get_npi_data |
Consider changing "not errors == [0, 1, 2, 3, 4, 5]" to "errors != [0, 1, 2, 3, 4, 5]" |
773 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (123/120) |
781 |
35 |
refactor |
use-dict-literal |
R1735 |
get_npi_data |
Consider using {} instead of dict() |
792 |
25 |
convention |
consider-iterating-dictionary |
C0201 |
get_npi_data |
Consider iterating the dictionary directly instead of calling .keys() |
804 |
26 |
refactor |
use-dict-literal |
R1735 |
get_npi_data |
Consider using {} instead of dict() |
824 |
19 |
convention |
unneeded-not |
C0113 |
get_npi_data |
Consider changing "not (threshold, '') in incidence_thresholds" to "(threshold, '') not in incidence_thresholds" |
827 |
19 |
convention |
unneeded-not |
C0113 |
get_npi_data |
Consider changing "not (threshold, '_' + code.split('_')[2]) in incidence_thresholds" to "(threshold, '_' + code.split('_')[2]) not in incidence_thresholds" |
962 |
8 |
convention |
invalid-name |
C0103 |
get_npi_data |
Variable name "countyID" doesn't conform to snake_case naming style |
962 |
4 |
refactor |
too-many-nested-blocks |
R1702 |
get_npi_data |
Too many nested blocks (7/5) |
1017 |
19 |
refactor |
use-a-generator |
R1729 |
get_npi_data |
Use a generator instead 'all(npis[dd.EngEng['npiCode']][i * inc_codes] in npi_code_test for npi_code_test in df_local_old.iloc[inc_codes * i:inc_codes * (i + 1), npi_start_col - 1].to_list())' |
1026 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'if' keyword |
1272 |
12 |
convention |
invalid-name |
C0103 |
get_npi_data |
Variable name "countyID" doesn't conform to snake_case naming style |
1273 |
16 |
convention |
invalid-name |
C0103 |
get_npi_data |
Variable name "npiCode" doesn't conform to snake_case naming style |
1277 |
20 |
convention |
invalid-name |
C0103 |
get_npi_data |
Variable name "a" doesn't conform to snake_case naming style |
1277 |
23 |
convention |
invalid-name |
C0103 |
get_npi_data |
Variable name "b" doesn't conform to snake_case naming style |
1277 |
26 |
warning |
unused-variable |
W0612 |
get_npi_data |
Unused variable 'oldf' |
1277 |
32 |
warning |
unused-variable |
W0612 |
get_npi_data |
Unused variable 'newf' |
1282 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'if' keyword |
1307 |
77 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
1309 |
79 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
1317 |
16 |
convention |
singleton-comparison |
C0121 |
count_code_multiplicities |
Comparison 'df_local.columns.str.startswith('d2') == True' should be 'df_local.columns.str.startswith('d2') is True' if checking for the singleton value True, or 'bool(df_local.columns.str.startswith('d2'))' if testing for truthiness |
1325 |
12 |
convention |
consider-using-enumerate |
C0200 |
count_code_multiplicities |
Consider using enumerate instead of iterating with range and len |
1340 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (161/120) |
1355 |
12 |
convention |
consider-using-enumerate |
C0200 |
count_code_multiplicities |
Consider using enumerate instead of iterating with range and len |
1385 |
0 |
refactor |
too-many-statements |
R0915 |
plot_interaction_matrix |
Too many statements (54/50) |
1387 |
69 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
1403 |
8 |
warning |
raise-missing-from |
W0707 |
plot_interaction_matrix |
Consider explicitly re-raising using 'except FileNotFoundError as exc' and 'raise FileNotFoundError('File ' + filename + ' not found.') from exc' |
1418 |
8 |
convention |
invalid-name |
C0103 |
plot_interaction_matrix |
Variable name "df" doesn't conform to snake_case naming style |
1435 |
20 |
refactor |
unnecessary-comprehension |
R1721 |
plot_interaction_matrix |
Unnecessary use of a comprehension, use list(range(len(df.columns) - 1)) instead. |
1471 |
69 |
convention |
consider-using-f-string |
C0209 |
plot_interaction_matrix |
Formatting a regular string which could be a f-string |
1477 |
20 |
refactor |
unnecessary-comprehension |
R1721 |
plot_interaction_matrix |
Unnecessary use of a comprehension, use list(range(len(df.columns) - 1)) instead. |
1486 |
69 |
convention |
consider-using-f-string |
C0209 |
plot_interaction_matrix |
Formatting a regular string which could be a f-string |
1495 |
4 |
convention |
invalid-name |
C0103 |
main |
Variable name "df" doesn't conform to snake_case naming style |
1495 |
4 |
warning |
unused-variable |
W0612 |
main |
Unused variable 'df' |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "getTestingData" doesn't conform to snake_case naming style |
24 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
40 |
68 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
44 |
68 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
51 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (144/120) |
54 |
17 |
error |
no-member |
E1101 |
download_testing_data |
Instance of 'list' has no 'iloc' member |
60 |
4 |
convention |
invalid-name |
C0103 |
download_testing_data |
Variable name "r" doesn't conform to snake_case naming style |
60 |
8 |
warning |
missing-timeout |
W3101 |
download_testing_data |
Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely |
63 |
34 |
convention |
invalid-name |
C0103 |
download_testing_data |
Variable name "fh" doesn't conform to snake_case naming style |
64 |
8 |
convention |
invalid-name |
C0103 |
download_testing_data |
Variable name "df" doesn't conform to snake_case naming style |
76 |
75 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
110 |
0 |
refactor |
too-many-arguments |
R0913 |
get_testing_data |
Too many arguments (7/5) |
110 |
0 |
refactor |
too-many-locals |
R0914 |
get_testing_data |
Too many local variables (26/15) |
110 |
0 |
refactor |
too-many-statements |
R0915 |
get_testing_data |
Too many statements (70/50) |
118 |
70 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
119 |
72 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
121 |
63 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
130 |
69 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
134 |
70 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
135 |
67 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
136 |
37 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
137 |
73 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
141 |
70 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
142 |
42 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
145 |
69 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
153 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (135/120) |
181 |
12 |
warning |
raise-missing-from |
W0707 |
get_testing_data |
Consider explicitly re-raising using 'except (ValueError, FileNotFoundError) as exc' and 'raise FileNotFoundError('Error: The file: ' + county_file_in + ' does not exist. Call program without -r flag to get it.') from exc' |
190 |
12 |
warning |
raise-missing-from |
W0707 |
get_testing_data |
Consider explicitly re-raising using 'except (ValueError, FileNotFoundError) as exc' and 'raise FileNotFoundError('Error: The file: ' + state_file_in + ' does not exist. Call program without -r flag to get it.') from exc' |
209 |
4 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'rename' member |
210 |
4 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'rename' member |
213 |
8 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
214 |
12 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
215 |
8 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
216 |
12 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
219 |
12 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
220 |
16 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
221 |
12 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
222 |
16 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
224 |
12 |
warning |
raise-missing-from |
W0707 |
get_testing_data |
Consider explicitly re-raising using 'except Exception as exc' and 'raise gd.DataError("Time data can't be transformed to intended format") from exc' |
228 |
4 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'drop' member |
235 |
4 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'drop' member |
238 |
28 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'State' member |
239 |
4 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'reset_index' member |
242 |
4 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'rename' member |
244 |
8 |
convention |
invalid-name |
C0103 |
get_testing_data |
Variable name "stateName" doesn't conform to snake_case naming style |
244 |
19 |
convention |
invalid-name |
C0103 |
get_testing_data |
Variable name "stateID" doesn't conform to snake_case naming style |
245 |
8 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'loc' member |
245 |
23 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
265 |
12 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
266 |
13 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
274 |
31 |
refactor |
unnecessary-comprehension |
R1721 |
get_testing_data |
Unnecessary use of a comprehension, use list(geoger.get_state_ids()) instead. |
287 |
12 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
288 |
13 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'loc' member |
289 |
14 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
291 |
12 |
refactor |
unnecessary-comprehension |
R1721 |
get_testing_data |
Unnecessary use of a comprehension, use list(geoger.get_state_names()) instead. |
307 |
12 |
error |
no-member |
E1101 |
get_testing_data |
Instance of 'list' has no 'loc' member |
307 |
27 |
error |
invalid-sequence-index |
E1126 |
get_testing_data |
Sequence index is not an int, slice, or instance with __index__ |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
too-many-lines |
C0302 |
|
Too many lines in module (1274/1000) |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "getVaccinationData" doesn't conform to snake_case naming style |
25 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
26 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
41 |
0 |
convention |
missing-function-docstring |
C0116 |
download_vaccination_data |
Missing function or method docstring |
42 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (153/120) |
51 |
0 |
convention |
missing-function-docstring |
C0116 |
sanity_checks |
Missing function or method docstring |
51 |
18 |
convention |
invalid-name |
C0103 |
sanity_checks |
Argument name "df" doesn't conform to snake_case naming style |
67 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'if' keyword |
71 |
0 |
refactor |
too-many-arguments |
R0913 |
compute_vaccination_ratios |
Too many arguments (6/5) |
105 |
8 |
convention |
invalid-name |
C0103 |
sanitizing_average_regions |
Argument name "df" doesn't conform to snake_case naming style |
156 |
0 |
refactor |
too-many-locals |
R0914 |
sanitizing_extrapolation_mobility |
Too many local variables (38/15) |
156 |
0 |
refactor |
too-many-branches |
R0912 |
sanitizing_extrapolation_mobility |
Too many branches (14/12) |
156 |
0 |
refactor |
too-many-statements |
R0915 |
sanitizing_extrapolation_mobility |
Too many statements (60/50) |
157 |
8 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Argument name "df" doesn't conform to snake_case naming style |
159 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (154/120) |
162 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (174/120) |
163 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (123/120) |
180 |
8 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Variable name "kk" doesn't conform to snake_case naming style |
202 |
4 |
convention |
consider-using-dict-items |
C0206 |
sanitizing_extrapolation_mobility |
Consider iterating with .items() |
212 |
12 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Variable name "ii" doesn't conform to snake_case naming style |
221 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (161/120) |
225 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (127/120) |
233 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (127/120) |
234 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (173/120) |
234 |
39 |
refactor |
unnecessary-comprehension |
R1721 |
sanitizing_extrapolation_mobility |
Unnecessary use of a comprehension, use list(age_groups) instead. |
243 |
8 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Variable name "ii" doesn't conform to snake_case naming style |
245 |
8 |
warning |
redefined-builtin |
W0622 |
sanitizing_extrapolation_mobility |
Redefining built-in 'id' |
245 |
8 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Variable name "id" doesn't conform to snake_case naming style |
259 |
8 |
convention |
consider-using-enumerate |
C0200 |
sanitizing_extrapolation_mobility |
Consider using enumerate instead of iterating with range and len |
336 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (123/120) |
344 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (126/120) |
349 |
25 |
convention |
singleton-comparison |
C0121 |
sanitizing_extrapolation_mobility |
Comparison 'np.isnan(df_san[column_names]) == True' should be 'np.isnan(df_san[column_names]) is True' if checking for the singleton value True, or 'bool(np.isnan(df_san[column_names]))' if testing for truthiness |
368 |
8 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Variable name "id" doesn't conform to snake_case naming style |
370 |
12 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Variable name "a" doesn't conform to snake_case naming style |
372 |
12 |
convention |
invalid-name |
C0103 |
sanitizing_extrapolation_mobility |
Variable name "b" doesn't conform to snake_case naming style |
382 |
0 |
refactor |
too-many-arguments |
R0913 |
extrapolate_age_groups_vaccinations |
Too many arguments (8/5) |
382 |
0 |
refactor |
too-many-locals |
R0914 |
extrapolate_age_groups_vaccinations |
Too many local variables (23/15) |
389 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/120) |
406 |
4 |
convention |
consider-using-enumerate |
C0200 |
extrapolate_age_groups_vaccinations |
Consider using enumerate instead of iterating with range and len |
409 |
8 |
convention |
invalid-name |
C0103 |
extrapolate_age_groups_vaccinations |
Variable name "countyID" doesn't conform to snake_case naming style |
418 |
8 |
convention |
consider-using-enumerate |
C0200 |
extrapolate_age_groups_vaccinations |
Consider using enumerate instead of iterating with range and len |
440 |
12 |
convention |
consider-using-enumerate |
C0200 |
extrapolate_age_groups_vaccinations |
Consider using enumerate instead of iterating with range and len |
458 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (168/120) |
484 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/120) |
488 |
4 |
warning |
unused-variable |
W0612 |
fetch_vaccination_data |
Unused variable 'out_folder' |
501 |
0 |
refactor |
too-many-arguments |
R0913 |
process_vaccination_data |
Too many arguments (8/5) |
501 |
0 |
refactor |
too-many-locals |
R0914 |
process_vaccination_data |
Too many local variables (49/15) |
501 |
0 |
refactor |
too-many-branches |
R0912 |
process_vaccination_data |
Too many branches (41/12) |
501 |
0 |
refactor |
too-many-statements |
R0915 |
process_vaccination_data |
Too many statements (129/50) |
556 |
16 |
warning |
raise-missing-from |
W0707 |
process_vaccination_data |
Consider explicitly re-raising using 'except Exception as exc' and 'raise gd.DataError("Time data can't be transformed to intended format") from exc' |
613 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/120) |
616 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (142/120) |
643 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/120) |
675 |
12 |
convention |
consider-using-enumerate |
C0200 |
process_vaccination_data |
Consider using enumerate instead of iterating with range and len |
686 |
12 |
convention |
consider-using-enumerate |
C0200 |
process_vaccination_data |
Consider using enumerate instead of iterating with range and len |
699 |
8 |
convention |
consider-using-enumerate |
C0200 |
process_vaccination_data |
Consider using enumerate instead of iterating with range and len |
723 |
8 |
convention |
consider-using-enumerate |
C0200 |
process_vaccination_data |
Consider using enumerate instead of iterating with range and len |
736 |
8 |
convention |
consider-using-enumerate |
C0200 |
process_vaccination_data |
Consider using enumerate instead of iterating with range and len |
820 |
11 |
refactor |
consider-using-in |
R1714 |
process_vaccination_data |
Consider merging these comparisons with 'in' by using 'sanitize_data in (1, 2)'. Use a set instead if elements are hashable. |
876 |
0 |
refactor |
too-many-arguments |
R0913 |
write_vaccination_data |
Too many arguments (6/5) |
876 |
0 |
refactor |
too-many-locals |
R0914 |
write_vaccination_data |
Too many local variables (34/15) |
876 |
0 |
refactor |
too-many-statements |
R0915 |
write_vaccination_data |
Too many statements (70/50) |
915 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (142/120) |
916 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (190/120) |
917 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (139/120) |
922 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (122/120) |
923 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (143/120) |
924 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (144/120) |
955 |
8 |
warning |
unused-variable |
W0612 |
write_vaccination_data |
Unused variable 'df_fullsum' |
983 |
30 |
refactor |
unnecessary-comprehension |
R1721 |
write_vaccination_data |
Unnecessary use of a comprehension, use list(unique_age_groups_old) instead. |
996 |
30 |
refactor |
unnecessary-comprehension |
R1721 |
write_vaccination_data |
Unnecessary use of a comprehension, use list(unique_age_groups_old) instead. |
1049 |
8 |
warning |
unused-variable |
W0612 |
write_vaccination_data |
Unused variable 'df_fullsum_county' |
1077 |
8 |
warning |
unused-variable |
W0612 |
write_vaccination_data |
Unused variable 'df_fullsum_state' |
1100 |
30 |
refactor |
unnecessary-comprehension |
R1721 |
write_vaccination_data |
Unnecessary use of a comprehension, use list(unique_age_groups_new) instead. |
1115 |
30 |
refactor |
unnecessary-comprehension |
R1721 |
write_vaccination_data |
Unnecessary use of a comprehension, use list(unique_age_groups_new) instead. |
1121 |
4 |
refactor |
no-else-return |
R1705 |
write_vaccination_data |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
1169 |
0 |
refactor |
too-many-arguments |
R0913 |
get_vaccination_data |
Too many arguments (8/5) |
1169 |
0 |
refactor |
inconsistent-return-statements |
R1710 |
get_vaccination_data |
Either all return statements in a function should return an expression, or none of them should. |
1224 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (140/120) |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "transformWeatherData" doesn't conform to snake_case naming style |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getJHData:[97:106]
==memilio.epidata_test.test_epidata_get_jh_data:[122:129]
directory_ger = os.path.join(out_folder, 'Germany/')
directory_es = os.path.join(out_folder, 'Spain/')
directory_fr = os.path.join(out_folder, 'France/')
directory_it = os.path.join(out_folder, 'Italy/')
directory_us = os.path.join(out_folder, 'US/')
directory_rok = os.path.join(out_folder, 'SouthKorea/')
directory_prc = os.path.join(out_folder, 'China/')
# dictionary of countries |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getCommuterMobility:[25:32]
==memilio.epidata.transformMobilityData:[19:29]
import os
import numpy as np
import pandas as pd
from memilio.epidata import defaultDict as dd
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getCaseData:[36:43]
==memilio.epidata.transformWeatherData:[23:32]
import numpy as np
import pandas as pd
from memilio.epidata import defaultDict as dd
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd
from memilio.epidata import modifyDataframeSeries as mdfs |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getCaseData:[238:244]
==memilio.epidata.getDIVIData:[141:147]
try:
df[dd.EngEng['date']] = pd.to_datetime(
df[dd.EngEng['date']], format="ISO8601")
except ValueError:
try:
df[dd.EngEng['date']] = pd.to_datetime( |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getPopulationData:[30:48]
==memilio.epidata.transformMobilityData:[21:40]
import numpy as np
import pandas as pd
from memilio.epidata import defaultDict as dd
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd
# activate CoW for more predictable behaviour of pandas DataFrames
pd.options.mode.copy_on_write = True
def read_population_data(ref_year):
"""! Reads Population data from regionalstatistik.de
A request is made to regionalstatistik.de and the StringIO is read in as a csv into the dataframe format.
@param ref_year [Default: None] or year (jjjj) convertible to str. Reference year.
@return DataFrame
""" |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata_test.test_epidata_getCaseData:[22:30]
==memilio.epidata_test.test_epidata_get_jh_data:[20:28]
import unittest
from datetime import date, datetime
from unittest.mock import patch
import pandas as pd
from pyfakefs import fake_filesystem_unittest
from memilio.epidata import defaultDict as dd |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata_test.test_epidata_getHospitalizationData:[103:109]
==memilio.epidata_test.test_epidata_get_divi_data:[217:223]
df = pd.DataFrame(
{'date_fake': [1, 2, 3],
'6': [6, 7, 8],
'7': [7, 8, 9],
'8': [8, 9, 0],
'bundesland': [2, 3, 4], |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getTestingData:[27:46]
==memilio.epidata.transformWeatherData:[26:57]
from memilio.epidata import defaultDict as dd
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd
from memilio.epidata import modifyDataframeSeries as mdfs
# activate CoW for more predictable behaviour of pandas DataFrames
pd.options.mode.copy_on_write = True
# Downloads testing data from RKI
def download_testing_data():
"""! Downloads the Sars-CoV-2 test data sets from RKI on country
and federal state level. Information on federal state level do not sum
up to country-wide information since less laboratories are participating.
@return dataframe array with country level information first and
federal state level second
""" |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getCommuterMobility:[26:32]
==memilio.epidata.transformWeatherData:[23:29]
import numpy as np
import pandas as pd
from memilio.epidata import defaultDict as dd
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getCaseData:[37:43]
==memilio.epidata.getDIVIData:[41:74]
import pandas as pd
from memilio.epidata import defaultDict as dd
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd
from memilio.epidata import modifyDataframeSeries as mdfs
def fetch_divi_data(
directory: str,
filename: str,
conf_obj,
read_data: bool = dd.defaultDict['read_data'],
file_format: str = dd.defaultDict['file_format'],
) -> pd.DataFrame:
"""! Downloads or reads the DIVI ICU data and writes them in different files.
If it does not already exist, the folder Germany is generated in the given out_folder.
If read_data == True and the file "FullData_DIVI.json" exists, the data is read form this file
and stored in a pandas dataframe. If read_data = True and the file does not exist the program is stopped.
The downloaded dataframe is written to the file "FullData_DIVI".
@param directory str
Path to the output directory
@param conf_obj
configuration object
@param filename str
File format which is used for writing the data. Default defined in defaultDict.
@param read_data bool. True or False. Defines if data is read from file or downloaded. Default defined in defaultDict.
@param file_format str. File format which is used for writing the data. Default defined in defaultDict.
@return Tuple[df_raw, start_date] Tuple. Contains the fetched data as well as the adjusted starting date
""" |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getJHData:[31:69]
==memilio.epidata.transformWeatherData:[28:60]
from memilio.epidata import getDataIntoPandasDataFrame as gd
from memilio.epidata import modifyDataframeSeries as mdfs
# activate CoW for more predictable behaviour of pandas DataFrames
pd.options.mode.copy_on_write = True
def get_jh_data(read_data=dd.defaultDict['read_data'],
file_format=dd.defaultDict['file_format'],
out_folder=dd.defaultDict['out_folder'],
start_date=date(2020, 1, 22),
end_date=dd.defaultDict['end_date'],
impute_dates=dd.defaultDict['impute_dates'],
**kwargs):
"""! Download data from John Hopkins University
Data is either downloaded and afterwards stored or loaded from a stored filed.
The file is "FullData_JohnHopkins.json"
Working with the data includes
- rename columns such that "/" is deleted, e.g Country/Region becomes CountryRegion
- data of all countries together are written to a file
- download the data from following countries in a separate file
and are stored in the according folders with the country name
- Germany, SouthKorea, Spain, France, Italy, US, China
- furthermore, all countries, for which provinces are added, are written to a file
@param read_data True or False. Defines if data is read from file or downloaded. Default defined in defaultDict.
@param file_format File format which is used for writing the data. Default defined in defaultDict.
@param out_folder Folder where data is written to. Default defined in defaultDict.
@param start_date Date of first date in dataframe. Default defined in defaultDict.
@param end_date Date of last date in dataframe. Default defined in defaultDict.
@param impute_dates [Currently not used] True or False. Defines if values for dates without new information are imputed. Default defined in defaultDict.
@param moving_average [Currently not used] Integers >=0. Applies an 'moving_average'-days moving average on all time series
to smooth out effects of irregular reporting. Default defined in defaultDict.
"""
conf = gd.Conf(out_folder, **kwargs)
out_folder = conf.path_to_use |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getHospitalizationData:[32:51]
==memilio.epidata.getJHData:[28:67]
import pandas as pd
from memilio.epidata import defaultDict as dd
from memilio.epidata import getDataIntoPandasDataFrame as gd
from memilio.epidata import modifyDataframeSeries as mdfs
# activate CoW for more predictable behaviour of pandas DataFrames
pd.options.mode.copy_on_write = True
def get_jh_data(read_data=dd.defaultDict['read_data'],
file_format=dd.defaultDict['file_format'],
out_folder=dd.defaultDict['out_folder'],
start_date=date(2020, 1, 22),
end_date=dd.defaultDict['end_date'],
impute_dates=dd.defaultDict['impute_dates'],
**kwargs):
"""! Download data from John Hopkins University
Data is either downloaded and afterwards stored or loaded from a stored filed.
The file is "FullData_JohnHopkins.json"
Working with the data includes
- rename columns such that "/" is deleted, e.g Country/Region becomes CountryRegion
- data of all countries together are written to a file
- download the data from following countries in a separate file
and are stored in the according folders with the country name
- Germany, SouthKorea, Spain, France, Italy, US, China
- furthermore, all countries, for which provinces are added, are written to a file
@param read_data True or False. Defines if data is read from file or downloaded. Default defined in defaultDict.
@param file_format File format which is used for writing the data. Default defined in defaultDict.
@param out_folder Folder where data is written to. Default defined in defaultDict.
@param start_date Date of first date in dataframe. Default defined in defaultDict.
@param end_date Date of last date in dataframe. Default defined in defaultDict.
@param impute_dates [Currently not used] True or False. Defines if values for dates without new information are imputed. Default defined in defaultDict.
@param moving_average [Currently not used] Integers >=0. Applies an 'moving_average'-days moving average on all time series
to smooth out effects of irregular reporting. Default defined in defaultDict.
""" |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata.getCaseData:[36:42]
==memilio.epidata.getPopulationData:[30:38]
import numpy as np
import pandas as pd
from memilio.epidata import defaultDict as dd
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd
# activate CoW for more predictable behaviour of pandas DataFrames |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata_test.test_epidata_get_vaccination_data:[24:30]
==memilio.epidata_test.test_epidata_transform_mobility_data:[23:29]
import numpy as np
import pandas as pd
from pyfakefs import fake_filesystem_unittest
from memilio.epidata import geoModificationGermany as geoger
from memilio.epidata import getDataIntoPandasDataFrame as gd |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==memilio.epidata_test.test_epidata_getCommuterMobility:[65:75]
==memilio.epidata_test.test_epidata_get_vaccination_data:[101:114]
filename = os.path.join(
here, 'test_data', 'TestSetPopulationFinal.json')
with open(filename) as file_object:
df_pop = pd.DataFrame(json.load(file_object))
def setUp(self):
self.setUpPyfakefs()
@patch('memilio.epidata.getVaccinationData.download_vaccination_data',
return_value=df_vacc_data_altern)
@patch('memilio.epidata.getPopulationData.get_population_data', return_value=df_pop)
@patch('memilio.epidata.getDataIntoPandasDataFrame.user_choice', return_value=True)
def test_get_vaccination_data_alternative_ages(self, mockin, mockp, mockv): |
24 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
25 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
36 |
0 |
convention |
invalid-name |
C0103 |
transformWeatherData |
Function name "transformWeatherData" doesn't conform to snake_case naming style |
36 |
0 |
refactor |
too-many-arguments |
R0913 |
transformWeatherData |
Too many arguments (8/5) |
36 |
0 |
refactor |
too-many-locals |
R0914 |
transformWeatherData |
Too many local variables (31/15) |
36 |
0 |
refactor |
too-many-branches |
R0912 |
transformWeatherData |
Too many branches (14/12) |
36 |
0 |
refactor |
too-many-statements |
R0915 |
transformWeatherData |
Too many statements (55/50) |
39 |
25 |
warning |
unused-argument |
W0613 |
transformWeatherData |
Unused argument 'start_date' |
40 |
25 |
warning |
unused-argument |
W0613 |
transformWeatherData |
Unused argument 'end_date' |
47 |
70 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
49 |
68 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
126 |
12 |
convention |
consider-using-enumerate |
C0200 |
transformWeatherData |
Consider using enumerate instead of iterating with range and len |
130 |
8 |
convention |
consider-using-enumerate |
C0200 |
transformWeatherData |
Consider using enumerate instead of iterating with range and len |
135 |
12 |
convention |
invalid-name |
C0103 |
transformWeatherData |
Variable name "countyID" doesn't conform to snake_case naming style |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
too-many-lines |
C0302 |
|
Too many lines in module (1133/1000) |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
31 |
0 |
convention |
missing-class-docstring |
C0115 |
Test_cleanData |
Missing class docstring |
31 |
0 |
convention |
invalid-name |
C0103 |
Test_cleanData |
Class name "Test_cleanData" doesn't conform to PascalCase naming style |
31 |
0 |
refactor |
too-many-public-methods |
R0904 |
Test_cleanData |
Too many public methods (33/20) |
39 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.set_dirs_and_files |
Missing function or method docstring |
39 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.set_dirs_and_files |
Too many local variables (22/15) |
112 |
20 |
convention |
invalid-name |
C0103 |
Test_cleanData.set_dirs_and_files |
Variable name "e" doesn't conform to snake_case naming style |
113 |
25 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.set_dirs_and_files |
Using open without explicitly specifying an encoding |
113 |
72 |
convention |
invalid-name |
C0103 |
Test_cleanData.set_dirs_and_files |
Variable name "f" doesn't conform to snake_case naming style |
116 |
11 |
refactor |
consider-using-in |
R1714 |
Test_cleanData.set_dirs_and_files |
Consider merging these comparisons with 'in' by using 'what in ('all', 'jh')'. Use a set instead if elements are hashable. |
118 |
20 |
convention |
invalid-name |
C0103 |
Test_cleanData.set_dirs_and_files |
Variable name "e" doesn't conform to snake_case naming style |
119 |
25 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.set_dirs_and_files |
Using open without explicitly specifying an encoding |
119 |
73 |
convention |
invalid-name |
C0103 |
Test_cleanData.set_dirs_and_files |
Variable name "f" doesn't conform to snake_case naming style |
122 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_set_dirs_and_files |
Missing function or method docstring |
141 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_set_dirs_and_files |
Redefining built-in 'dir' |
177 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_clean_data_all_should_delete_all |
Missing function or method docstring |
187 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_clean_data_all_should_not_delete_all |
Missing function or method docstring |
194 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_clean_data_all_should_not_delete_all |
Using open without explicitly specifying an encoding |
194 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_clean_data_all_should_not_delete_all |
Variable name "f" doesn't conform to snake_case naming style |
198 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_clean_data_all_should_not_delete_all |
Using open without explicitly specifying an encoding |
198 |
64 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_clean_data_all_should_not_delete_all |
Variable name "f" doesn't conform to snake_case naming style |
212 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_clean_data_cases |
Missing function or method docstring |
232 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_cases |
Redefining built-in 'dir' |
266 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_clean_data_cases_h5 |
Missing function or method docstring |
286 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_cases_h5 |
Redefining built-in 'dir' |
320 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_clean_data_cases_del_dir |
Missing function or method docstring |
329 |
12 |
refactor |
no-else-continue |
R1724 |
Test_cleanData.test_clean_data_cases_del_dir |
Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it |
329 |
15 |
refactor |
consider-using-in |
R1714 |
Test_cleanData.test_clean_data_cases_del_dir |
Consider merging these comparisons with 'in' by using 'item in ('cases_a.json', 'CaseDataFull.json')'. Use a set instead if elements are hashable. |
355 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_cases_del_dir |
Redefining built-in 'dir' |
370 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_clean_data_population |
Missing function or method docstring |
392 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_population |
Redefining built-in 'dir' |
425 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_clean_data_population_hdf5 |
Missing function or method docstring |
447 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_population_hdf5 |
Redefining built-in 'dir' |
480 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_clean_data_population_del_dir |
Missing function or method docstring |
494 |
12 |
refactor |
no-else-continue |
R1724 |
Test_cleanData.test_clean_data_population_del_dir |
Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it |
517 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_population_del_dir |
Redefining built-in 'dir' |
532 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_all_false |
Missing function or method docstring |
554 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_all_false |
Redefining built-in 'dir' |
588 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_wrong_path |
Missing function or method docstring |
604 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_clean_data_jh |
Missing function or method docstring |
623 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_jh |
Redefining built-in 'dir' |
652 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_clean_data_jh_hdf5 |
Missing function or method docstring |
671 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_jh_hdf5 |
Redefining built-in 'dir' |
700 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_clean_data_jh_both_endings |
Missing function or method docstring |
720 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_data_jh_both_endings |
Redefining built-in 'dir' |
742 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_clean_txt |
Missing function or method docstring |
746 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_clean_txt |
Using open without explicitly specifying an encoding |
746 |
83 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_clean_txt |
Variable name "f" doesn't conform to snake_case naming style |
757 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_file_not_found_cases |
Missing function or method docstring |
764 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_file_not_found_cases |
Using open without explicitly specifying an encoding |
764 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_file_not_found_cases |
Variable name "f" doesn't conform to snake_case naming style |
773 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_file_not_found_population |
Missing function or method docstring |
780 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_file_not_found_population |
Using open without explicitly specifying an encoding |
780 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_file_not_found_population |
Variable name "f" doesn't conform to snake_case naming style |
789 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_file_not_found_jh |
Missing function or method docstring |
796 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_file_not_found_jh |
Using open without explicitly specifying an encoding |
796 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_file_not_found_jh |
Variable name "f" doesn't conform to snake_case naming style |
805 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_file_not_found_divi |
Missing function or method docstring |
812 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_file_not_found_divi |
Using open without explicitly specifying an encoding |
812 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_file_not_found_divi |
Variable name "f" doesn't conform to snake_case naming style |
821 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_file_not_found_vacc |
Missing function or method docstring |
828 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_file_not_found_vacc |
Using open without explicitly specifying an encoding |
828 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_file_not_found_vacc |
Variable name "f" doesn't conform to snake_case naming style |
837 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_file_not_found_commuter |
Missing function or method docstring |
844 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_file_not_found_commuter |
Using open without explicitly specifying an encoding |
844 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_file_not_found_commuter |
Variable name "f" doesn't conform to snake_case naming style |
853 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_file_not_found_testing |
Missing function or method docstring |
860 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_cleanData.test_file_not_found_testing |
Using open without explicitly specifying an encoding |
860 |
65 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_file_not_found_testing |
Variable name "f" doesn't conform to snake_case naming style |
869 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_no_files |
Missing function or method docstring |
903 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_cli_default |
Missing function or method docstring |
903 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.test_cli_default |
Too many local variables (16/15) |
911 |
30 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_cli_default |
Variable name "jh" doesn't conform to snake_case naming style |
928 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_cli_folder |
Missing function or method docstring |
928 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.test_cli_folder |
Too many local variables (16/15) |
935 |
30 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_cli_folder |
Variable name "jh" doesn't conform to snake_case naming style |
952 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_cli_all |
Missing function or method docstring |
952 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.test_cli_all |
Too many local variables (16/15) |
960 |
30 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_cli_all |
Variable name "jh" doesn't conform to snake_case naming style |
977 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_cli_cases |
Missing function or method docstring |
977 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.test_cli_cases |
Too many local variables (16/15) |
985 |
30 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_cli_cases |
Variable name "jh" doesn't conform to snake_case naming style |
1002 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_cli_jh |
Missing function or method docstring |
1002 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.test_cli_jh |
Too many local variables (16/15) |
1010 |
30 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_cli_jh |
Variable name "jh" doesn't conform to snake_case naming style |
1027 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_cli_popul |
Missing function or method docstring |
1027 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.test_cli_popul |
Too many local variables (16/15) |
1035 |
30 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_cli_popul |
Variable name "jh" doesn't conform to snake_case naming style |
1052 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_cli_divi_vacc_commuter_testing |
Missing function or method docstring |
1052 |
4 |
refactor |
too-many-locals |
R0914 |
Test_cleanData.test_cli_divi_vacc_commuter_testing |
Too many local variables (16/15) |
1060 |
30 |
convention |
invalid-name |
C0103 |
Test_cleanData.test_cli_divi_vacc_commuter_testing |
Variable name "jh" doesn't conform to snake_case naming style |
1077 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_cleanData.test_clean_divi_vacc_commuter_testing_json |
Missing function or method docstring |
1098 |
12 |
warning |
redefined-builtin |
W0622 |
Test_cleanData.test_clean_divi_vacc_commuter_testing_json |
Redefining built-in 'dir' |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "test_epidata_geoModificationGermany" doesn't conform to snake_case naming style |
23 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
30 |
0 |
convention |
missing-class-docstring |
C0115 |
Test_geoModificationGermany |
Missing class docstring |
30 |
0 |
convention |
invalid-name |
C0103 |
Test_geoModificationGermany |
Class name "Test_geoModificationGermany" doesn't conform to PascalCase naming style |
30 |
0 |
refactor |
too-many-public-methods |
R0904 |
Test_geoModificationGermany |
Too many public methods (22/20) |
188 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_state_IDs |
Missing function or method docstring |
188 |
4 |
convention |
invalid-name |
C0103 |
Test_geoModificationGermany.test_get_state_IDs |
Method name "test_get_state_IDs" doesn't conform to snake_case naming style |
197 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_state_names |
Missing function or method docstring |
202 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_state_names_and_ids |
Missing function or method docstring |
207 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_geoModificationGermany.test_get_state_names_and_ids |
Consider using enumerate instead of iterating with range and len |
215 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_geoModificationGermany.test_get_state_names_and_ids |
Consider using enumerate instead of iterating with range and len |
220 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_insert_names_of_states |
Missing function or method docstring |
227 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_county_ids |
Missing function or method docstring |
253 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_county_names |
Missing function or method docstring |
273 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_county_names_and_ids |
Missing function or method docstring |
279 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_geoModificationGermany.test_get_county_names_and_ids |
Consider using enumerate instead of iterating with range and len |
290 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_geoModificationGermany.test_get_county_names_and_ids |
Consider using enumerate instead of iterating with range and len |
298 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_insert_county_names |
Missing function or method docstring |
306 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_check_for_all_counties |
Missing function or method docstring |
334 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_geoModificationGermany.test_check_for_all_counties |
Consider using enumerate instead of iterating with range and len |
348 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_countyid_to_stateid_map |
Missing function or method docstring |
352 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_countyid_to_stateid_map |
Use a generator instead 'all(countytostatestr in str(countytostate) for countytostatestr in self.countytostate_string)' |
359 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_countyid_to_stateid_map |
Use a generator instead 'all(countytostatestr in str(countytostate) for countytostatestr in self.countytostate_zfill_string)' |
364 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_stateid_to_countyids_map |
Missing function or method docstring |
369 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_stateid_to_countyids_map |
Use a generator instead 'all(statetocountystr in str(statetocounty) for statetocountystr in self.statetocounty_string)' |
379 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_stateid_to_countyids_map |
Use a generator instead 'all(statetocountystr in str(statetocounty) for statetocountystr in self.statetocounty_zfill_string)' |
383 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_governing_regions |
Missing function or method docstring |
393 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_official_county_table |
Missing function or method docstring |
398 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'if' keyword |
399 |
16 |
warning |
redundant-unittest-assert |
W1503 |
Test_geoModificationGermany.test_get_official_county_table |
Redundant use of assertFalse with constant value 'headers have changed.' |
401 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_nuts3_county_id_map |
Missing function or method docstring |
406 |
12 |
warning |
redefined-builtin |
W0622 |
Test_geoModificationGermany.test_get_nuts3_county_id_map |
Redefining built-in 'id' |
406 |
12 |
convention |
invalid-name |
C0103 |
Test_geoModificationGermany.test_get_nuts3_county_id_map |
Variable name "id" doesn't conform to snake_case naming style |
409 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_intermediateregion_IDs |
Missing function or method docstring |
409 |
4 |
convention |
invalid-name |
C0103 |
Test_geoModificationGermany.test_get_intermediateregion_IDs |
Method name "test_get_intermediateregion_IDs" doesn't conform to snake_case naming style |
426 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_intermediateregion_names |
Missing function or method docstring |
442 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.get_intermediateregion_to_name |
Missing function or method docstring |
455 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_intermediateregion_names_and_ids |
Missing function or method docstring |
461 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_geoModificationGermany.test_get_intermediateregion_names_and_ids |
Consider using enumerate instead of iterating with range and len |
474 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_geoModificationGermany.test_get_intermediateregion_names_and_ids |
Consider using enumerate instead of iterating with range and len |
485 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_countyid_to_intermediateregionid_map |
Missing function or method docstring |
489 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_countyid_to_intermediateregionid_map |
Use a generator instead 'all(countytoregionstr in str(countytoregion) for countytoregionstr in self.countytoregion_string)' |
500 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_countyid_to_intermediateregionid_map |
Use a generator instead 'all(countytoregionstr in str(countytoregion) for countytoregionstr in self.countytoregion_zfill_string)' |
510 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_get_intermediateregionid_to_countyids_map |
Missing function or method docstring |
515 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_intermediateregionid_to_countyids_map |
Use a generator instead 'all(regiontocountystr in str(regiontocounty) for regiontocountystr in self.regiontocounty_string)' |
532 |
24 |
refactor |
use-a-generator |
R1729 |
Test_geoModificationGermany.test_get_intermediateregionid_to_countyids_map |
Use a generator instead 'all(regiontocountystr in str(regiontocounty) for regiontocountystr in self.regiontocounty_zfill_string)' |
546 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_geoModificationGermany.test_merge_df_counties |
Missing function or method docstring |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "test_epidata_getCaseData" doesn't conform to snake_case naming style |
27 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
35 |
0 |
convention |
missing-class-docstring |
C0115 |
TestGetCaseData |
Missing class docstring |
51 |
9 |
warning |
unspecified-encoding |
W1514 |
TestGetCaseData |
Using open without explicitly specifying an encoding |
117 |
9 |
warning |
unspecified-encoding |
W1514 |
TestGetCaseData |
Using open without explicitly specifying an encoding |
128 |
9 |
warning |
unspecified-encoding |
W1514 |
TestGetCaseData |
Using open without explicitly specifying an encoding |
142 |
4 |
convention |
missing-function-docstring |
C0116 |
TestGetCaseData.write_case_data |
Missing function or method docstring |
146 |
13 |
warning |
unspecified-encoding |
W1514 |
TestGetCaseData.write_case_data |
Using open without explicitly specifying an encoding |
146 |
47 |
convention |
invalid-name |
C0103 |
TestGetCaseData.write_case_data |
Variable name "f" doesn't conform to snake_case naming style |
149 |
4 |
convention |
missing-function-docstring |
C0116 |
TestGetCaseData.write_case_data_arcgis |
Missing function or method docstring |
153 |
13 |
warning |
unspecified-encoding |
W1514 |
TestGetCaseData.write_case_data_arcgis |
Using open without explicitly specifying an encoding |
153 |
47 |
convention |
invalid-name |
C0103 |
TestGetCaseData.write_case_data_arcgis |
Variable name "f" doesn't conform to snake_case naming style |
156 |
4 |
convention |
missing-function-docstring |
C0116 |
TestGetCaseData.write_case_data_not_all_states |
Missing function or method docstring |
159 |
13 |
warning |
unspecified-encoding |
W1514 |
TestGetCaseData.write_case_data_not_all_states |
Using open without explicitly specifying an encoding |
159 |
47 |
convention |
invalid-name |
C0103 |
TestGetCaseData.write_case_data_not_all_states |
Variable name "f" doesn't conform to snake_case naming style |
163 |
4 |
convention |
missing-function-docstring |
C0116 |
TestGetCaseData.test_get_case_data |
Missing function or method docstring |
163 |
4 |
refactor |
too-many-locals |
R0914 |
TestGetCaseData.test_get_case_data |
Too many local variables (16/15) |
222 |
4 |
convention |
missing-function-docstring |
C0116 |
TestGetCaseData.test_get_case_data_split_berlin |
Missing function or method docstring |
222 |
4 |
refactor |
too-many-locals |
R0914 |
TestGetCaseData.test_get_case_data_split_berlin |
Too many local variables (24/15) |
222 |
4 |
refactor |
too-many-statements |
R0915 |
TestGetCaseData.test_get_case_data_split_berlin |
Too many statements (54/50) |
266 |
8 |
convention |
invalid-name |
C0103 |
TestGetCaseData.test_get_case_data_split_berlin |
Variable name "df" doesn't conform to snake_case naming style |
328 |
4 |
convention |
missing-function-docstring |
C0116 |
TestGetCaseData.test_get_case_data_moving_average |
Missing function or method docstring |
328 |
4 |
refactor |
too-many-locals |
R0914 |
TestGetCaseData.test_get_case_data_moving_average |
Too many local variables (22/15) |
328 |
4 |
refactor |
too-many-statements |
R0915 |
TestGetCaseData.test_get_case_data_moving_average |
Too many statements (56/50) |
328 |
48 |
warning |
unused-argument |
W0613 |
TestGetCaseData.test_get_case_data_moving_average |
Unused argument 'mock_file' |
476 |
4 |
convention |
missing-function-docstring |
C0116 |
TestGetCaseData.test_get_case_data_impute_dates |
Missing function or method docstring |
476 |
4 |
refactor |
too-many-locals |
R0914 |
TestGetCaseData.test_get_case_data_impute_dates |
Too many local variables (19/15) |
476 |
46 |
warning |
unused-argument |
W0613 |
TestGetCaseData.test_get_case_data_impute_dates |
Unused argument 'mock_file' |
559 |
4 |
convention |
missing-function-docstring |
C0116 |
TestGetCaseData.test_get_case_data_moving_average_and_split_berlin |
Missing function or method docstring |
559 |
4 |
refactor |
too-many-locals |
R0914 |
TestGetCaseData.test_get_case_data_moving_average_and_split_berlin |
Too many local variables (18/15) |
559 |
65 |
warning |
unused-argument |
W0613 |
TestGetCaseData.test_get_case_data_moving_average_and_split_berlin |
Unused argument 'mock_file' |
606 |
4 |
convention |
missing-function-docstring |
C0116 |
TestGetCaseData.test_get_case_data_all_dates_and_split_berlin |
Missing function or method docstring |
645 |
4 |
convention |
missing-function-docstring |
C0116 |
TestGetCaseData.test_no_raw |
Missing function or method docstring |
645 |
4 |
refactor |
too-many-locals |
R0914 |
TestGetCaseData.test_no_raw |
Too many local variables (21/15) |
683 |
8 |
convention |
invalid-name |
C0103 |
TestGetCaseData.test_no_raw |
Variable name "df" doesn't conform to snake_case naming style |
712 |
4 |
convention |
missing-function-docstring |
C0116 |
TestGetCaseData.test_check_for_completeness |
Missing function or method docstring |
717 |
4 |
convention |
missing-function-docstring |
C0116 |
TestGetCaseData.test_rep_date |
Missing function or method docstring |
747 |
4 |
convention |
missing-function-docstring |
C0116 |
TestGetCaseData.test_get_case_data_timeframe |
Missing function or method docstring |
747 |
4 |
refactor |
too-many-locals |
R0914 |
TestGetCaseData.test_get_case_data_timeframe |
Too many local variables (20/15) |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "test_epidata_getDataIntoPandasDataFrame" doesn't conform to snake_case naming style |
28 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
36 |
0 |
convention |
missing-class-docstring |
C0115 |
Test_getDataIntoPandasDataFrame |
Missing class docstring |
36 |
0 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame |
Class name "Test_getDataIntoPandasDataFrame" doesn't conform to PascalCase naming style |
59 |
9 |
warning |
unspecified-encoding |
W1514 |
Test_getDataIntoPandasDataFrame |
Using open without explicitly specifying an encoding |
67 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_getDataIntoPandasDataFrame.write_data |
Missing function or method docstring |
68 |
13 |
warning |
unspecified-encoding |
W1514 |
Test_getDataIntoPandasDataFrame.write_data |
Using open without explicitly specifying an encoding |
68 |
40 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.write_data |
Variable name "f" doesn't conform to snake_case naming style |
71 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_getDataIntoPandasDataFrame.test_cli_correct_default |
Missing function or method docstring |
71 |
4 |
refactor |
too-many-statements |
R0915 |
Test_getDataIntoPandasDataFrame.test_cli_correct_default |
Too many statements (70/50) |
156 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Missing function or method docstring |
167 |
50 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Variable name "cm" doesn't conform to snake_case naming style |
167 |
50 |
warning |
unused-variable |
W0612 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Unused variable 'cm' |
173 |
50 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Variable name "cm" doesn't conform to snake_case naming style |
181 |
50 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Variable name "cm" doesn't conform to snake_case naming style |
189 |
50 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Variable name "cm" doesn't conform to snake_case naming style |
198 |
50 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Variable name "cm" doesn't conform to snake_case naming style |
203 |
50 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_cli_correct_raise_exit |
Variable name "cm" doesn't conform to snake_case naming style |
206 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Missing function or method docstring |
222 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'read_data == True' should be 'read_data is True' if checking for the singleton value True, or 'read_data' if testing for truthiness |
225 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'no_raw == True' should be 'no_raw is True' if checking for the singleton value True, or 'no_raw' if testing for truthiness |
234 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'read_data == True' should be 'read_data is True' if checking for the singleton value True, or 'read_data' if testing for truthiness |
237 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'no_raw == True' should be 'no_raw is True' if checking for the singleton value True, or 'no_raw' if testing for truthiness |
255 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'read_data == True' should be 'read_data is True' if checking for the singleton value True, or 'read_data' if testing for truthiness |
258 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'impute_dates == True' should be 'impute_dates is True' if checking for the singleton value True, or 'impute_dates' if testing for truthiness |
259 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'split_berlin == True' should be 'split_berlin is True' if checking for the singleton value True, or 'split_berlin' if testing for truthiness |
261 |
19 |
convention |
singleton-comparison |
C0121 |
Test_getDataIntoPandasDataFrame.test_cli_set_different_values |
Comparison 'rep_date == False' should be 'rep_date is False' if checking for the singleton value False, or 'not rep_date' if testing for falsiness |
309 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_getDataIntoPandasDataFrame.test_append_filename |
Missing function or method docstring |
330 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_getDataIntoPandasDataFrame.test_check_dir |
Missing function or method docstring |
342 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Missing function or method docstring |
346 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "d1" doesn't conform to snake_case naming style |
347 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "d1" doesn't conform to snake_case naming style |
348 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "d2" doesn't conform to snake_case naming style |
349 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "d2" doesn't conform to snake_case naming style |
351 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "d" doesn't conform to snake_case naming style |
352 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "df" doesn't conform to snake_case naming style |
369 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "f" doesn't conform to snake_case naming style |
369 |
12 |
warning |
unspecified-encoding |
W1514 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Using open without explicitly specifying an encoding |
369 |
12 |
refactor |
consider-using-with |
R1732 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Consider using 'with' for resource-allocating operations |
390 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Variable name "f" doesn't conform to snake_case naming style |
390 |
12 |
warning |
unspecified-encoding |
W1514 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Using open without explicitly specifying an encoding |
390 |
12 |
refactor |
consider-using-with |
R1732 |
Test_getDataIntoPandasDataFrame.test_write_dataframe |
Consider using 'with' for resource-allocating operations |
400 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_getDataIntoPandasDataFrame.test_write_dataframe_error |
Missing function or method docstring |
404 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe_error |
Variable name "d1" doesn't conform to snake_case naming style |
405 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe_error |
Variable name "d1" doesn't conform to snake_case naming style |
406 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe_error |
Variable name "d2" doesn't conform to snake_case naming style |
407 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe_error |
Variable name "d2" doesn't conform to snake_case naming style |
409 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe_error |
Variable name "d" doesn't conform to snake_case naming style |
410 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_write_dataframe_error |
Variable name "df" doesn't conform to snake_case naming style |
424 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_getDataIntoPandasDataFrame.test_call_functions |
Missing function or method docstring |
424 |
4 |
refactor |
too-many-arguments |
R0913 |
Test_getDataIntoPandasDataFrame.test_call_functions |
Too many arguments (6/5) |
479 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_getDataIntoPandasDataFrame.test_get_file_read |
Missing function or method docstring |
490 |
8 |
convention |
invalid-name |
C0103 |
Test_getDataIntoPandasDataFrame.test_get_file_read |
Variable name "df" doesn't conform to snake_case naming style |
497 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_getDataIntoPandasDataFrame.test_get_file_empty_df |
Missing function or method docstring |
517 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_getDataIntoPandasDataFrame.test_get_file_user_input |
Missing function or method docstring |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
convention |
invalid-name |
C0103 |
|
Module name "test_epidata_modifyDataframeSeries" doesn't conform to snake_case naming style |
24 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
25 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
31 |
0 |
convention |
missing-class-docstring |
C0115 |
Test_modifyDataframeSeries |
Missing class docstring |
31 |
0 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries |
Class name "Test_modifyDataframeSeries" doesn't conform to PascalCase naming style |
107 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_modifyDataframeSeries.test_impute_and_reduce_df |
Missing function or method docstring |
113 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_impute_and_reduce_df |
Variable name "df" doesn't conform to snake_case naming style |
128 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (126/120) |
142 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (128/120) |
164 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_impute_and_reduce_df |
Variable name "df" doesn't conform to snake_case naming style |
180 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (126/120) |
194 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (131/120) |
222 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_impute_and_reduce_df |
Variable name "df" doesn't conform to snake_case naming style |
236 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/120) |
259 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (140/120) |
275 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_impute_and_reduce_df |
Variable name "df" doesn't conform to snake_case naming style |
326 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_impute_and_reduce_df |
Variable name "df" doesn't conform to snake_case naming style |
334 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_impute_and_reduce_df |
Variable name "df" doesn't conform to snake_case naming style |
349 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (148/120) |
363 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_modifyDataframeSeries.test_split_column_based_on_values |
Missing function or method docstring |
422 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_split_column_based_on_values |
Consider using enumerate instead of iterating with range and len |
426 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_modifyDataframeSeries.test_split_column_based_on_values_compute_cumsum |
Missing function or method docstring |
435 |
23 |
refactor |
unnecessary-comprehension |
R1721 |
Test_modifyDataframeSeries.test_split_column_based_on_values_compute_cumsum |
Unnecessary use of a comprehension, use list(range(0, 144)) instead. |
487 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_modifyDataframeSeries.test_extract_subframe_based_on_dates |
Missing function or method docstring |
505 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_modifyDataframeSeries.test_insert_column_by_map |
Missing function or method docstring |
509 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_insert_column_by_map |
Variable name "df" doesn't conform to snake_case naming style |
521 |
8 |
convention |
invalid-name |
C0103 |
Test_modifyDataframeSeries.test_insert_column_by_map |
Variable name "df" doesn't conform to snake_case naming style |
530 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_modifyDataframeSeries.test_extract_subframe_based_on_dates_single_date |
Missing function or method docstring |
537 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_modifyDataframeSeries.test_extract_subframe_based_on_dates_multiple_dates |
Missing function or method docstring |
544 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_modifyDataframeSeries.test_interval_mapping |
Missing function or method docstring |
544 |
4 |
refactor |
too-many-locals |
R0914 |
Test_modifyDataframeSeries.test_interval_mapping |
Too many local variables (21/15) |
616 |
4 |
convention |
missing-function-docstring |
C0116 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Missing function or method docstring |
616 |
4 |
refactor |
too-many-locals |
R0914 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Too many local variables (27/15) |
671 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
673 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
675 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
677 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
679 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
705 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
707 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |
709 |
8 |
convention |
consider-using-enumerate |
C0200 |
Test_modifyDataframeSeries.test_fit_age_group_intervals |
Consider using enumerate instead of iterating with range and len |