-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lint errors in core files #123
Comments
dilawar
pushed a commit
to dilawar/epimargin
that referenced
this issue
Jul 24, 2021
dilawar
pushed a commit
to dilawar/epimargin
that referenced
this issue
Jul 24, 2021
Error: ************* Module epimargin.policy epimargin/policy.py:205:15: E1101: Instance of 'VaccinationPolicy' has no 'daily_doses' member (no-member) Fixes: `daily_doses` should be in the base class.
dilawar
pushed a commit
to dilawar/epimargin
that referenced
this issue
Jul 24, 2021
************* Module epimargin.plots epimargin/plots.py:62:0: E0102: function already defined line 14 (function-redefined) epimargin/plots.py:194:0: E0102: function already defined line 14 (function-redefined) Fixes: Use `import matplotlib.pyplot as plt` rather than `from matplotlib.pyplot import *`.
dilawar
pushed a commit
to dilawar/epimargin
that referenced
this issue
Jul 24, 2021
…er (no-member) `daily_doses` should be in the base class. related to COVID-IWG#123
dilawar
pushed a commit
to dilawar/epimargin
that referenced
this issue
Jul 24, 2021
************* Module epimargin.plots (function-redefined) epimargin/plots.py:194:0: E0102: function already defined line 14 (function-redefined) Fixes: Use `import matplotlib.pyplot as plt` rather than `from matplotlib.pyplot import *`. Related: COVID-IWG#123
dilawar
pushed a commit
to dilawar/epimargin
that referenced
this issue
Jul 24, 2021
Invalid object 'download_data' in __all__, must contain only strings (invalid-all-object) Related COVID-IWG#123
dilawar
pushed a commit
to dilawar/epimargin
that referenced
this issue
Jul 24, 2021
1. `read_csv` return Union[DataFrame, TextParser] but a few functions assume that read_csv will return DataFrame only. This is fixed by casting the results to be a DataFrame. 2. Similarly, in estimator.py file, `params` is forced to be DataFrame so that `join` can be applied. ref: COVID-IWG#123
dilawar
pushed a commit
to dilawar/epimargin
that referenced
this issue
Jul 24, 2021
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
openjournals/joss-reviews#3464 | Related #117.
I am running a few lint tools e.g.,
pylint
andpyflakes
to locate errors in the module. This is related to #117 that also usedstudies
folder. Since that may not be part of final release (#117 (comment)), this run restricts itself to the core files.I am working on my fork and send a PR soon that will fix these issues if possible.
In this run, I am using poetry to manage the dependencies. Managing dependencies in Python has been less than ideal (
poetry
helps but the author need not add this to their DevOps).The most critical among these should be fixed.
pylint
mypy
The text was updated successfully, but these errors were encountered: