[code-quality] Re: Testing package generated with setuptools/distutils

2020-05-14 Thread Alexander Todorov
На 14.05.20 г. в 9:25 ч., Juan BC написа: Hi guys, I have a question here (sorry if my lack of practice in English). I currently working in one of the many projects about covid-19, and I just deployed a new version for a group of epidemiologists. To be fair I deployed not once but three times bec

[code-quality] Re: Howto tell pylint or astrooid that only one definition of class has to be loaded for specific python major versions (Python2 vs Python3)

2019-11-04 Thread Alexander Todorov
code-quality@python.org To unsubscribe send an email to code-quality-le...@python.org https://mail.python.org/mailman3/lists/code-quality.python.org/ -- Alexander Todorov Co-founder & Open source QA at Mr. Senko http://MrSenko.com ___ code-qualit

[code-quality] What would be the recommended way to execute pylint plugins tests ?

2019-10-30 Thread Alexander Todorov
Looking at https://github.com/PyCQA/pylint-django/issues/250 and https://github.com/PyCQA/pylint/commit/33b8185a455c1686d038258697bb93005f2441c2 I am wondering what would be the recommended way to keep reusing test_functional.py from pylint ? The only thing I can come up with is git clone insid

[code-quality] Re: adapting code quality tools to non-traditional situation

2019-10-18 Thread Alexander Todorov
rg https://mail.python.org/mailman3/lists/code-quality.python.org/ ___ code-quality mailing list -- code-quality@python.org To unsubscribe send an email to code-quality-le...@python.org https://mail.python.org/mailman3/lists/code-quality.python.org/ -- Alexander To

[code-quality] Re: Looking for Python tool to calculate string similarity

2019-09-16 Thread Alexander Todorov
Thank you to everyone who replied. I will check out all of the suggestions and post after some time with my findings or directly a linter plugin ready for use. -- Alex ___ code-quality mailing list -- code-quality@python.org To unsubscribe send an ema

[code-quality] Looking for Python tool to calculate string similarity

2019-09-15 Thread Alexander Todorov
Hi folks, I am looking for some tool (or algorithm which I can implement at the worst) which calculates similarities between strings. I would turn this into a pylint plugin b/c this is how I would consume it in my projects. My background is that we've identified *duplicate* or *similar* string

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

2018-07-24 Thread Alexander Todorov
Hi folks, I need help debugging a strange test failure in pylint-django that started happening after the upgrade to pylint/astroid 2.0. For all I can tell we've already adjusted the code and this failure is happening randomly. pylint-django's test used uses the test_functional.LintModuleTest

[code-quality] Need help: pylintrc breaks black_list from plugins

2018-06-29 Thread Alexander Todorov
Hi folks, according to this bug report: https://github.com/PyCQA/pylint-django/issues/167#issuecomment-401304800 when there is a .pylintrc file with an ignore line inside of it it this overrides the black_list options configured by plugins. In the case of pylint_django we would like to ignore

Re: [code-quality] Catching multiple return types

2018-04-19 Thread Alexander Todorov
На 19.04.2018 в 01:08, Skip Montanaro написа: Thanks, good to know. Yet another tool for the kit... S On Wed, Apr 18, 2018, 3:43 PM Dan Stromberg > wrote: IINM, mypy can catch such things.  But that's a different sort of tool of course. On Wed, Apr 18,

Re: [code-quality] __all__ defined inside a class

2018-03-23 Thread Alexander Todorov
На 23.03.2018 в 07:00, Steven D'Aprano написа: On Thu, Mar 22, 2018 at 08:30:44PM -0500, Ian Stapleton Cordasco wrote: Regarding Q2: Why would you want to prohibit class attributes starting with single or double underscores? The former is useful for "private" class attributes. The latter perfor

[code-quality] __all__ defined inside a class

2018-03-22 Thread Alexander Todorov
Hi folks, I've just noticed that a legacy piece of code I'm working with contains the following pattern: class SomeClass(object): __all__ = ['add', 'delete'] def __init__(self): pass def get(self): pass def add(self, x): pass def delete(self, x):

Re: [code-quality] Request to add project Bandit to the PyCQA

2018-02-27 Thread Alexander Todorov
На 27.02.2018 в 06:06, Ian Lee написа: This is a +1 from me. +1 from me. Very cool project. I also propose to add bandit checks to all repositories under PyCQA as part of their standard test suite. -- Alex ___ code-quality mailing list code-quali

[code-quality] Need help with debugging pylint tests for a plugin

2018-01-16 Thread Alexander Todorov
Hi folks, I've made several commits to django-pylint (https://github.com/MrSenko/django-pylint, branch next_release) in order to make it compatible with the latest available versions. However some of the existing tests fail and I'm not sure how to figure out what's wrong: https://travis-ci.o