[code-quality] Re: Use flake8 in a python script

2022-06-06 Thread c.buhtz
Dear Ian, thanks for feedback. On 2022-06-06 17:47 David Stanek wrote: > How do you currently run your unit tests? I use "green". But this is more a visual thing and not much different from a simple "python3 -m unittest discover". ___ code-quality mai

[code-quality] Re: Use flake8 in a python script

2022-06-06 Thread David Stanek
Response inline below. On Mon, Jun 6, 2022 at 4:48 PM wrote: > Dear Ian, > > thanks for the feedback. > > Am 06.06.2022 22:25 schrieb Ian Stapleton Cordasco: > [snip] What is against PEP8 checking via unittest? > > >From my perspective, I see them as two different tools. For example, I run pyte

[code-quality] Re: Use flake8 in a python script

2022-06-06 Thread c . buhtz
Dear Ian, thanks for the feedback. Am 06.06.2022 22:25 schrieb Ian Stapleton Cordasco: it's quite the anti-pattern. Users doing that often shoot themselves in the foot and things break between versions. Can you explain that a bit more in detail please. I am very interested in your expertise

[code-quality] Re: Use flake8 in a python script

2022-06-06 Thread Ian Stapleton Cordasco
Correct. That doesn't work. It's not presently designed to be used that way. I believe there's some work planned to enable that but in my opinion it's quite the anti-pattern. Users doing that often shoot themselves in the foot and things break between versions. Sent from my phone with my typo-happ

[code-quality] Use flake8 in a python script

2022-06-06 Thread c . buhtz
I want to invoke/use flake8 in my own python script and check the returning results. I do something like this with pycodestyle which I use as a unittest. I would like to do this with flake8, too. On the list I found a posting from 2015 about using flake8.main.main(). But it doesn't exist anymo