../pylintrc
(../pylintrc
)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' |
memilio.epidata.cleanData
(memilio/epidata/cleanData.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | invalid-name |
C0103 | Module name "cleanData" doesn't conform to snake_case naming style |
|
42 | 0 | refactor | too-many-arguments |
R0913 | clean_data | Too many arguments (13/5) |
42 | 0 | refactor | too-many-locals |
R0914 | clean_data | Too many local variables (29/15) |
42 | 0 | refactor | too-many-branches |
R0912 | clean_data | Too many branches (38/12) |
42 | 0 | refactor | too-many-statements |
R0915 | clean_data | Too many statements (95/50) |
74 | 4 | refactor | too-many-nested-blocks |
R1702 | clean_data | Too many nested blocks (6/5) |
74 | 4 | refactor | too-many-nested-blocks |
R1702 | clean_data | Too many nested blocks (6/5) |
74 | 4 | refactor | too-many-nested-blocks |
R1702 | clean_data | Too many nested blocks (6/5) |
memilio.epidata.customPlot
(memilio/epidata/customPlot.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | invalid-name |
C0103 | Module name "customPlot" doesn't conform to snake_case naming style |
|
24 | 0 | warning | unused-import |
W0611 | Unused import os |
|
26 | 0 | error | import-error |
E0401 | Unable to import 'matplotlib' |
|
27 | 0 | error | import-error |
E0401 | Unable to import 'matplotlib.pyplot' |
|
28 | 0 | error | import-error |
E0401 | Unable to import 'numpy' |
|
29 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
36 | 0 | refactor | too-many-arguments |
R0913 | plot_multiple_series | Too many arguments (16/5) |
36 | 0 | refactor | too-many-locals |
R0914 | plot_multiple_series | Too many local variables (19/15) |
37 | 8 | convention | invalid-name |
C0103 | plot_multiple_series | Argument name "x" doesn't conform to snake_case naming style |
37 | 11 | convention | invalid-name |
C0103 | plot_multiple_series | Argument name "y" doesn't conform to snake_case naming style |
50 | 77 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
57 | 9 | convention | invalid-name |
C0103 | plot_multiple_series | Variable name "ax" doesn't conform to snake_case naming style |
59 | 4 | convention | consider-using-enumerate |
C0200 | plot_multiple_series | Consider using enumerate instead of iterating with range and len |
memilio.epidata.defaultDict
(memilio/epidata/defaultDict.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | invalid-name |
C0103 | Module name "defaultDict" doesn't conform to snake_case naming style |
|
113 | 9 | warning | duplicate-key |
W0109 | Duplicate key 'date' in dictionary |
|
113 | 9 | warning | duplicate-key |
W0109 | Duplicate key 'Altersgruppe' in dictionary |
|
661 | 0 | convention | line-too-long |
C0301 | Line too long (122/120) |
|
664 | 0 | convention | line-too-long |
C0301 | Line too long (182/120) |
|
665 | 0 | convention | line-too-long |
C0301 | Line too long (141/120) |
|
666 | 0 | convention | line-too-long |
C0301 | Line too long (176/120) |
|
670 | 0 | convention | line-too-long |
C0301 | Line too long (156/120) |
|
672 | 0 | convention | line-too-long |
C0301 | Line too long (123/120) |
|
679 | 0 | convention | line-too-long |
C0301 | Line too long (249/120) |
|
681 | 0 | convention | line-too-long |
C0301 | Line too long (178/120) |
|
689 | 0 | convention | line-too-long |
C0301 | Line too long (135/120) |
memilio.epidata.geoModificationGermany
(memilio/epidata/geoModificationGermany.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | invalid-name |
C0103 | Module name "geoModificationGermany" doesn't conform to snake_case naming style |
|
28 | 0 | error | import-error |
E0401 | Unable to import 'numpy' |
|
29 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
92 | 27 | convention | invalid-name |
C0103 | insert_names_of_states | Argument name "df" doesn't conform to snake_case naming style |
130 | 4 | refactor | no-else-return |
R1705 | get_county_ids | Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
133 | 15 | refactor | unnecessary-comprehension |
R1721 | get_county_ids | Unnecessary use of a comprehension, use list(unique_geo_entities) instead. |
164 | 4 | refactor | no-else-return |
R1705 | get_county_names_and_ids | Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
179 | 8 | convention | invalid-name |
C0103 | insert_names_of_counties | Argument name "df" doesn't conform to snake_case naming style |
213 | 8 | refactor | no-else-return |
R1705 | check_for_all_counties | Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
225 | 0 | convention | line-too-long |
C0301 | Line too long (136/120) |
|
239 | 70 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
240 | 72 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
249 | 4 | refactor | no-else-return |
R1705 | get_countyid_to_stateid_map | Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
269 | 8 | warning | redefined-builtin |
W0622 | get_stateid_to_countyids_map | Redefining built-in 'id' |
269 | 8 | convention | invalid-name |
C0103 | get_stateid_to_countyids_map | Variable name "id" doesn't conform to snake_case naming style |
298 | 4 | refactor | no-else-return |
R1705 | get_governing_regions | Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
298 | 7 | convention | singleton-comparison |
C0121 | get_governing_regions | Comparison 'strict == False' should be 'strict is False' if checking for the singleton value False, or 'not strict' if testing for falsiness |
319 | 81 | convention | invalid-name |
C0103 | get_official_county_table | Variable name "p" doesn't conform to snake_case naming style |
358 | 15 | refactor | use-dict-literal |
R1735 | get_nuts3_county_id_map | Consider using {} instead of dict() |
381 | 0 | convention | superfluous-parens |
C0325 | Unnecessary parens after 'if' keyword |
|
381 | 8 | warning | using-constant-test |
W0125 | create_intermediateregion_level | Using a conditional statement with a constant value |
394 | 16 | refactor | unnecessary-comprehension |
R1721 | create_intermediateregion_level | Unnecessary use of a comprehension, use list(range(len(intermed_regions))) instead. |
402 | 8 | convention | consider-using-enumerate |
C0200 | create_intermediateregion_level | Consider using enumerate instead of iterating with range and len |
407 | 8 | warning | unused-variable |
W0612 | create_intermediateregion_level | Unused variable 'intermedregionids_to_countyids' |
551 | 0 | warning | dangerous-default-value |
W0102 | merge_df_counties | Dangerous default value [] as argument |
551 | 0 | refactor | too-many-arguments |
R0913 | merge_df_counties | Too many arguments (6/5) |
552 | 8 | convention | invalid-name |
C0103 | merge_df_counties | Argument name "df" doesn't conform to snake_case naming style |
589 | 11 | convention | unneeded-not |
C0113 | merge_df_counties | Consider changing "not dd.EngEng['idCounty'] in columns" to "dd.EngEng['idCounty'] not in columns" |
615 | 0 | warning | dangerous-default-value |
W0102 | merge_df_counties_all | Dangerous default value [] as argument |
616 | 8 | convention | invalid-name |
C0103 | merge_df_counties_all | Argument name "df" doesn't conform to snake_case naming style |
memilio.epidata.getCaseData
(memilio/epidata/getCaseData.py
)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) |
memilio.epidata.getCommuterMobility
(memilio/epidata/getCommuterMobility.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | invalid-name |
C0103 | Module name "getCommuterMobility" doesn't conform to snake_case naming style |
|
27 | 0 | error | import-error |
E0401 | Unable to import 'numpy' |
|
28 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
47 | 4 | refactor | no-else-return |
R1705 | verify_sorted | Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
54 | 0 | refactor | too-many-locals |
R0914 | assign_geographical_entities | Too many local variables (16/15) |
70 | 11 | convention | singleton-comparison |
C0121 | assign_geographical_entities | Comparison 'verify_sorted(countykey_list) == False' should be 'verify_sorted(countykey_list) is False' if checking for the singleton value False, or 'not verify_sorted(countykey_list)' if testing for falsiness |
76 | 0 | convention | line-too-long |
C0301 | Line too long (184/120) |
|
83 | 4 | convention | consider-using-enumerate |
C0200 | assign_geographical_entities | Consider using enumerate instead of iterating with range and len |
109 | 4 | convention | consider-using-enumerate |
C0200 | assign_geographical_entities | Consider using enumerate instead of iterating with range and len |
119 | 4 | convention | consider-using-enumerate |
C0200 | assign_geographical_entities | Consider using enumerate instead of iterating with range and len |
136 | 0 | refactor | too-many-locals |
R0914 | get_commuter_data | Too many local variables (58/15) |
136 | 0 | refactor | too-many-branches |
R0912 | get_commuter_data | Too many branches (40/12) |
136 | 0 | refactor | too-many-statements |
R0915 | get_commuter_data | Too many statements (140/50) |
159 | 0 | convention | line-too-long |
C0301 | Line too long (121/120) |
|
191 | 4 | convention | consider-using-enumerate |
C0200 | get_commuter_data | Consider using enumerate instead of iterating with range and len |
211 | 0 | convention | line-too-long |
C0301 | Line too long (142/120) |
|
239 | 41 | convention | invalid-name |
C0103 | get_commuter_data | Variable name "p" doesn't conform to snake_case naming style |
240 | 8 | convention | consider-using-enumerate |
C0200 | get_commuter_data | Consider using enumerate instead of iterating with range and len |
240 | 8 | refactor | too-many-nested-blocks |
R1702 | get_commuter_data | Too many nested blocks (7/5) |
240 | 8 | refactor | too-many-nested-blocks |
R1702 | get_commuter_data | Too many nested blocks (7/5) |
240 | 8 | refactor | too-many-nested-blocks |
R1702 | get_commuter_data | Too many nested blocks (7/5) |
240 | 8 | refactor | too-many-nested-blocks |
R1702 | get_commuter_data | Too many nested blocks (7/5) |
240 | 8 | refactor | too-many-nested-blocks |
R1702 | get_commuter_data | Too many nested blocks (8/5) |
240 | 8 | refactor | too-many-nested-blocks |
R1702 | get_commuter_data | Too many nested blocks (8/5) |
250 | 0 | convention | line-too-long |
C0301 | Line too long (122/120) |
|
253 | 20 | convention | consider-using-enumerate |
C0200 | get_commuter_data | Consider using enumerate instead of iterating with range and len |
345 | 0 | convention | line-too-long |
C0301 | Line too long (132/120) |
|
359 | 0 | convention | line-too-long |
C0301 | Line too long (132/120) |
|
381 | 0 | convention | line-too-long |
C0301 | Line too long (121/120) |
|
383 | 0 | convention | line-too-long |
C0301 | Line too long (121/120) |
|
383 | 30 | refactor | too-many-boolean-expressions |
R0916 | get_commuter_data | Too many boolean expressions in if statement (8/5) |
446 | 0 | convention | line-too-long |
C0301 | Line too long (124/120) |
|
501 | 0 | convention | missing-function-docstring |
C0116 | commuter_sanity_checks | Missing function or method docstring |
501 | 27 | convention | invalid-name |
C0103 | commuter_sanity_checks | Argument name "df" doesn't conform to snake_case naming style |
511 | 0 | refactor | too-many-arguments |
R0913 | get_neighbors_mobility | Too many arguments (7/5) |
520 | 77 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
525 | 80 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
528 | 78 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
539 | 78 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
574 | 0 | refactor | too-many-arguments |
R0913 | get_neighbors_mobility_all | Too many arguments (6/5) |
583 | 77 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
586 | 80 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
589 | 78 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
603 | 8 | warning | redefined-builtin |
W0622 | get_neighbors_mobility_all | Redefining built-in 'id' |
603 | 8 | convention | invalid-name |
C0103 | get_neighbors_mobility_all | Variable name "id" doesn't conform to snake_case naming style |
memilio.epidata.getDIVIData
(memilio/epidata/getDIVIData.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | invalid-name |
C0103 | Module name "getDIVIData" doesn't conform to snake_case naming style |
|
42 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
70 | 0 | convention | line-too-long |
C0301 | Line too long (122/120) |
|
96 | 0 | refactor | too-many-arguments |
R0913 | preprocess_divi_data | Too many arguments (6/5) |
111 | 0 | convention | line-too-long |
C0301 | Line too long (126/120) |
|
112 | 0 | convention | line-too-long |
C0301 | Line too long (187/120) |
|
140 | 4 | convention | invalid-name |
C0103 | preprocess_divi_data | Variable name "df" doesn't conform to snake_case naming style |
150 | 12 | warning | raise-missing-from |
W0707 | preprocess_divi_data | Consider explicitly re-raising using 'except BaseException as exc' and 'raise gd.DataError("Time data can't be transformed to intended format") from exc' |
157 | 8 | convention | invalid-name |
C0103 | preprocess_divi_data | Variable name "df" doesn't conform to snake_case naming style |
172 | 4 | convention | invalid-name |
C0103 | preprocess_divi_data | Variable name "df" doesn't conform to snake_case naming style |
177 | 20 | convention | invalid-name |
C0103 | write_divi_data | Argument name "df" doesn't conform to snake_case naming style |
177 | 0 | refactor | too-many-arguments |
R0913 | write_divi_data | Too many arguments (6/5) |
197 | 0 | convention | line-too-long |
C0301 | Line too long (140/120) |
|
198 | 0 | convention | line-too-long |
C0301 | Line too long (188/120) |
|
248 | 0 | refactor | too-many-arguments |
R0913 | get_divi_data | Too many arguments (7/5) |
261 | 92 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
279 | 0 | convention | line-too-long |
C0301 | Line too long (135/120) |
|
323 | 28 | convention | invalid-name |
C0103 | divi_data_sanity_checks | Argument name "df" doesn't conform to snake_case naming style |
memilio.epidata.getDataIntoPandasDataFrame
(memilio/epidata/getDataIntoPandasDataFrame.py
)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 |
memilio.epidata.getHospitalizationData
(memilio/epidata/getHospitalizationData.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | invalid-name |
C0103 | Module name "getHospitalizationData" doesn't conform to snake_case naming style |
|
32 | 0 | error | import-error |
E0401 | Unable to import 'numpy' |
|
33 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
43 | 25 | convention | invalid-name |
C0103 | hospit_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-branches |
R0912 | get_hospitailzations_per_day | Too many branches (17/12) |
76 | 0 | convention | line-too-long |
C0301 | Line too long (132/120) |
|
89 | 4 | refactor | too-many-nested-blocks |
R1702 | get_hospitailzations_per_day | Too many nested blocks (6/5) |
89 | 4 | refactor | too-many-nested-blocks |
R1702 | get_hospitailzations_per_day | Too many nested blocks (6/5) |
128 | 4 | convention | consider-using-enumerate |
C0200 | get_hospitailzations_per_day | Consider using enumerate instead of iterating with range and len |
137 | 0 | refactor | too-many-arguments |
R0913 | get_hospitalization_data | Too many arguments (7/5) |
137 | 0 | refactor | too-many-locals |
R0914 | get_hospitalization_data | Too many local variables (27/15) |
143 | 29 | warning | unused-argument |
W0613 | get_hospitalization_data | Unused argument 'moving_average' |
165 | 0 | convention | line-too-long |
C0301 | Line too long (135/120) |
|
167 | 0 | convention | line-too-long |
C0301 | Line too long (127/120) |
|
179 | 0 | convention | line-too-long |
C0301 | Line too long (168/120) |
|
184 | 7 | convention | singleton-comparison |
C0121 | get_hospitalization_data | Comparison 'conf.checks == True' should be 'conf.checks is True' if checking for the singleton value True, or 'conf.checks' if testing for truthiness |
memilio.epidata.getJHData
(memilio/epidata/getJHData.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | invalid-name |
C0103 | Module name "getJHData" doesn't conform to snake_case naming style |
|
29 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
39 | 0 | refactor | too-many-arguments |
R0913 | get_jh_data | Too many arguments (6/5) |
39 | 0 | refactor | too-many-locals |
R0914 | get_jh_data | Too many local variables (26/15) |
44 | 16 | warning | unused-argument |
W0613 | get_jh_data | Unused argument 'impute_dates' |
64 | 0 | convention | line-too-long |
C0301 | Line too long (156/120) |
|
65 | 0 | convention | line-too-long |
C0301 | Line too long (127/120) |
|
80 | 4 | convention | invalid-name |
C0103 | get_jh_data | Variable name "df" doesn't conform to snake_case naming style |
91 | 4 | convention | invalid-name |
C0103 | get_jh_data | Variable name "df" doesn't conform to snake_case naming style |
119 | 4 | convention | invalid-name |
C0103 | get_jh_data | Variable name "gb" doesn't conform to snake_case naming style |
125 | 4 | convention | consider-using-dict-items |
C0206 | get_jh_data | Consider iterating with .items() |
138 | 4 | convention | invalid-name |
C0103 | get_jh_data | Variable name "dfD" doesn't conform to snake_case naming style |
140 | 4 | convention | invalid-name |
C0103 | get_jh_data | Variable name "gb" doesn't conform to snake_case naming style |
memilio.epidata.getNPIData
(memilio/epidata/getNPIData.py
)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' |
memilio.epidata.getPopulationData
(memilio/epidata/getPopulationData.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | invalid-name |
C0103 | Module name "getPopulationData" doesn't conform to snake_case naming style |
|
26 | 0 | warning | unused-import |
W0611 | Unused import warnings |
|
28 | 0 | convention | wrong-import-order |
C0411 | standard import "import os" should be placed before "import requests" |
|
29 | 0 | convention | wrong-import-order |
C0411 | standard import "import io" should be placed before "import requests" |
|
31 | 0 | error | import-error |
E0401 | Unable to import 'numpy' |
|
32 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
51 | 0 | convention | line-too-long |
C0301 | Line too long (137/120) |
|
53 | 18 | warning | missing-timeout |
W3101 | read_population_data | Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely |
60 | 0 | convention | line-too-long |
C0301 | Line too long (121/120) |
|
61 | 14 | warning | missing-timeout |
W3101 | read_population_data | Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely |
67 | 88 | warning | unused-argument |
W0613 | export_population_dataframe | Unused argument 'merge_eisenach' |
144 | 59 | convention | invalid-name |
C0103 | assign_population_data | Argument name "idCounty_idx" doesn't conform to snake_case naming style |
147 | 76 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
149 | 36 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
251 | 7 | convention | singleton-comparison |
C0121 | fetch_population_data | Comparison 'read_data == True' should be 'read_data is True' if checking for the singleton value True, or 'read_data' if testing for truthiness |
289 | 38 | convention | singleton-comparison |
C0121 | preprocess_population_data | Comparison 'df_pop_raw[dd.EngEng['idCounty']].str.contains('__') == True' should be 'df_pop_raw[dd.EngEng['idCounty']].str.contains('__') is True' if checking for the singleton value True, or 'bool(df_pop_raw[dd.EngEng['idCounty']].str.contains('__'))' if testing for truthiness |
292 | 4 | convention | invalid-name |
C0103 | preprocess_population_data | Variable name "idCounty_idx" doesn't conform to snake_case naming style |
301 | 4 | convention | consider-using-enumerate |
C0200 | preprocess_population_data | Consider using enumerate instead of iterating with range and len |
360 | 56 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
361 | 28 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
362 | 48 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
368 | 76 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
370 | 18 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
372 | 80 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
373 | 49 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
374 | 77 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
memilio.epidata.getSimulationData
(memilio/epidata/getSimulationData.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | invalid-name |
C0103 | Module name "getSimulationData" doesn't conform to snake_case naming style |
|
39 | 0 | convention | missing-function-docstring |
C0116 | print_error | Missing function or method docstring |
46 | 0 | refactor | too-many-arguments |
R0913 | get_simulation_data | Too many arguments (10/5) |
46 | 0 | refactor | too-many-locals |
R0914 | get_simulation_data | Too many local variables (20/15) |
72 | 0 | convention | line-too-long |
C0301 | Line too long (135/120) |
|
75 | 0 | convention | line-too-long |
C0301 | Line too long (135/120) |
|
76 | 0 | convention | line-too-long |
C0301 | Line too long (135/120) |
|
77 | 0 | convention | line-too-long |
C0301 | Line too long (145/120) |
|
102 | 11 | warning | broad-except |
W0703 | get_simulation_data | Catching too general exception Exception |
108 | 11 | warning | broad-except |
W0703 | get_simulation_data | Catching too general exception Exception |
114 | 11 | warning | broad-except |
W0703 | get_simulation_data | Catching too general exception Exception |
120 | 11 | warning | broad-except |
W0703 | get_simulation_data | Catching too general exception Exception |
memilio.epidata.getTestingData
(memilio/epidata/getTestingData.py
)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__ |
memilio.epidata.getVaccinationData
(memilio/epidata/getVaccinationData.py
)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) |
memilio.epidata.modifyDataframeSeries
(memilio/epidata/modifyDataframeSeries.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | invalid-name |
C0103 | Module name "modifyDataframeSeries" doesn't conform to snake_case naming style |
|
28 | 0 | error | import-error |
E0401 | Unable to import 'numpy' |
|
29 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
38 | 0 | refactor | too-many-arguments |
R0913 | impute_and_reduce_df | Too many arguments (8/5) |
38 | 0 | refactor | too-many-locals |
R0914 | impute_and_reduce_df | Too many local variables (24/15) |
38 | 0 | refactor | too-many-branches |
R0912 | impute_and_reduce_df | Too many branches (25/12) |
38 | 0 | refactor | too-many-statements |
R0915 | impute_and_reduce_df | Too many statements (79/50) |
45 | 0 | convention | line-too-long |
C0301 | Line too long (153/120) |
|
49 | 0 | convention | line-too-long |
C0301 | Line too long (127/120) |
|
50 | 0 | convention | line-too-long |
C0301 | Line too long (127/120) |
|
51 | 0 | convention | line-too-long |
C0301 | Line too long (141/120) |
|
69 | 7 | convention | singleton-comparison |
C0121 | impute_and_reduce_df | Comparison 'isinstance(first_date, str) == True' should be 'isinstance(first_date, str) is True' if checking for the singleton value True, or 'isinstance(first_date, str)' if testing for truthiness |
71 | 7 | convention | singleton-comparison |
C0121 | impute_and_reduce_df | Comparison 'isinstance(last_date, str) == True' should be 'isinstance(last_date, str) is True' if checking for the singleton value True, or 'isinstance(last_date, str)' if testing for truthiness |
78 | 4 | warning | bare-except |
W0702 | impute_and_reduce_df | No exception type(s) specified |
85 | 9 | convention | singleton-comparison |
C0121 | impute_and_reduce_df | Comparison 'isinstance(min_date, str) == True' should be 'isinstance(min_date, str) is True' if checking for the singleton value True, or 'isinstance(min_date, str)' if testing for truthiness |
89 | 9 | convention | singleton-comparison |
C0121 | impute_and_reduce_df | Comparison 'isinstance(max_date, str) == True' should be 'isinstance(max_date, str) is True' if checking for the singleton value True, or 'isinstance(max_date, str)' if testing for truthiness |
95 | 4 | warning | bare-except |
W0702 | impute_and_reduce_df | No exception type(s) specified |
108 | 8 | refactor | consider-using-min-builtin |
R1730 | impute_and_reduce_df | Consider using 'first_date = min(first_date, min_date_to_use)' instead of unnecessary if block |
110 | 8 | refactor | consider-using-max-builtin |
R1731 | impute_and_reduce_df | Consider using 'last_date = max(last_date, max_date_to_use)' instead of unnecessary if block |
211 | 0 | refactor | too-many-arguments |
R0913 | split_column_based_on_values | Too many arguments (6/5) |
215 | 0 | convention | line-too-long |
C0301 | Line too long (146/120) |
|
219 | 0 | convention | line-too-long |
C0301 | Line too long (139/120) |
|
246 | 4 | convention | consider-using-enumerate |
C0200 | split_column_based_on_values | Consider using enumerate instead of iterating with range and len |
265 | 36 | convention | invalid-name |
C0103 | extract_subframe_based_on_dates | Argument name "df" doesn't conform to snake_case naming style |
291 | 25 | convention | invalid-name |
C0103 | insert_column_by_map | Argument name "df" doesn't conform to snake_case naming style |
291 | 55 | warning | redefined-builtin |
W0622 | insert_column_by_map | Redefining built-in 'map' |
344 | 0 | convention | superfluous-parens |
C0325 | Unnecessary parens after 'if' keyword |
|
348 | 0 | convention | superfluous-parens |
C0325 | Unnecessary parens after 'if' keyword |
|
377 | 8 | refactor | no-else-continue |
R1724 | create_intervals_mapping | Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it |
385 | 0 | refactor | too-many-locals |
R0914 | fit_age_group_intervals | Too many local variables (27/15) |
385 | 0 | refactor | too-many-branches |
R0912 | fit_age_group_intervals | Too many branches (35/12) |
385 | 0 | refactor | too-many-statements |
R0915 | fit_age_group_intervals | Too many statements (95/50) |
388 | 0 | convention | line-too-long |
C0301 | Line too long (125/120) |
|
406 | 0 | convention | line-too-long |
C0301 | Line too long (132/120) |
|
407 | 69 | convention | trailing-whitespace |
C0303 | Trailing whitespace |
|
408 | 0 | convention | line-too-long |
C0301 | Line too long (131/120) |
|
461 | 0 | convention | line-too-long |
C0301 | Line too long (140/120) |
|
507 | 0 | convention | line-too-long |
C0301 | Line too long (145/120) |
memilio.epidata.progress_indicator
(memilio/epidata/progress_indicator.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | missing-module-docstring |
C0114 | Missing module docstring |
|
28 | 0 | refactor | too-many-instance-attributes |
R0902 | ProgressIndicator | Too many instance attributes (8/7) |
68 | 0 | convention | superfluous-parens |
C0325 | Unnecessary parens after 'assert' keyword |
|
109 | 16 | convention | import-outside-toplevel |
C0415 | ProgressIndicator._console_setup | Import outside toplevel (ctypes.windll) |
117 | 0 | convention | superfluous-parens |
C0325 | Unnecessary parens after 'except' keyword |
|
209 | 4 | refactor | too-many-arguments |
R0913 | Dots.__init__ | Too many arguments (6/5) |
225 | 0 | convention | superfluous-parens |
C0325 | Unnecessary parens after 'assert' keyword |
|
229 | 20 | convention | invalid-name |
C0103 | Dots.__init__._dots | Variable name "n" doesn't conform to snake_case naming style |
239 | 4 | refactor | too-many-arguments |
R0913 | Percentage.__init__ | Too many arguments (6/5) |
318 | 8 | convention | invalid-name |
C0103 | Percentage._bar | Variable name "w" doesn't conform to snake_case naming style |
319 | 8 | convention | invalid-name |
C0103 | Percentage._bar | Variable name "n" doesn't conform to snake_case naming style |
memilio.epidata.transformMobilityData
(memilio/epidata/transformMobilityData.py
)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 "transformMobilityData" doesn't conform to snake_case naming style |
|
22 | 0 | error | import-error |
E0401 | Unable to import 'numpy' |
|
23 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
25 | 0 | warning | unused-import |
W0611 | Unused defaultDict imported from memilio.epidata as dd |
|
33 | 0 | convention | invalid-name |
C0103 | getMobilityFromFile | Function name "getMobilityFromFile" doesn't conform to snake_case naming style |
48 | 0 | convention | invalid-name |
C0103 | createFederalStatesMobility | Function name "createFederalStatesMobility" doesn't conform to snake_case naming style |
59 | 0 | convention | line-too-long |
C0301 | Line too long (135/120) |
|
59 | 4 | refactor | no-else-return |
R1705 | createFederalStatesMobility | Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
61 | 8 | convention | invalid-name |
C0103 | createFederalStatesMobility | Variable name "countyIDs" doesn't conform to snake_case naming style |
62 | 8 | convention | invalid-name |
C0103 | createFederalStatesMobility | Variable name "stateIDs" doesn't conform to snake_case naming style |
64 | 8 | convention | invalid-name |
C0103 | createFederalStatesMobility | Variable name "stateID_to_countyID" doesn't conform to snake_case naming style |
100 | 0 | convention | invalid-name |
C0103 | updateMobility2022 | Function name "updateMobility2022" doesn't conform to snake_case naming style |
111 | 4 | refactor | no-else-return |
R1705 | updateMobility2022 | Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
memilio.epidata.transformWeatherData
(memilio/epidata/transformWeatherData.py
)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 |
|
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 |
memilio.epidata_test.test_epidata_cleandata
(memilio/epidata_test/test_epidata_cleandata.py
)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 |
|
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_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_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.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.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 # activate CoW for more predictable behaviour of pandas DataFrames |
|
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.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 # 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): |
|
1 | 0 | refactor | duplicate-code |
R0801 | Similar lines in 2 files ==memilio.epidata.getCommuterMobility:[26:32] ==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.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.getDIVIData:[41:74] ==memilio.epidata.transformWeatherData:[24:32] 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 # activate CoW for more predictable behaviour of pandas DataFrames |
|
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 def transformWeatherData(read_data=dd.defaultDict['read_data'], file_format=dd.defaultDict['file_format'], out_folder=dd.defaultDict['out_folder'], start_date=dd.defaultDict['start_date'], end_date=dd.defaultDict['end_date'], moving_average=dd.defaultDict['moving_average'], merge_berlin=True, merge_eisenach=False, **kwargs ): """! ... @param file_format File format which is used for writing the data. Default defined in defaultDict. @param out_folder Path to folder where data is written in folder out_folder/Germany. @param start_date [Default = '', taken from read data] Start date of stored data frames. @param end_date [Default = '', taken from read data] End date of stored data frames. @param moving_average 0 [Default] or Number > 0. Defines the number of days for which a centered moving average is computed. """ |
|
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 transformWeatherData(read_data=dd.defaultDict['read_data'], file_format=dd.defaultDict['file_format'], out_folder=dd.defaultDict['out_folder'], start_date=dd.defaultDict['start_date'], end_date=dd.defaultDict['end_date'], moving_average=dd.defaultDict['moving_average'], merge_berlin=True, merge_eisenach=False, **kwargs ): """! ... @param file_format File format which is used for writing the data. Default defined in defaultDict. @param out_folder Path to folder where data is written in folder out_folder/Germany. @param start_date [Default = '', taken from read data] Start date of stored data frames. @param end_date [Default = '', taken from read data] End date of stored data frames. @param moving_average 0 [Default] or Number > 0. Defines the number of days for which a centered moving average is computed. """ 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.transformMobilityData:[21:29] ==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 # activate CoW for more predictable behaviour of pandas DataFrames |
|
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' |
memilio.epidata_test.test_epidata_customPlot
(memilio/epidata_test/test_epidata_customPlot.py
)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_customPlot" doesn't conform to snake_case naming style |
|
28 | 0 | convention | missing-class-docstring |
C0115 | Test_customPlot | Missing class docstring |
28 | 0 | convention | invalid-name |
C0103 | Test_customPlot | Class name "Test_customPlot" doesn't conform to PascalCase naming style |
36 | 4 | convention | missing-function-docstring |
C0116 | Test_customPlot.test_plot_list | Missing function or method docstring |
40 | 16 | refactor | unnecessary-comprehension |
R1721 | Test_customPlot.test_plot_list | Unnecessary use of a comprehension, use list(range(100)) instead. |
46 | 0 | convention | line-too-long |
C0301 | Line too long (127/120) |
memilio.epidata_test.test_epidata_defaultDict
(memilio/epidata_test/test_epidata_defaultDict.py
)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_defaultDict" doesn't conform to snake_case naming style |
|
26 | 0 | convention | missing-class-docstring |
C0115 | Test_defaultDict | Missing class docstring |
26 | 0 | convention | invalid-name |
C0103 | Test_defaultDict | Class name "Test_defaultDict" doesn't conform to PascalCase naming style |
59 | 4 | convention | missing-function-docstring |
C0116 | Test_defaultDict.test_invert_dict | Missing function or method docstring |
62 | 8 | convention | consider-using-dict-items |
C0206 | Test_defaultDict.test_invert_dict | Consider iterating with .items() |
62 | 22 | convention | consider-iterating-dictionary |
C0201 | Test_defaultDict.test_invert_dict | Consider iterating the dictionary directly instead of calling .keys() |
71 | 8 | convention | consider-using-dict-items |
C0206 | Test_defaultDict.test_invert_dict | Consider iterating with .items() |
71 | 28 | convention | consider-iterating-dictionary |
C0201 | Test_defaultDict.test_invert_dict | Consider iterating the dictionary directly instead of calling .keys() |
78 | 4 | convention | missing-function-docstring |
C0116 | Test_defaultDict.test_uniqueness | Missing function or method docstring |
memilio.epidata_test.test_epidata_geoModificationGermany
(memilio/epidata_test/test_epidata_geoModificationGermany.py
)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 |
memilio.epidata_test.test_epidata_getCaseData
(memilio/epidata_test/test_epidata_getCaseData.py
)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) |
memilio.epidata_test.test_epidata_getCommuterMobility
(memilio/epidata_test/test_epidata_getCommuterMobility.py
)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_getCommuterMobility" doesn't conform to snake_case naming style |
|
24 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
25 | 0 | convention | wrong-import-order |
C0411 | standard import "from unittest.mock import patch" should be placed before "import pandas as pd" |
|
33 | 0 | convention | missing-class-docstring |
C0115 | TestCommuterMobility | Missing class docstring |
68 | 9 | warning | unspecified-encoding |
W1514 | TestCommuterMobility | Using open without explicitly specifying an encoding |
75 | 4 | convention | missing-function-docstring |
C0116 | TestCommuterMobility.test_verify_sorted | Missing function or method docstring |
78 | 8 | convention | invalid-name |
C0103 | TestCommuterMobility.test_verify_sorted | Variable name "Errorcall" doesn't conform to snake_case naming style |
82 | 4 | convention | missing-function-docstring |
C0116 | TestCommuterMobility.test_assign_geographical_entities | Missing function or method docstring |
87 | 20 | convention | consider-iterating-dictionary |
C0201 | TestCommuterMobility.test_assign_geographical_entities | Consider iterating the dictionary directly instead of calling .keys() |
96 | 20 | convention | consider-iterating-dictionary |
C0201 | TestCommuterMobility.test_assign_geographical_entities | Consider iterating the dictionary directly instead of calling .keys() |
117 | 8 | convention | invalid-name |
C0103 | TestCommuterMobility.test_assign_geographical_entities | Variable name "Errorcall" doesn't conform to snake_case naming style |
122 | 33 | warning | unused-argument |
W0613 | TestCommuterMobility.test_commuter_data | Unused argument 'mock_input' |
122 | 45 | warning | unused-argument |
W0613 | TestCommuterMobility.test_commuter_data | Unused argument 'mock_popul' |
156 | 4 | convention | missing-function-docstring |
C0116 | TestCommuterMobility.test_get_neighbors_mobility | Missing function or method docstring |
156 | 42 | warning | unused-argument |
W0613 | TestCommuterMobility.test_get_neighbors_mobility | Unused argument 'mock_print' |
156 | 54 | warning | unused-argument |
W0613 | TestCommuterMobility.test_get_neighbors_mobility | Unused argument 'mock_input' |
156 | 66 | warning | unused-argument |
W0613 | TestCommuterMobility.test_get_neighbors_mobility | Unused argument 'mock_popul' |
memilio.epidata_test.test_epidata_getDataIntoPandasDataFrame
(memilio/epidata_test/test_epidata_getDataIntoPandasDataFrame.py
)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 |
memilio.epidata_test.test_epidata_getHospitalizationData
(memilio/epidata_test/test_epidata_getHospitalizationData.py
)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_getHospitalizationData" 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' |
|
33 | 0 | convention | missing-class-docstring |
C0115 | TestGetHospitalizationData | Missing class docstring |
56 | 12 | warning | bare-except |
W0702 | TestGetHospitalizationData | No exception type(s) specified |
71 | 12 | warning | bare-except |
W0702 | TestGetHospitalizationData | No exception type(s) specified |
78 | 4 | convention | missing-function-docstring |
C0116 | TestGetHospitalizationData.test_divi_data_hospit_sanity_checks | Missing function or method docstring |
81 | 8 | convention | invalid-name |
C0103 | TestGetHospitalizationData.test_divi_data_hospit_sanity_checks | Variable name "df" doesn't conform to snake_case naming style |
89 | 8 | convention | invalid-name |
C0103 | TestGetHospitalizationData.test_divi_data_hospit_sanity_checks | Variable name "df" doesn't conform to snake_case naming style |
104 | 8 | convention | invalid-name |
C0103 | TestGetHospitalizationData.test_divi_data_hospit_sanity_checks | Variable name "df" doesn't conform to snake_case naming style |
119 | 4 | convention | missing-function-docstring |
C0116 | TestGetHospitalizationData.test_get_hospitalization_data | Missing function or method docstring |
119 | 44 | warning | unused-argument |
W0613 | TestGetHospitalizationData.test_get_hospitalization_data | Unused argument 'mock_file' |
119 | 55 | warning | unused-argument |
W0613 | TestGetHospitalizationData.test_get_hospitalization_data | Unused argument 'mock_in' |
127 | 4 | convention | missing-function-docstring |
C0116 | TestGetHospitalizationData.test_compute_hospitailzations_per_day | Missing function or method docstring |
148 | 16 | warning | bare-except |
W0702 | TestGetHospitalizationData.test_compute_hospitailzations_per_day | No exception type(s) specified |
memilio.epidata_test.test_epidata_getNPIData
(memilio/epidata_test/test_epidata_getNPIData.py
)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_getNPIData" doesn't conform to snake_case naming style |
|
22 | 0 | convention | wrong-import-order |
C0411 | standard import "from unittest.mock import patch" should be placed before "from pyfakefs import fake_filesystem_unittest" |
|
24 | 0 | convention | wrong-import-order |
C0411 | standard import "import os" should be placed before "from pyfakefs import fake_filesystem_unittest" |
|
25 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
26 | 0 | error | import-error |
E0401 | Unable to import 'numpy' |
|
28 | 0 | convention | wrong-import-order |
C0411 | standard import "from datetime import date" should be placed before "from pyfakefs import fake_filesystem_unittest" |
|
35 | 0 | convention | missing-class-docstring |
C0115 | TestGetNPIData | Missing class docstring |
130 | 4 | convention | missing-function-docstring |
C0116 | TestGetNPIData.test_activate_npis_based_on_threshold | Missing function or method docstring |
178 | 4 | convention | missing-function-docstring |
C0116 | TestGetNPIData.test_drop_codes_and_categories | Missing function or method docstring |
238 | 0 | convention | line-too-long |
C0301 | Line too long (126/120) |
|
243 | 0 | convention | line-too-long |
C0301 | Line too long (122/120) |
|
285 | 4 | convention | missing-function-docstring |
C0116 | TestGetNPIData.test_get_npi_data | Missing function or method docstring |
memilio.epidata_test.test_epidata_get_divi_data
(memilio/epidata_test/test_epidata_get_divi_data.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | missing-module-docstring |
C0114 | Missing module docstring |
|
25 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
32 | 0 | convention | missing-class-docstring |
C0115 | TestGetDiviData | Missing class docstring |
52 | 4 | convention | missing-function-docstring |
C0116 | TestGetDiviData.gdd_calls | Missing function or method docstring |
70 | 4 | convention | missing-function-docstring |
C0116 | TestGetDiviData.test_get_divi_data_prints | Missing function or method docstring |
86 | 4 | convention | missing-function-docstring |
C0116 | TestGetDiviData.test_get_divi_data | Missing function or method docstring |
86 | 33 | warning | unused-argument |
W0613 | TestGetDiviData.test_get_divi_data | Unused argument 'mock_print' |
90 | 8 | convention | invalid-name |
C0103 | TestGetDiviData.test_get_divi_data | Variable name "df" doesn't conform to snake_case naming style |
126 | 4 | convention | missing-function-docstring |
C0116 | TestGetDiviData.test_gdd_ma | Missing function or method docstring |
126 | 26 | warning | unused-argument |
W0613 | TestGetDiviData.test_gdd_ma | Unused argument 'mock_print' |
130 | 8 | convention | invalid-name |
C0103 | TestGetDiviData.test_gdd_ma | Variable name "df" doesn't conform to snake_case naming style |
166 | 4 | convention | missing-function-docstring |
C0116 | TestGetDiviData.test_gdd_all_dates | Missing function or method docstring |
166 | 33 | warning | unused-argument |
W0613 | TestGetDiviData.test_gdd_all_dates | Unused argument 'mock_print' |
170 | 8 | convention | invalid-name |
C0103 | TestGetDiviData.test_gdd_all_dates | Variable name "df" doesn't conform to snake_case naming style |
206 | 4 | convention | missing-function-docstring |
C0116 | TestGetDiviData.test_divi_data_sanity_checks | Missing function or method docstring |
206 | 43 | warning | unused-argument |
W0613 | TestGetDiviData.test_divi_data_sanity_checks | Unused argument 'mock_file' |
210 | 8 | convention | invalid-name |
C0103 | TestGetDiviData.test_divi_data_sanity_checks | Variable name "df" doesn't conform to snake_case naming style |
218 | 8 | convention | invalid-name |
C0103 | TestGetDiviData.test_divi_data_sanity_checks | Variable name "df" doesn't conform to snake_case naming style |
239 | 8 | convention | invalid-name |
C0103 | TestGetDiviData.test_divi_data_sanity_checks | Variable name "df" doesn't conform to snake_case naming style |
memilio.epidata_test.test_epidata_get_jh_data
(memilio/epidata_test/test_epidata_get_jh_data.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | missing-module-docstring |
C0114 | Missing module docstring |
|
25 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
33 | 0 | convention | missing-class-docstring |
C0115 | TestGetJHData | Missing class docstring |
81 | 4 | convention | missing-function-docstring |
C0116 | TestGetJHData.write_jh_data | Missing function or method docstring |
85 | 13 | warning | unspecified-encoding |
W1514 | TestGetJHData.write_jh_data | Using open without explicitly specifying an encoding |
85 | 45 | convention | invalid-name |
C0103 | TestGetJHData.write_jh_data | Variable name "f" doesn't conform to snake_case naming style |
89 | 4 | convention | missing-function-docstring |
C0116 | TestGetJHData.test_get_JH_Data | Missing function or method docstring |
89 | 4 | convention | invalid-name |
C0103 | TestGetJHData.test_get_JH_Data | Method name "test_get_JH_Data" doesn't conform to snake_case naming style |
89 | 4 | refactor | too-many-locals |
R0914 | TestGetJHData.test_get_JH_Data | Too many local variables (19/15) |
89 | 4 | refactor | too-many-statements |
R0915 | TestGetJHData.test_get_JH_Data | Too many statements (61/50) |
89 | 31 | warning | unused-argument |
W0613 | TestGetJHData.test_get_JH_Data | Unused argument 'mockin' |
140 | 8 | convention | invalid-name |
C0103 | TestGetJHData.test_get_JH_Data | Variable name "df" doesn't conform to snake_case naming style |
152 | 8 | convention | invalid-name |
C0103 | TestGetJHData.test_get_JH_Data | Variable name "df" doesn't conform to snake_case naming style |
167 | 8 | convention | invalid-name |
C0103 | TestGetJHData.test_get_JH_Data | Variable name "df" doesn't conform to snake_case naming style |
204 | 8 | convention | invalid-name |
C0103 | TestGetJHData.test_get_JH_Data | Variable name "df" doesn't conform to snake_case naming style |
225 | 4 | convention | missing-function-docstring |
C0116 | TestGetJHData.test_get_JH_Data_extract_subframe_between_timeframe | Missing function or method docstring |
225 | 4 | convention | invalid-name |
C0103 | TestGetJHData.test_get_JH_Data_extract_subframe_between_timeframe | Method name "test_get_JH_Data_extract_subframe_between_timeframe" doesn't conform to snake_case naming style |
memilio.epidata_test.test_epidata_get_population_data
(memilio/epidata_test/test_epidata_get_population_data.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | missing-module-docstring |
C0114 | Missing module docstring |
|
24 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
26 | 0 | convention | wrong-import-order |
C0411 | standard import "from unittest.mock import patch, Mock" should be placed before "import pandas as pd" |
|
32 | 0 | convention | missing-class-docstring |
C0115 | Test_getPopulationData | Missing class docstring |
32 | 0 | convention | invalid-name |
C0103 | Test_getPopulationData | Class name "Test_getPopulationData" doesn't conform to PascalCase naming style |
39 | 9 | warning | unspecified-encoding |
W1514 | Test_getPopulationData | Using open without explicitly specifying an encoding |
44 | 9 | warning | unspecified-encoding |
W1514 | Test_getPopulationData | Using open without explicitly specifying an encoding |
50 | 4 | convention | missing-function-docstring |
C0116 | Test_getPopulationData.test_export_population_data | Missing function or method docstring |
62 | 0 | convention | line-too-long |
C0301 | Line too long (135/120) |
|
70 | 4 | convention | missing-function-docstring |
C0116 | Test_getPopulationData.test_get_population_data_full | Missing function or method docstring |
70 | 44 | warning | unused-argument |
W0613 | Test_getPopulationData.test_get_population_data_full | Unused argument 'mock_test' |
70 | 55 | warning | unused-argument |
W0613 | Test_getPopulationData.test_get_population_data_full | Unused argument 'mock_assign' |
70 | 68 | warning | unused-argument |
W0613 | Test_getPopulationData.test_get_population_data_full | Unused argument 'mock_download' |
79 | 4 | convention | missing-function-docstring |
C0116 | Test_getPopulationData.test_read_population_data | Missing function or method docstring |
91 | 8 | convention | invalid-name |
C0103 | Test_getPopulationData.test_read_population_data | Variable name "df" doesn't conform to snake_case naming style |
memilio.epidata_test.test_epidata_get_simulation_data
(memilio/epidata_test/test_epidata_get_simulation_data.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | missing-module-docstring |
C0114 | Missing module docstring |
|
30 | 0 | convention | missing-class-docstring |
C0115 | TestGetSimulationData | Missing class docstring |
44 | 4 | convention | missing-function-docstring |
C0116 | TestGetSimulationData.test_get_call_sub_functions | Missing function or method docstring |
44 | 4 | refactor | too-many-locals |
R0914 | TestGetSimulationData.test_get_call_sub_functions | Too many local variables (21/15) |
107 | 4 | convention | missing-function-docstring |
C0116 | TestGetSimulationData.test_errors | Missing function or method docstring |
107 | 4 | refactor | too-many-arguments |
R0913 | TestGetSimulationData.test_errors | Too many arguments (6/5) |
memilio.epidata_test.test_epidata_get_vaccination_data
(memilio/epidata_test/test_epidata_get_vaccination_data.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | missing-module-docstring |
C0114 | Missing module docstring |
|
25 | 0 | error | import-error |
E0401 | Unable to import 'numpy' |
|
26 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
34 | 0 | convention | missing-class-docstring |
C0115 | TestGetVaccinationData | Missing class docstring |
74 | 4 | convention | consider-using-enumerate |
C0200 | TestGetVaccinationData | Consider using enumerate instead of iterating with range and len |
104 | 9 | warning | unspecified-encoding |
W1514 | TestGetVaccinationData | Using open without explicitly specifying an encoding |
114 | 4 | convention | missing-function-docstring |
C0116 | TestGetVaccinationData.test_get_vaccination_data_alternative_ages | Missing function or method docstring |
114 | 57 | warning | unused-argument |
W0613 | TestGetVaccinationData.test_get_vaccination_data_alternative_ages | Unused argument 'mockin' |
114 | 65 | warning | unused-argument |
W0613 | TestGetVaccinationData.test_get_vaccination_data_alternative_ages | Unused argument 'mockp' |
114 | 72 | warning | unused-argument |
W0613 | TestGetVaccinationData.test_get_vaccination_data_alternative_ages | Unused argument 'mockv' |
127 | 4 | convention | missing-function-docstring |
C0116 | TestGetVaccinationData.test_get_standard_vaccination_sanitize_3 | Missing function or method docstring |
127 | 55 | warning | unused-argument |
W0613 | TestGetVaccinationData.test_get_standard_vaccination_sanitize_3 | Unused argument 'mockin' |
127 | 63 | warning | unused-argument |
W0613 | TestGetVaccinationData.test_get_standard_vaccination_sanitize_3 | Unused argument 'mockp' |
127 | 70 | warning | unused-argument |
W0613 | TestGetVaccinationData.test_get_standard_vaccination_sanitize_3 | Unused argument 'mockv' |
133 | 4 | convention | missing-function-docstring |
C0116 | TestGetVaccinationData.test_sanity_checks | Missing function or method docstring |
133 | 33 | warning | unused-argument |
W0613 | TestGetVaccinationData.test_sanity_checks | Unused argument 'mockv' |
178 | 4 | convention | missing-function-docstring |
C0116 | TestGetVaccinationData.test_sanitizing_based_on_regions | Missing function or method docstring |
230 | 4 | convention | missing-function-docstring |
C0116 | TestGetVaccinationData.test_extrapolate_age_groups_vaccinations | Missing function or method docstring |
memilio.epidata_test.test_epidata_modifyDataframeSeries
(memilio/epidata_test/test_epidata_modifyDataframeSeries.py
)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 |
memilio.epidata_test.test_epidata_progress_indicator
(memilio/epidata_test/test_epidata_progress_indicator.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | missing-module-docstring |
C0114 | Missing module docstring |
|
31 | 0 | convention | missing-class-docstring |
C0115 | Test_ProgressIndicator | Missing class docstring |
31 | 0 | convention | invalid-name |
C0103 | Test_ProgressIndicator | Class name "Test_ProgressIndicator" doesn't conform to PascalCase naming style |
34 | 4 | convention | missing-function-docstring |
C0116 | Test_ProgressIndicator.test_percentage_indicator | Missing function or method docstring |
37 | 55 | convention | invalid-name |
C0103 | Test_ProgressIndicator.test_percentage_indicator | Variable name "p" doesn't conform to snake_case naming style |
43 | 55 | convention | invalid-name |
C0103 | Test_ProgressIndicator.test_percentage_indicator | Variable name "p" doesn't conform to snake_case naming style |
48 | 55 | convention | invalid-name |
C0103 | Test_ProgressIndicator.test_percentage_indicator | Variable name "p" doesn't conform to snake_case naming style |
56 | 4 | convention | missing-function-docstring |
C0116 | Test_ProgressIndicator.test_spinner | Missing function or method docstring |
57 | 8 | convention | invalid-name |
C0103 | Test_ProgressIndicator.test_spinner | Variable name "s" doesn't conform to snake_case naming style |
61 | 12 | convention | invalid-name |
C0103 | Test_ProgressIndicator.test_spinner | Variable name "p" doesn't conform to snake_case naming style |
65 | 4 | convention | missing-function-docstring |
C0116 | Test_ProgressIndicator.test_dots | Missing function or method docstring |
66 | 8 | convention | invalid-name |
C0103 | Test_ProgressIndicator.test_dots | Variable name "p" doesn't conform to snake_case naming style |
73 | 4 | convention | missing-function-docstring |
C0116 | Test_ProgressIndicator.test_start_stop | Missing function or method docstring |
75 | 25 | warning | protected-access |
W0212 | Test_ProgressIndicator.test_start_stop | Access to a protected member _disabled of a client class |
78 | 25 | warning | protected-access |
W0212 | Test_ProgressIndicator.test_start_stop | Access to a protected member _disabled of a client class |
81 | 8 | convention | invalid-name |
C0103 | Test_ProgressIndicator.test_start_stop | Variable name "p" doesn't conform to snake_case naming style |
93 | 4 | convention | missing-function-docstring |
C0116 | Test_ProgressIndicator.test_message_too_long | Missing function or method docstring |
93 | 36 | warning | unused-argument |
W0613 | Test_ProgressIndicator.test_message_too_long | Unused argument 'mock_print' |
94 | 8 | convention | invalid-name |
C0103 | Test_ProgressIndicator.test_message_too_long | Variable name "p" doesn't conform to snake_case naming style |
98 | 25 | warning | protected-access |
W0212 | Test_ProgressIndicator.test_message_too_long | Access to a protected member _message of a client class |
memilio.epidata_test.test_epidata_transform_mobility_data
(memilio/epidata_test/test_epidata_transform_mobility_data.py
)Line | Col. | Type | Symbol | ID | Obj | Message |
---|---|---|---|---|---|---|
1 | 0 | convention | missing-module-docstring |
C0114 | Missing module docstring |
|
24 | 0 | error | import-error |
E0401 | Unable to import 'numpy' |
|
25 | 0 | error | import-error |
E0401 | Unable to import 'pandas' |
|
33 | 0 | convention | missing-class-docstring |
C0115 | TestTransformMobilityData | Missing class docstring |
73 | 4 | convention | missing-function-docstring |
C0116 | TestTransformMobilityData.test_get_mobility_from_file | Missing function or method docstring |
73 | 42 | warning | unused-argument |
W0613 | TestTransformMobilityData.test_get_mobility_from_file | Unused argument 'mock_load_file' |
81 | 4 | convention | missing-function-docstring |
C0116 | TestTransformMobilityData.test_update_mobility_reduction_401to400 | Missing function or method docstring |
81 | 54 | warning | unused-argument |
W0613 | TestTransformMobilityData.test_update_mobility_reduction_401to400 | Unused argument 'mock_load_file' |
110 | 4 | convention | missing-function-docstring |
C0116 | TestTransformMobilityData.test_update_mobility_reduction_400to400 | Missing function or method docstring |
110 | 54 | warning | unused-argument |
W0613 | TestTransformMobilityData.test_update_mobility_reduction_400to400 | Unused argument 'mock_load_file' |
126 | 4 | convention | missing-function-docstring |
C0116 | TestTransformMobilityData.test_create_federal_states_mobility_wrong_input | Missing function or method docstring |
126 | 62 | warning | unused-argument |
W0613 | TestTransformMobilityData.test_create_federal_states_mobility_wrong_input | Unused argument 'mock_load_file' |
139 | 4 | convention | missing-function-docstring |
C0116 | TestTransformMobilityData.test_create_federal_states_mobility | Missing function or method docstring |
139 | 50 | warning | unused-argument |
W0613 | TestTransformMobilityData.test_create_federal_states_mobility | Unused argument 'mock_load_file' |
159 | 38 | convention | singleton-comparison |
C0121 | TestTransformMobilityData.test_create_federal_states_mobility | Comparison 'np.isnan(df_return) == True' should be 'np.isnan(df_return) is True' if checking for the singleton value True, or 'bool(np.isnan(df_return))' if testing for truthiness |
Name | Count |
---|---|
refactor | 263 |
warning | 146 |
convention | 688 |
error | 74 |
Name | Count |
---|---|
useless-option-value | 66 |
unknown-option-value | 5 |
line-too-long | 116 |
invalid-name | 221 |
duplicate-key | 2 |
missing-module-docstring | 23 |
import-error | 49 |
no-else-return | 11 |
unused-import | 4 |
trailing-whitespace | 43 |
superfluous-parens | 14 |
unnecessary-comprehension | 16 |
redefined-builtin | 17 |
singleton-comparison | 24 |
use-dict-literal | 4 |
using-constant-test | 1 |
consider-using-enumerate | 46 |
unused-variable | 9 |
dangerous-default-value | 4 |
too-many-arguments | 29 |
unneeded-not | 4 |
too-many-locals | 40 |
too-many-nested-blocks | 13 |
too-many-branches | 14 |
too-many-statements | 17 |
too-many-lines | 3 |
redefined-argument-from-local | 1 |
raise-missing-from | 18 |
missing-function-docstring | 135 |
consider-iterating-dictionary | 14 |
use-a-generator | 9 |
consider-using-f-string | 2 |
wrong-import-order | 20 |
unused-argument | 37 |
too-many-boolean-expressions | 1 |
too-many-instance-attributes | 1 |
import-outside-toplevel | 1 |
broad-except | 5 |
bare-except | 8 |
consider-using-min-builtin | 1 |
consider-using-max-builtin | 1 |
no-else-continue | 3 |
consider-using-dict-items | 4 |
consider-using-in | 5 |
inconsistent-return-statements | 3 |
missing-timeout | 3 |
missing-class-docstring | 18 |
simplifiable-if-expression | 6 |
too-few-public-methods | 1 |
consider-merging-isinstance | 1 |
unnecessary-pass | 2 |
no-member | 11 |
invalid-sequence-index | 14 |
simplifiable-if-statement | 1 |
unspecified-encoding | 27 |
protected-access | 3 |
consider-using-with | 2 |
redundant-unittest-assert | 1 |
too-many-public-methods | 2 |
duplicate-code | 15 |
Name | Count |
---|---|
../pylintrc | 71 |
memilio.epidata.defaultDict | 12 |
memilio.epidata.transformMobilityData | 14 |
memilio.epidata.geoModificationGermany | 30 |
memilio.epidata.customPlot | 13 |
memilio.epidata.cleanData | 8 |
memilio.epidata.getNPIData | 91 |
memilio.epidata.transformWeatherData | 16 |
memilio.epidata.getHospitalizationData | 17 |
memilio.epidata.getCommuterMobility | 45 |
memilio.epidata.progress_indicator | 11 |
memilio.epidata.getSimulationData | 12 |
memilio.epidata.modifyDataframeSeries | 38 |
memilio.epidata.getVaccinationData | 81 |
memilio.epidata.getPopulationData | 26 |
memilio.epidata.getDataIntoPandasDataFrame | 68 |
memilio.epidata.getJHData | 13 |
memilio.epidata.getTestingData | 58 |
memilio.epidata.getCaseData | 60 |
memilio.epidata.getDIVIData | 18 |
memilio.epidata_test.test_epidata_getNPIData | 13 |
memilio.epidata_test.test_epidata_get_simulation_data | 6 |
memilio.epidata_test.test_epidata_get_vaccination_data | 18 |
memilio.epidata_test.test_epidata_get_jh_data | 17 |
memilio.epidata_test.test_epidata_customPlot | 7 |
memilio.epidata_test.test_epidata_progress_indicator | 20 |
memilio.epidata_test.test_epidata_get_divi_data | 19 |
memilio.epidata_test.test_epidata_getCaseData | 40 |
memilio.epidata_test.test_epidata_getDataIntoPandasDataFrame | 56 |
memilio.epidata_test.test_epidata_modifyDataframeSeries | 42 |
memilio.epidata_test.test_epidata_getHospitalizationData | 16 |
memilio.epidata_test.test_epidata_get_population_data | 15 |
memilio.epidata_test.test_epidata_getCommuterMobility | 18 |
memilio.epidata_test.test_epidata_geoModificationGermany | 48 |
memilio.epidata_test.test_epidata_transform_mobility_data | 15 |
memilio.epidata_test.test_epidata_defaultDict | 10 |
memilio.epidata_test.test_epidata_cleandata | 109 |
Name | Count |
---|---|
../pylintrc | 71 |
memilio/epidata/defaultDict.py | 12 |
memilio/epidata/transformMobilityData.py | 14 |
memilio/epidata/geoModificationGermany.py | 30 |
memilio/epidata/customPlot.py | 13 |
memilio/epidata/cleanData.py | 8 |
memilio/epidata/getNPIData.py | 91 |
memilio/epidata/transformWeatherData.py | 16 |
memilio/epidata/getHospitalizationData.py | 17 |
memilio/epidata/getCommuterMobility.py | 45 |
memilio/epidata/progress_indicator.py | 11 |
memilio/epidata/getSimulationData.py | 12 |
memilio/epidata/modifyDataframeSeries.py | 38 |
memilio/epidata/getVaccinationData.py | 81 |
memilio/epidata/getPopulationData.py | 26 |
memilio/epidata/getDataIntoPandasDataFrame.py | 68 |
memilio/epidata/getJHData.py | 13 |
memilio/epidata/getTestingData.py | 58 |
memilio/epidata/getCaseData.py | 60 |
memilio/epidata/getDIVIData.py | 18 |
memilio/epidata_test/test_epidata_getNPIData.py | 13 |
memilio/epidata_test/test_epidata_get_simulation_data.py | 6 |
memilio/epidata_test/test_epidata_get_vaccination_data.py | 18 |
memilio/epidata_test/test_epidata_get_jh_data.py | 17 |
memilio/epidata_test/test_epidata_customPlot.py | 7 |
memilio/epidata_test/test_epidata_progress_indicator.py | 20 |
memilio/epidata_test/test_epidata_get_divi_data.py | 19 |
memilio/epidata_test/test_epidata_getCaseData.py | 40 |
memilio/epidata_test/test_epidata_getDataIntoPandasDataFrame.py | 56 |
memilio/epidata_test/test_epidata_modifyDataframeSeries.py | 42 |
memilio/epidata_test/test_epidata_getHospitalizationData.py | 16 |
memilio/epidata_test/test_epidata_get_population_data.py | 15 |
memilio/epidata_test/test_epidata_getCommuterMobility.py | 18 |
memilio/epidata_test/test_epidata_geoModificationGermany.py | 48 |
memilio/epidata_test/test_epidata_transform_mobility_data.py | 15 |
memilio/epidata_test/test_epidata_defaultDict.py | 10 |
memilio/epidata_test/test_epidata_cleandata.py | 109 |