Skip to content
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

Make linters happy again #10

Open
smoia opened this issue Jan 26, 2021 · 1 comment
Open

Make linters happy again #10

smoia opened this issue Jan 26, 2021 · 1 comment
Assignees
Labels
Bug Something isn't working Good first issue Good for newcomers Paused Issue should not be worked on until the resolution of other issues or Pull Requests Refactoring Improve nonfunctional attributes Testing This is for testing features, writing tests or producing testing code.

Comments

@smoia
Copy link
Member

smoia commented Jan 26, 2021

@vinferrer was happily moving the tests to Cirrus CI using the same linters as phys2bids when we realised that the linters are not happy at the moment...

...by this much:
make lint
peakdet/operations.py:2:1: D200 One-line docstring should fit on one line with quotes
peakdet/operations.py:2:1: D400 First line should end with a period
peakdet/operations.py:14:1: D202 No blank lines allowed after function docstring
peakdet/operations.py:14:1: D400 First line should end with a period
peakdet/operations.py:14:1: D401 First line should be in imperative mood
peakdet/operations.py:66:1: D202 No blank lines allowed after function docstring
peakdet/operations.py:66:1: D400 First line should end with a period
peakdet/operations.py:102:1: D202 No blank lines allowed after function docstring
peakdet/operations.py:102:1: D400 First line should end with a period
peakdet/operations.py:102:1: D401 First line should be in imperative mood
peakdet/operations.py:143:1: D202 No blank lines allowed after function docstring
peakdet/operations.py:143:1: D400 First line should end with a period
peakdet/operations.py:143:1: D401 First line should be in imperative mood
peakdet/operations.py:165:1: D202 No blank lines allowed after function docstring
peakdet/operations.py:165:1: D400 First line should end with a period
peakdet/operations.py:165:1: D401 First line should be in imperative mood
peakdet/operations.py:186:1: D202 No blank lines allowed after function docstring
peakdet/operations.py:186:1: D400 First line should end with a period
peakdet/operations.py:186:1: D401 First line should be in imperative mood
peakdet/operations.py:221:1: D202 No blank lines allowed after function docstring
peakdet/operations.py:221:1: D400 First line should end with a period
peakdet/operations.py:221:1: D401 First line should be in imperative mood
peakdet/analytics.py:2:1: D200 One-line docstring should fit on one line with quotes
peakdet/analytics.py:2:1: D400 First line should end with a period
peakdet/analytics.py:12:1: D400 First line should end with a period
peakdet/analytics.py:67:1: D107 Missing docstring in __init__
peakdet/analytics.py:75:1: D210 No whitespaces allowed surrounding docstring text
peakdet/analytics.py:75:1: D400 First line should end with a period
peakdet/analytics.py:75:1: D401 First line should be in imperative mood
peakdet/analytics.py:83:1: D210 No whitespaces allowed surrounding docstring text
peakdet/analytics.py:83:1: D400 First line should end with a period
peakdet/analytics.py:96:1: D102 Missing docstring in public method
peakdet/analytics.py:100:1: D102 Missing docstring in public method
peakdet/analytics.py:104:1: D102 Missing docstring in public method
peakdet/analytics.py:108:1: D102 Missing docstring in public method
peakdet/analytics.py:112:1: D102 Missing docstring in public method
peakdet/analytics.py:116:1: D102 Missing docstring in public method
peakdet/analytics.py:120:1: D102 Missing docstring in public method
peakdet/analytics.py:124:1: D102 Missing docstring in public method
peakdet/analytics.py:143:1: D102 Missing docstring in public method
peakdet/analytics.py:147:1: D102 Missing docstring in public method
peakdet/analytics.py:151:1: D102 Missing docstring in public method
peakdet/analytics.py:155:1: D102 Missing docstring in public method
peakdet/analytics.py:159:1: D102 Missing docstring in public method
peakdet/analytics.py:163:1: D102 Missing docstring in public method
peakdet/analytics.py:167:1: D102 Missing docstring in public method
peakdet/analytics.py:171:1: D102 Missing docstring in public method
peakdet/analytics.py:176:1: D102 Missing docstring in public method
peakdet/utils.py:2:1: D205 1 blank line required between summary line and description
peakdet/utils.py:2:1: D400 First line should end with a period
peakdet/utils.py:14:1: D400 First line should end with a period
peakdet/utils.py:14:1: D401 First line should be in imperative mood; try rephrasing
peakdet/utils.py:65:1: D202 No blank lines allowed after function docstring
peakdet/utils.py:65:1: D400 First line should end with a period
peakdet/utils.py:65:1: D401 First line should be in imperative mood
peakdet/utils.py:112:1: D202 No blank lines allowed after function docstring
peakdet/utils.py:112:1: D400 First line should end with a period
peakdet/utils.py:112:1: D401 First line should be in imperative mood
peakdet/utils.py:150:1: D202 No blank lines allowed after function docstring
peakdet/utils.py:150:1: D400 First line should end with a period
peakdet/utils.py:150:1: D401 First line should be in imperative mood
peakdet/utils.py:187:1: D202 No blank lines allowed after function docstring
peakdet/utils.py:187:1: D400 First line should end with a period
peakdet/utils.py:187:1: D401 First line should be in imperative mood
peakdet/modalities.py:1:1: D100 Missing docstring in public module
peakdet/modalities.py:6:1: D101 Missing docstring in public class
peakdet/modalities.py:7:1: D102 Missing docstring in public method
peakdet/modalities.py:26:1: D102 Missing docstring in public method
peakdet/modalities.py:30:1: D101 Missing docstring in public class
peakdet/modalities.py:34:1: D101 Missing docstring in public class
peakdet/modalities.py:38:1: D101 Missing docstring in public class
peakdet/modalities.py:41:1: D102 Missing docstring in public method
peakdet/info.py:1:1: D100 Missing docstring in public module
peakdet/physio.py:2:1: D200 One-line docstring should fit on one line with quotes
peakdet/physio.py:2:1: D400 First line should end with a period
peakdet/physio.py:10:1: D400 First line should end with a period
peakdet/physio.py:39:1: D107 Missing docstring in __init__
peakdet/physio.py:71:1: D105 Missing docstring in magic method
peakdet/physio.py:74:1: D105 Missing docstring in magic method
peakdet/physio.py:77:1: D105 Missing docstring in magic method
peakdet/physio.py:80:1: D105 Missing docstring in magic method
peakdet/physio.py:91:1: D210 No whitespaces allowed surrounding docstring text
peakdet/physio.py:91:1: D400 First line should end with a period
peakdet/physio.py:96:1: D210 No whitespaces allowed surrounding docstring text
peakdet/physio.py:96:1: D400 First line should end with a period
peakdet/physio.py:96:1: D401 First line should be in imperative mood
peakdet/physio.py:101:1: D210 No whitespaces allowed surrounding docstring text
peakdet/physio.py:101:1: D400 First line should end with a period
peakdet/physio.py:106:1: D210 No whitespaces allowed surrounding docstring text
peakdet/physio.py:106:1: D400 First line should end with a period
peakdet/physio.py:106:1: D401 First line should be in imperative mood
peakdet/physio.py:111:1: D210 No whitespaces allowed surrounding docstring text
peakdet/physio.py:111:1: D400 First line should end with a period
peakdet/physio.py:111:1: D401 First line should be in imperative mood
peakdet/io.py:2:1: D200 One-line docstring should fit on one line with quotes
peakdet/io.py:2:1: D400 First line should end with a period
peakdet/io.py:17:1: D202 No blank lines allowed after function docstring
peakdet/io.py:17:1: D400 First line should end with a period
peakdet/io.py:17:1: D401 First line should be in imperative mood
peakdet/io.py:94:1: D202 No blank lines allowed after function docstring
peakdet/io.py:94:1: D400 First line should end with a period
peakdet/io.py:94:1: D401 First line should be in imperative mood
peakdet/io.py:123:1: D202 No blank lines allowed after function docstring
peakdet/io.py:123:1: D400 First line should end with a period
peakdet/io.py:123:1: D401 First line should be in imperative mood
peakdet/io.py:175:1: D202 No blank lines allowed after function docstring
peakdet/io.py:175:1: D400 First line should end with a period
peakdet/io.py:175:1: D401 First line should be in imperative mood
peakdet/editor.py:2:1: D200 One-line docstring should fit on one line with quotes
peakdet/editor.py:2:1: D400 First line should end with a period
peakdet/editor.py:14:1: D400 First line should end with a period
peakdet/editor.py:51:1: D210 No whitespaces allowed surrounding docstring text
peakdet/editor.py:51:1: D400 First line should end with a period
peakdet/editor.py:51:1: D401 First line should be in imperative mood
peakdet/editor.py:69:1: D210 No whitespaces allowed surrounding docstring text
peakdet/editor.py:69:1: D400 First line should end with a period
peakdet/editor.py:69:1: D401 First line should be in imperative mood
peakdet/editor.py:75:1: D210 No whitespaces allowed surrounding docstring text
peakdet/editor.py:75:1: D400 First line should end with a period
peakdet/editor.py:79:1: D210 No whitespaces allowed surrounding docstring text
peakdet/editor.py:79:1: D400 First line should end with a period
peakdet/editor.py:87:1: D210 No whitespaces allowed surrounding docstring text
peakdet/editor.py:87:1: D400 First line should end with a period
peakdet/editor.py:87:1: D401 First line should be in imperative mood
peakdet/editor.py:106:1: D210 No whitespaces allowed surrounding docstring text
peakdet/editor.py:106:1: D400 First line should end with a period
peakdet/editor.py:106:1: D401 First line should be in imperative mood
peakdet/__init__.py:1:1: D104 Missing docstring in public package
peakdet/__init__.py:18:17: W292 no newline at end of file
peakdet/external.py:2:1: D200 One-line docstring should fit on one line with quotes
peakdet/external.py:2:1: D400 First line should end with a period
peakdet/external.py:13:1: D202 No blank lines allowed after function docstring
peakdet/external.py:13:1: D400 First line should end with a period
peakdet/external.py:13:1: D401 First line should be in imperative mood
peakdet/cli/run.py:1:1: D100 Missing docstring in public module
peakdet/cli/run.py:51:1: D210 No whitespaces allowed surrounding docstring text
peakdet/cli/run.py:51:1: D400 First line should end with a period
peakdet/cli/run.py:111:1: D202 No blank lines allowed after function docstring
peakdet/cli/run.py:111:1: D400 First line should end with a period
peakdet/cli/run.py:111:1: D401 First line should be in imperative mood; try rephrasing
peakdet/cli/run.py:227:1: D103 Missing docstring in public function
peakdet/cli/__init__.py:1:1: D104 Missing docstring in public package
make: *** [Makefile:13: lint] Error 1

So this is some work to do next!
And, judging by most of the errors, I'm going to say it's a good first issue to start navigating the code and understanding its doing (and practice python & git).

@smoia smoia added Bug Something isn't working Good first issue Good for newcomers Refactoring Improve nonfunctional attributes Testing This is for testing features, writing tests or producing testing code. labels Jan 26, 2021
@smoia smoia added the Paused Issue should not be worked on until the resolution of other issues or Pull Requests label Dec 14, 2022
@m-miedema m-miedema transferred this issue from physiopy/peakdet Jul 25, 2024
@vinferrer
Copy link

Am I in trouble? What happened?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Good first issue Good for newcomers Paused Issue should not be worked on until the resolution of other issues or Pull Requests Refactoring Improve nonfunctional attributes Testing This is for testing features, writing tests or producing testing code.
Projects
None yet
Development

No branches or pull requests

2 participants