[code-quality] Re: System testing a large, shell-callable python script

2021-06-11 Thread James Cooke
This is probably a little too specific for your particular case, but I'll suggest it anyway, because it's a set-up that I've found has worked well. We've developed a number of post-processing validators at my employer and they are all Python scripts built with Click (https://click.palletsprojec

Re: [code-quality] Making a new release of flake8 happen

2018-06-27 Thread James Cooke
Hi Jimi, Could you please help me to understand the issues that people are facing with the current status of Flake8? I use the project, but I do not track the issues / development. In addition, I use pip-tools for package management - this prevents conflicts between different packages requiring di

Re: [code-quality] pylint-unittest plugin to detect less than optimal usage of assertions in your unittest usage

2018-07-16 Thread James Cooke
Hi Federico, This looks like an interesting plugin - thanks for sharing! It's great to see tools that aim to improve the quality of tests (over and above regular linting). Personally, I've moved away from Unittest to pytest so this plugin is not so relevant for my usual testing work. __But__ (a

Re: [code-quality] Need help with strange test failure for pylint-django

2018-07-25 Thread James Cooke
Update for those interested, the solution is here with explanation: https://github.com/PyCQA/pylint-django/pull/183/commits/538546044ac5a9785dc85369394d2de8c78349fc Cheers, James On Tue, 24 Jul 2018, at 10:23 PM, Alexander Todorov wrote: > Hi folks, > I need help debugging a strange test fail

Re: [code-quality] Pylint score

2018-10-21 Thread James Cooke
Hi Prashant, This does not directly answer your question - so apologies for that. However, pylint gives an exit code based on the types of failures that were found which can be checked https://pylint.readthedocs.io/en/latest/user_guide/run.html#exit-codes Therefore when linting flake8-aaa, I gave

Re: [code-quality] Flakes8 help on my short codes.

2019-05-08 Thread James Cooke
Hi Oscar, Just to echo what the others have said, yes this is doable with a plugin that checks the `lines` parameter. Over the last year or so I've been working on a Flake8 plugin. I used Ian's documentation for plugin development **plus** I referred a lot to flake8-author (https://github.com/jpa

[code-quality] Re: [bug]broken dependencies with wrapt 1.12.0

2020-03-06 Thread James Cooke
Hi there, Please could you help with a little more information on the issue you're having? When I install astroid 2.3.3 in a clean virtualenv using python 3.7, I'm seeing no errors: ``` $ virtualenv venv Using base prefix '/usr' New python executable in /tmp/tmp.bx8Z8k7B67/venv/bin/python3 Also

[code-quality] Re: Getting tox dependencies from pyproject.toml?

2025-02-17 Thread James Cooke
Hi Skip, One option would be to allow tox to install the package in the lint env with `skip_install = false` (which is the default behaviour, so the skip_install line can just be deleted). Then the "deps =" for the lint env can go back to just pylint. It's not the most efficient, but saves on c