From wolfgang.kde at rohdewald.de Sun Mar 5 05:15:58 2017 From: wolfgang.kde at rohdewald.de (Wolfgang Rohdewald) Date: Sun, 05 Mar 2017 11:15:58 +0100 Subject: [code-quality] pylint completion is very noisy Message-ID: <3370567.FElJj4lBKs@skull> Hi if I enter pylint I get a list of 402 possible completions including python library files but I have only one .py file in the current directory. I wonder if this is useful for anybody at all. If somebody develops library code, she will be in the directory for that code and normally not be interested in any other libraries. Is this behaviour intended? Why? Or should I file a bug report? No config file found, using default configuration pylint 2.0.0, astroid 1.5.0 Python 3.5.2+ (default, Sep 22 2016, 12:18:14) [GCC 6.2.0 20160927] -- Wolfgang From me at the-compiler.org Sun Mar 5 15:14:48 2017 From: me at the-compiler.org (Florian Bruhin) Date: Sun, 5 Mar 2017 21:14:48 +0100 Subject: [code-quality] pylint completion is very noisy In-Reply-To: <3370567.FElJj4lBKs@skull> References: <3370567.FElJj4lBKs@skull> Message-ID: <20170305201448.33f5unhuymt2xqr6@tonks> * Wolfgang Rohdewald [2017-03-05 11:15:58 +0100]: > Hi > > if I enter > > pylint > > I get a list of 402 possible completions including python library files > > but I have only one .py file in the current directory. I only get python files in the current directory. What OS/distribution and what shell are you using? Florian -- http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From wolfgang.kde at rohdewald.de Sun Mar 5 15:41:29 2017 From: wolfgang.kde at rohdewald.de (Wolfgang Rohdewald) Date: Sun, 05 Mar 2017 21:41:29 +0100 Subject: [code-quality] pylint completion is very noisy In-Reply-To: <20170305201448.33f5unhuymt2xqr6@tonks> References: <3370567.FElJj4lBKs@skull> <20170305201448.33f5unhuymt2xqr6@tonks> Message-ID: <2910155.jgrA4HTtYZ@skull> Am Sonntag, 5. M?rz 2017, 21:14:48 CET schrieb Florian Bruhin: > * Wolfgang Rohdewald [2017-03-05 11:15:58 +0100]: > > Hi > > > > if I enter > > > > pylint > > > > I get a list of 402 possible completions including python library files > > > > but I have only one .py file in the current directory. > > I only get python files in the current directory. > > What OS/distribution and what shell are you using? kubuntu 16.10 GNU bash, Version 4.3.46(1)-release (x86_64-pc-linux-gnu) I thought the bash completion file comes with pylint but it does not, it is package bash-completion. Bug filed: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1670192 -- Wolfgang From bgoodr at gmail.com Fri Mar 24 21:50:10 2017 From: bgoodr at gmail.com (Brent Goodrick) Date: Fri, 24 Mar 2017 18:50:10 -0700 Subject: [code-quality] ~/.config/flake8 not recognized Message-ID: At http://flake8.readthedocs.io/en/latest/user/configuration.html I see: Note that *Flake8* looks for ~\.flake8 on Windows and ~/.config/flake8 on Linux and other Unix systems. But only ~/.flake8 seems to be read. bash-4.1$ flake8 --version 3.3.0 (mccabe: 0.6.1, pycodestyle: 2.3.1, pyflakes: 1.5.0) CPython 2.7.6 on Linux My system is a RHEL6.8 Linux machine: bash-4.1$ cat /etc/issue Red Hat Enterprise Linux Workstation release 6.8 (Santiago) Kernel \r on an \m Is this a bug in the documentation? I do not see it as a problem to have it be in ~/.flake8. Brent -------------- next part -------------- An HTML attachment was scrubbed... URL: From graffatcolmingov at gmail.com Sat Mar 25 07:29:17 2017 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Sat, 25 Mar 2017 06:29:17 -0500 Subject: [code-quality] ~/.config/flake8 not recognized In-Reply-To: References: Message-ID: On Fri, Mar 24, 2017 at 8:50 PM, Brent Goodrick wrote: > At http://flake8.readthedocs.io/en/latest/user/configuration.html I see: > > > Note that Flake8 looks for ~\.flake8 on Windows and ~/.config/flake8 on > > Linux and other Unix systems. So we will respect XDG_CONFIG_HOME variables and if those are unset, then we will use ~/.config/. > But only ~/.flake8 seems to be read. > > bash-4.1$ flake8 --version > 3.3.0 (mccabe: 0.6.1, pycodestyle: 2.3.1, pyflakes: 1.5.0) CPython 2.7.6 on > Linux That is quite unusual. Did you run flake with -vv to see what files it is finding? If not, can you do so now? > My system is a RHEL6.8 Linux machine: > > bash-4.1$ cat /etc/issue > Red Hat Enterprise Linux Workstation release 6.8 (Santiago) > Kernel \r on an \m > > Is this a bug in the documentation? I do not see it as a problem to have it > be in ~/.flake8. I don't think this is a bug in the documentation. The code reflects reality pretty well: https://gitlab.com/pycqa/flake8/blob/733a4f053b093d0d061ce780963e936861327c95/src/flake8/options/config.py#L116 My issue with supporting ~/.flake8 is with the problem that we would then have to support ~/.config/flake and ~/.flake8 and which would take precedence in the event that both exist? People don't want Flake8 to error out because they did something silly with their config files, but that would be our only option and it would not be pretty.