Re: [code-quality] Open space at PyCon

2017-05-20 Thread Ian Cordasco
Hi Mark! Could you or someone else take notes and post them here as a follow-up? I suspect there are a bunch of us who aren't at pycon who'd be interested in what happens. Cheers, Ian Please excuse my top-posting as I'm replying from my pbone On May 20, 2017 10:06 AM, "Mark Shannon" wrote: >

Re: [code-quality] Flake8 and Python 3

2017-04-27 Thread Ian Cordasco
On Thu, Apr 27, 2017 at 5:46 PM, diek wrote: > Good Day, > I have searched and read some posts on reddit and stack but I cannot get > flake8 to use Python3. I looked at your docs, but I cannot find it. I am > using a Python3 virtualenv, and I pip installed Flake8. > Flake8 is installed: > _env/li

Re: [code-quality] ~/.config/flake8 not recognized

2017-03-25 Thread Ian Cordasco
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 tho

Re: [code-quality] Using the pycodestyle API

2016-12-26 Thread Ian Cordasco
On Mon, Dec 26, 2016 at 8:05 AM, Sven Brauch wrote: > Hi, > > I'm trying to use pycodestyle from a custom script. Importing the > "Checker" class and passing some lines to check works, but how can I > specify which errors to select or ignore? The API docs [1] are a bit > lacking. Hey Sven, The C

[code-quality] Flake8 3.1.0b1 Tagged

2016-11-12 Thread Ian Cordasco
Hi all, I've tagged (not released to PyPI) 3.1.0b1 of Flake8. It includes a number of bug fixes: http://flake8.pycqa.org/en/latest/release-notes/3.1.0.html If no one finds anything wrong with it, I'll be releasing it on Monday the 14th. Cheers! Ian ___

Re: [code-quality] flake8 3.0 no longer excludes .tox

2016-11-10 Thread Ian Cordasco
On Thu, Nov 10, 2016 at 8:14 AM, Barry Warsaw wrote: > On Nov 09, 2016, at 09:20 PM, Peter Bittner wrote: > >>... I just wanted to describe what I, personally, _had_ to do to work >>around the issue. And I fully agree with you. > > Interesting. I haven't seen this because I generally invoke flake

Re: [code-quality] flake8 3.0 no longer excludes .tox

2016-11-08 Thread Ian Cordasco
On Tue, Nov 8, 2016 at 6:27 PM, Jaime McCandless wrote: > I upgraded from flake8 2.5.4 to 3.0.4 and my .tox directory was no longer > excluded by default. I didn't find any documentation on this change. > > It would be great if you either: > > fixed this (i.e. exclude .tox by default) > documented

Re: [code-quality] Adding a new repo to 'PyCQA' org

2016-09-22 Thread Ian Cordasco
On Thu, Sep 22, 2016 at 9:22 AM, Stephen Finucane wrote: > Hey, > > I recently published a flake8 plugin on GitHub: > > https://github.com/stephenfin/flake8-asserts > > In my experience, finding flake8 plugins is easier said than done and the > best are found on the 'PyCQA' org on GitHub/GitLab. W

Re: [code-quality] Importing __version__ / __author__ without causing an unused import error

2016-07-27 Thread Ian Cordasco
On Wed, Jul 27, 2016 at 11:05 AM, Jack Wilsdon wrote: > Hi, > > I'm looking for a way to import __version__ / __author__ into my __init__.py > without causing an F401 error. > > Defining __version__ normally works fine: > >> init.py > > __version__ = '1.0.0' > __author__ = 'Jack Wilsdon

Re: [code-quality] Announcing ci.pycqa.org

2016-07-25 Thread Ian Cordasco
On Sun, Jul 24, 2016 at 3:45 PM, Marius Gedminas wrote: > On Sat, Jul 16, 2016 at 08:45:22PM -0500, Ian Cordasco wrote: >> Oh, also, if anyone's familiar with setting up Let's Encrypt + >> Jenkins, I'd love to collaborate on that. I would really prefer to >>

Re: [code-quality] Announcing ci.pycqa.org

2016-07-16 Thread Ian Cordasco
On Sat, Jul 16, 2016 at 8:38 PM, Ian Cordasco wrote: > Hey all! > > So, Rackspace has provided us with some sponsorship so we can run > things like Jenkins! This allows us to run ci.pycqa.org. > > Flake8 has been using this for continuous integration with GitLab for > a

[code-quality] Announcing ci.pycqa.org

2016-07-16 Thread Ian Cordasco
Hey all! So, Rackspace has provided us with some sponsorship so we can run things like Jenkins! This allows us to run ci.pycqa.org. Flake8 has been using this for continuous integration with GitLab for a while now, but we've recently moved the public address from ci.sigmavir.us (my temporary doma

[code-quality] PyCQA News

2016-07-07 Thread Ian Cordasco
Hey all, It's been a while since we talked about new things happening in the PyCQA. We have new projects and a couple other tiny announcements. New projects! = We've added pyflakes and flake8-import-order to our tiny group of folks and of course we're still open to other projects. T

Re: [code-quality] Change in unicode escape sequences

2016-06-28 Thread Ian Cordasco
On Tue, Jun 28, 2016 at 5:57 AM, Émanuel Barry wrote: >> From: Florian Bruhin >> Sent: Tuesday, June 28, 2016 6:52 AM >> Subject: Re: [code-quality] Change in unicode escape sequences >> >> pylint already does: >> >> $ cat x.py >> print("hello \world") >> >> $ pylint x.py >> [...]

Re: [code-quality] Average number style errors on Python

2016-06-12 Thread Ian Cordasco
On Sun, Jun 12, 2016 at 2:00 PM, Juan BC wrote: > as i say before, i am no interested in how is a quality of a project based > on the tolerance of their own community. You didn't say that actually. > Mi interest is the quality based on a random sample of code from a random > sample of programmer

Re: [code-quality] Average number style errors on Python

2016-06-12 Thread Ian Cordasco
461 errors, but in the scikit-learn case > they has only 5. > > > > > > On Sat, 11 Jun 2016 at 23:19 Ian Lee wrote: >> >> Even the Cpython standard library has quite a few violations.. >> >> On Saturday, June 11, 2016, Ian Cordasco >> wrote: >

[code-quality] Flake8 User Survey

2016-06-11 Thread Ian Cordasco
Hey all, Flake8 3.0 is close to having a beta release (and therefore a final release). Before that, I need some more information about the last three things we need to implement. As such, I've made a survey to find out what I can simplify for 3.0: http://goo.gl/forms/xiC7dt23RuGavESu1 Cheers, Ian

Re: [code-quality] Average number style errors on Python

2016-06-11 Thread Ian Cordasco
On Sat, Jun 11, 2016 at 1:32 PM, Juan BC wrote: > Thanks for the quick reply. > > I think i gonna retrieve a lots of public gists and store it into > dataframe. Also i think to retrieve some uknow python packages. Mostly > because the famous ones are really good in quality That's actually not ent

Re: [code-quality] PyCon 2016

2016-06-04 Thread Ian Cordasco
On Jun 4, 2016 5:17 AM, "Ben Finney" wrote: > > Florian Bruhin writes: > > > Maybe https://talky.io/ would be an alternative if not everyone has a > > Google Hangout account - I've only tried it with two people so far and > > not a group though. > > To avoid vendor-locked solutions, Jitsi would b

[code-quality] PyCon 2016

2016-06-03 Thread Ian Cordasco
Hi all! As some of you may have realized, PyCon 2016 took place this week (and sprints are still going on!). A bunch of us from this mailing list (and also those who are no on the list) met up a couple times throughout the week to discuss the Python Code Quality Authority, pycodestyle, Flake8, and

Re: [code-quality] [Social] Who is going to PyCon (US)?

2016-05-25 Thread Ian Cordasco
Yeah and maybe avoid picking that one table in that one part of the room that I hate ;) On Wed, May 25, 2016 at 2:35 PM, Eric Casteleijn wrote: > alright, let's coordinate a place to meet once we know the lay of the land. > > On Wed, May 25, 2016 at 11:57 AM, Ian Cordasco > wr

Re: [code-quality] [Social] Who is going to PyCon (US)?

2016-05-25 Thread Ian Cordasco
t; everyone is checking in? > > On Wed, May 25, 2016 at 10:59 AM, Eric Casteleijn > wrote: > >> Frank's Noodle House is pretty close, but a breakfast meeting works for >> me too. >> >> On Wed, May 25, 2016 at 5:37 AM, Ian Cordasco > > wrote: >> >

Re: [code-quality] [Social] Who is going to PyCon (US)?

2016-05-25 Thread Ian Cordasco
con venue, and probably has most of the dietary options >>>> covered, but Portland's pretty easy to get around, so if people have >>>> specific hankerings and are willing to take a bus, I'd be happy to come up >>>> with other suggestions. >>>>

Re: [code-quality] Pylint failing with tox

2016-05-18 Thread Ian Cordasco
Hi Ahirnish, You might have better luck joining #pylint on chat.freenode.net (IRC) to discuss this problem. Cheers, Ian On Wed, May 18, 2016 at 11:39 AM, Ahirnish Pareek wrote: > Hi Devs, > > Just wondering if anyone has got any pointers on this. > > Thanks. > > On Thu, May 12, 2016 at 4:30 PM,

Re: [code-quality] [Social] Who is going to PyCon (US)?

2016-05-18 Thread Ian Cordasco
7;d be happy to > suggest locations, once we have a date, and a sense of dietary and other > requirements/desires of attendees, if we plan for it to include food/drinks. > > On Mon, Mar 28, 2016 at 3:53 PM, Ian Cordasco > wrote: > > On Mon, Mar 28, 2016 at 4:22 PM, Eric Cast

Re: [code-quality] namedtuple?

2016-04-18 Thread Ian Cordasco
Hi Dan, FYI, your posts to this will be moderated as we've dealt with spam in the past from non-members. As such there will likely be a lag between when you send the message, when I'm notified, and when I have the time (and am at a computer) to approve it. Please be patient :) On Mon, Apr 18, 201

Re: [code-quality] release 0.6 of RedBaron, high level parser/modifier of python source file

2016-03-30 Thread Ian Cordasco
On Wed, Mar 30, 2016 at 5:02 PM, Laurent Peuch wrote: > Hello, > > On Mon, Mar 28, 2016 at 11:15:59AM -0500, Ian Cordasco wrote: >> On Mon, Mar 28, 2016 at 11:13 AM, Ian Cordasco >> wrote: >> > I'm really happy you sent this. I had forgotten about RedBaron and

Re: [code-quality] [Social] Who is going to PyCon (US)?

2016-03-28 Thread Ian Cordasco
On Mon, Mar 28, 2016 at 4:22 PM, Eric Casteleijn wrote: > I will be at Pycon, and would love to attend such a meeting, though I > realize I've only been lurking here so far. I'd like to contribute more > though. I live in Portland, so any date is likely to work for me. Don't worry about being a "

[code-quality] [Social] Who is going to PyCon (US)?

2016-03-28 Thread Ian Cordasco
Hey everyone, Ian Lee and I were chatting privately and are planning on meeting up at PyCon in Portland. We thought it would probably be a good idea to get a group together for lunch or dinner or something. So, who's going to be there and who wants to plan to meet-up? We don't have to focus our g

Re: [code-quality] release 0.6 of RedBaron, high level parser/modifier of python source file

2016-03-28 Thread Ian Cordasco
On Mon, Mar 28, 2016 at 11:13 AM, Ian Cordasco wrote: > I'm really happy you sent this. I had forgotten about RedBaron and was > going to start looking for a project exactly like it. Would you be > interested in moving the project under the umbrella of the PyCQA? We > could pro

Re: [code-quality] release 0.6 of RedBaron, high level parser/modifier of python source file

2016-03-28 Thread Ian Cordasco
On Mon, Mar 28, 2016 at 10:30 AM, Laurent Peuch wrote: > Hello, > > One year later I've finally made a new release for RedBaron. For those > of you that don't know RedBaron, it's a library that allows you to > modify you python *source* file with a high level API pretty much like > BeautifulSoup w

Re: [code-quality] Code style detection

2016-03-19 Thread Ian Cordasco
On Mar 19, 2016 8:29 AM, "Aayush Naik" wrote: > > Hello. > I'm working on a project that detects users' code style automatically. Basically, I want a tool that the user will first run on a set of sample files, this tool then will provide certain information which can be used to 'learn' the user's

Re: [code-quality] question on flake8 @2.5.4: pyflakes version constraint

2016-03-14 Thread Ian Cordasco
On Sun, Mar 13, 2016 at 6:05 PM, petr wrote: > Hi, > > The current flake8 constrains the version of pyflakes to < 1.1 ("pyflakes >= > 0.8.1, < 1.1”). Now, pyflakes was updated to 1.1. So could the requirements > constraint of flake8 be bumped safely? > > Thanks! > ~petr Hi petr, This is planne

Re: [code-quality] PyCQA has its own domain now!

2016-01-30 Thread Ian Cordasco
On Jan 30, 2016 3:04 AM, "Ian Lee" wrote: > > Awesome! Thanks Ian. > > Related question I’ve thought about whether we could come up with an avatar for the PyCQA organization, rather then using the default Space Invaders -esque default on GitHub: https://github.com/pycqa I would love that. If anyo

[code-quality] PyCQA has its own domain now!

2016-01-29 Thread Ian Cordasco
Hey all, I purchased pycqa.org ~30 minutes ago and set up flake8.pycqa.org and pydocstyle.pycqa.org as tests. Both redirect to the project documentation for those projects. As other PyCQA projects join and existing projects decide they'd like a nifty subdomain, we'll be expanding our usage of the

[code-quality] Pylint and Pylint's Astroid projects moved to the Python Code-Quality Authority

2015-12-10 Thread Ian Cordasco
Hi everyone! It's my pleasure to announce to you that PyLint and its Astroid library have migrated to git from mercurial and have migrated from BitBucket to the Python Code-Quality Authority (PyCQA) organization on GitHub. The new URLs are: - PyLint: https://github.com/pycqa/pylint - Astroid: h

Re: [code-quality] pep8 dep

2015-12-10 Thread Ian Cordasco
On Thu, Dec 10, 2015 at 8:52 AM, CARLOS@NT wrote: > Hello, > > I was just wondering why there is still a restriction on pep8 1.6.2 > If you're asking about Flake8, please read through the archives of this list and the closed bugs on Flake8. I've answered this several times on this list and it sh

Re: [code-quality] Moving pylint/astroid to GitHub

2015-12-07 Thread Ian Cordasco
On Mon, Dec 7, 2015 at 11:06 AM, Florian Bruhin wrote: > Hey, > > Claudiu and I plan to look at the migration of pylint/astroid to > GitHub tomorrow evening (GMT+2, i.e. in something like 24h). > > > A month or longer ago there was discussion by Claudiu about moving > pulling > > to the PyCQA (Py

Re: [code-quality] Moving pylint/astroid to GitHub

2015-10-25 Thread Ian Cordasco
On Fri, Oct 23, 2015 at 6:10 AM, Florian Bruhin wrote: > * Florian Bruhin [2015-10-16 17:51:34 +0200]: >> what do you think about moving pylint and astroid from Bitbucket/hg to >> GitHub/git? I've briefly talked with Claudiu about this, and he seems >> open to the idea and suggested I write this

Re: [code-quality] flake8 && python 3.5.0

2015-10-22 Thread Ian Cordasco
On Wed, Oct 21, 2015 at 8:00 PM, Luis San Martin wrote: > Hello, > > It seems asyncio syntax is not considered for python 3.5. I couldn't > find any reported issue regarding this > > i.e. > > I'm on flake8 (2.4.1) with python 3.5.0. Just cloned > https://github.com/dabeaz/curio.git and got this. >

Re: [code-quality] Flake8 in python script?

2015-10-22 Thread Ian Cordasco
On Thu, Oct 22, 2015 at 9:08 AM, Peter Bittner wrote: > Maybe like this? > > ``` > from flake8.main import main > > main() > ``` This is easily the most correct way of doing it. Notice that it's not exactly a public API and we do not return anything. You'll have to wrap it in ``` from flake8 im

Re: [code-quality] Moving pylint/astroid to GitHub

2015-10-21 Thread Ian Cordasco
On Wed, Oct 21, 2015 at 6:52 AM, Sylvain Thénault wrote: > Hi, > > at Logilab, we've been involved for years with mercurial development and we > fight daily against the centralized model offered by github, among others. The > latter explains why we've self-hosted pylint for such a long time even i

Re: [code-quality] (no subject)

2015-10-19 Thread Ian Cordasco
On Mon, Oct 19, 2015 at 8:09 AM, Luis San Martin wrote: > Hello, > > I've tried pep8 and flake8 on python 3.6.0a0 though both will not work. > > pathcl@sid:~/src$ flake8 > Traceback (most recent call last): > File "/home/pathcl/.pyenv/versions/3.6-dev/bin/flake8", line 7, in > from flake8.m

Re: [code-quality] Moving pylint/astroid to GitHub

2015-10-16 Thread Ian Cordasco
On Oct 16, 2015 10:56 AM, "Florian Bruhin" wrote: > > Hey, > > what do you think about moving pylint and astroid from Bitbucket/hg to > GitHub/git? I've briefly talked with Claudiu about this, and he seems > open to the idea and suggested I write this mail :) > > If people agree, I'll be able to m

Re: [code-quality] FreeBSD installation of pylint3

2015-10-12 Thread Ian Cordasco
On Mon, Oct 12, 2015 at 3:04 PM, Jeff Quast wrote: > The version of pip used matches the version of python it installs for. > > Use “pip3” or “pip3.5” or whatever is more suitable instead of “pip”. I've actually found it most reliable to do: $ python3.5 -m pip install pylint (and other packages)

Re: [code-quality] flake8 package versions

2015-10-07 Thread Ian Cordasco
On Wed, Oct 7, 2015 at 7:43 AM, Kálmán Viktor wrote: > Hey, > > are you guys planning to upgrade the pep8 and the pyflakes8 packages in > flake8? > If I update them manually everything works great, see: > > (xy)xy@xy:~$ flake8 --version > 2.4.1 (pep8: 1.6.2, pyflakes: 1.0.0, mccabe: 0.3.1) CPython

Re: [code-quality] Pylint reports, is anyone using them?

2015-08-22 Thread Ian Cordasco
On Sat, Aug 22, 2015 at 5:16 AM, Claudiu Popa wrote: > On Wed, Aug 19, 2015 at 5:15 PM, Ian Cordasco >> I think the deprecation path might look like providing a way for >> people to register reports as third party plugins. PyLint can provide >> an entry-point and then pass

Re: [code-quality] Pylint reports, is anyone using them?

2015-08-19 Thread Ian Cordasco
On Wed, Aug 19, 2015 at 12:46 AM, Sylvain Thénault wrote: > On 18 août 20:35, Skip Montanaro wrote: >> On Tue, Aug 18, 2015 at 5:00 PM, Claudiu Popa wrote: >> >> > For pylint users, what do you think about the removal of these >> > reports from pylint? Would it cause problems for you? >> > Are th

Re: [code-quality] flake8 on windows

2015-08-05 Thread Ian Cordasco
On Tue, Aug 4, 2015 at 10:24 AM, Mark Summerfield wrote: > Hi, > > According to the flake8 docs you can set your preferences in > ~/.config/flake8 on Linux -- and this works fine. > > But the docs don't mention Windows. I tried \User\mark\ and I tried the > root of my Python project (as flake8, as

Re: [code-quality] Not Seeing PEP8 Formatting Errors

2015-07-26 Thread Ian Cordasco
On Sun, Jul 26, 2015 at 12:39 PM, Rich Shepard wrote: > On Sun, 26 Jul 2015, Ian Cordasco wrote: > >>> So that would be formatted like so: >>> https://gist.github.com/sigmavirus24/67268ec32d614dffbcd1 > > > Ex2.py has this formatting: > > cate

Re: [code-quality] Not Seeing PEP8 Formatting Errors

2015-07-26 Thread Ian Cordasco
On Sun, Jul 26, 2015 at 11:37 AM, Ian Cordasco wrote: > On Sun, Jul 26, 2015 at 10:58 AM, Rich Shepard > wrote: >> I've numbered the lines in this code fragment: >> >> 83 category = Column(Unicode(16), value = 'Environmental', nullable = >> Fal

Re: [code-quality] Not Seeing PEP8 Formatting Errors

2015-07-26 Thread Ian Cordasco
On Sun, Jul 26, 2015 at 10:58 AM, Rich Shepard wrote: > I've numbered the lines in this code fragment: > > 83 category = Column(Unicode(16), value = 'Environmental', nullable = > False, > 84 CheckConstraint( > 84 "category IN('Air', 'Environmental', 'Health', 'Safety'

Re: [code-quality] Questions: Flake8-2.4.1

2015-07-25 Thread Ian Cordasco
On Sat, Jul 25, 2015 at 7:00 PM, Rich Shepard wrote: > On Sat, 25 Jul 2015, Ian Cordasco wrote: > >> Could you provide a bit more context for the code? A single line and an >> error message aren't very useful for me to reproduce with. > > > Ian, > > This i

Re: [code-quality] Questions: Flake8-2.4.1

2015-07-25 Thread Ian Cordasco
On Sat, Jul 25, 2015 at 11:36 AM, Rich Shepard wrote: > Just installed flake8-2.4.1. Checking a file generates this error: > > pwschemasl.py:698:39: E225 missing whitespace around operator > > on this line: > > rpt_filename=Column(BLOB, nullable=False) > > where position 39 is 'F'. So, I add

[code-quality] PEP8's repository has moved to the PyCQA organization on GitHub

2015-07-11 Thread Ian Cordasco
. For more information, please read http://www.coglib.com/~icordasc/blog/2015/07/moving-pep8-to-the-pycqa.html Cheers, Ian Cordasco Core developer of Flake8, requests, and a few other projects ___ code-quality mailing list code-quality@python.org https

Re: [code-quality] Searching multiple setup.cfg files for flake8 section?

2015-07-08 Thread Ian Cordasco
On Wed, Jul 8, 2015 at 10:15 AM, Willy Wu wrote: > > > On Wed, Jul 8, 2015 at 4:18 AM, Ian Cordasco > wrote: >> >> On Tue, Jul 7, 2015 at 2:11 PM, Willy Wu wrote: >> > So our flake8 might be a simpler case, where our lint tool invokes >> > flake8 o

Re: [code-quality] Searching multiple setup.cfg files for flake8 section?

2015-07-07 Thread Ian Cordasco
On Tue, Jul 7, 2015 at 2:11 PM, Willy Wu wrote: > So our flake8 might be a simpler case, where our lint tool invokes flake8 on > every file in the diff individually rather than a bunch of files at once. > Am I right to guess that if you do "flake8 .", then flake8 picks a single > per-project confi

Re: [code-quality] Searching multiple setup.cfg files for flake8 section?

2015-07-07 Thread Ian Cordasco
On Tue, Jul 7, 2015 at 12:56 PM, Willy Wu wrote: > Hey Ian, answers inline: > > On Tue, Jul 7, 2015 at 4:36 PM, Ian Cordasco > wrote: >> >> Hey Willy, >> >> Responses in-line: >> >> On Tue, Jul 7, 2015 at 4:05 AM, Willy Wu via code-quality >

Re: [code-quality] Searching multiple setup.cfg files for flake8 section?

2015-07-07 Thread Ian Cordasco
On Tue, Jul 7, 2015 at 8:48 AM, Ian Lee wrote: > > > On Tuesday, July 7, 2015, Ned Batchelder wrote: >> >> >> >> On 7/7/15 5:05 AM, Willy Wu via code-quality wrote: >> >> Hey all, >> >> We use flake8 at Dropbox and are pretty happy with it. But one small >> issue is the way that flake8 configura

Re: [code-quality] Searching multiple setup.cfg files for flake8 section?

2015-07-07 Thread Ian Cordasco
Hey Willy, Responses in-line: On Tue, Jul 7, 2015 at 4:05 AM, Willy Wu via code-quality wrote: > Hey all, > > We use flake8 at Dropbox and are pretty happy with it. But one small issue > is the way that flake8 configuration gets discovered. We use the > per-project configuration via setup.cfg

Re: [code-quality] pep8 vs. flake8 incompatibility ...

2015-06-29 Thread Ian Cordasco
emarks inline. > > All the best! > ~petr > > > > > On 29 Jun 2015, at 20:43, Ian Cordasco wrote: > >> On Mon, Jun 29, 2015 at 1:24 PM, Peter Danecek wrote: >>> >>> Dear all, >>> >>> I am writing this mail, after I was directed to

Re: [code-quality] pep8 vs. flake8 incompatibility ...

2015-06-29 Thread Ian Cordasco
On Mon, Jun 29, 2015 at 1:24 PM, Peter Danecek wrote: > > Dear all, > > I am writing this mail, after I was directed to it in [1]. I note that the > latest released versions of pep8 and flake8 are not compatible. This > situation now persists for several month. Correct, because pep8 has yet to

Re: [code-quality] Spurious unused variable messages

2015-06-10 Thread Ian Cordasco
On Wed, Jun 10, 2015 at 2:26 PM, Skip Montanaro wrote: > Code like this: > > import os > import tempfile > > def func(): > (fd, tmpfile) = tempfile.mkstemp(dir="/tmp") > os.close(fd) > print "{tmpfile}".format(**locals()) > > generates an unused variable warning

Re: [code-quality] Pyflakes 0.9.0 released

2015-05-31 Thread Ian Cordasco
; > New Features: > > - Report an error for 'return' outside a function > > I'd like to thank all the people who contributed to this release: > > - Aaron Meurer > - Adi Roiban > - Charles-Francois Natali > - Florent Xicluna > - Ian Cordasco >

Re: [code-quality] Possible spurious Flake8 warning F823

2015-04-02 Thread Ian Cordasco
On Thu, Apr 2, 2015 at 4:04 PM, Dan Wandschneider < daniel.wandschnei...@schrodinger.com> wrote: > All- > It seems like when I have a function that does "del" on a global variable, > flake complains that a local variable is referenced before assignment. As > far as I know, the following is valid

Re: [code-quality] pep8 / flake8 config files.

2015-03-17 Thread Ian Cordasco
)`` used to > take the config_file=True argument and then ``process_options(...)`` would > use that to set the config_file to DEFAULT_CONFIG (now named USER_CONFIG in > master). > > Does that clear up the piece that you were missing? > > > ~ Ian Lee > > On Tue, Mar 1

Re: [code-quality] pep8 / flake8 config files.

2015-03-17 Thread Ian Cordasco
On Wed, Mar 18, 2015 at 12:17 AM, Ian Lee wrote: > Hi All -- > > I just pushed a commit [1] to the pep8 repo that contains what I hope is a > fix for the issues with pep8 / flake8 config files that arose from the way > that pep8 #368 was handled, e.g. [2] (I think, I'm getting 500 errors when > I

Re: [code-quality] Pylint and sys path

2015-03-12 Thread Ian Cordasco
On Thu, Mar 12, 2015 at 3:51 PM, Dani Hodovic wrote: > I have a very large project with deeply nested hierarchies. To find the > root directory I use a source root walker and append the root directory to > sys.path. This way, I can easily import things in the project relative to > the root direct

Re: [code-quality] No output when running from nosetests and jobs != 1

2015-03-08 Thread Ian Cordasco
On Sat, Mar 7, 2015 at 10:23 PM, Michael McNeil Forbes wrote: > Dear Flake8ers, > > I am trying to run flake8 programmatically in a Test class as follows: > > import flake8.main > import nose.tools as nt > > class TestCodeFormat(object): > def setUp(self): > self.files = find_py_files(

Re: [code-quality] Locally increase max-complexity?

2015-03-08 Thread Ian Cordasco
On Sat, Mar 7, 2015 at 11:16 PM, Michael McNeil Forbes wrote: > Following the NIST recommendation: > > "For each module, either limit cyclomatic complexity to [the agreed-upon > limit] or provide a written explanation of why the limit was exceeded." > > Is there a way of providing a "written expl

Re: [code-quality] flake8 should check for unused multiple assignments

2015-03-06 Thread Ian Cordasco
On Fri, Mar 6, 2015 at 11:21 AM, Nik Nyby wrote: > Hi, > flake8 2.3.0 warns me when a variable is never actually used, e.g.: > a = 1 > > It doesn't seem to check for unused multiple assigments, e.g.: > obj, created = RefutationResponse.objects.update_or_create(...) > > -- > Nik Nyby > Prog

Re: [code-quality] How to support third-party python package

2015-02-23 Thread Ian Cordasco
On Mon, Feb 23, 2015 at 12:59 AM, DevOps wrote: > Swampy is third-party python package through pip installed, but flake8 > don’t detect it. > > > -- > Sent with Airmail > Hi "DevOps", Your question made little sense without a great deal of context, so I went off in search of context and found h

Re: [code-quality] Getting Flake8 to report syntax errors.

2015-01-15 Thread Ian Cordasco
On Jan 15, 2015 7:00 PM, "Kannan Goundan" wrote: > > Sample input file "test.py": > > def f(x) > print x > > Pyflakes reports the syntax error: > > $ pyflakes test.py > test.py:1:9: invalid syntax > def f(x) > ^ > $ > > But Flake8 doesn't: > > $ flake8 t

Re: [code-quality] [feature request] .gitignore option for flake8

2015-01-12 Thread Ian Cordasco
On Mon, Jan 12, 2015 at 5:28 PM, Laurent Bachelier wrote: > On 2015-01-12 23:20, Ben Finney wrote: >> Austin Macdonald >> writes: >> >>> I would like if flake8 could ignore all files that match the >>> .gitignore. >> >> Rather than making an option specific to one particular tool, I think >> the

Re: [code-quality] flake8 config file usage

2015-01-09 Thread Ian Cordasco
t; pep8 only looks for files in the tree if the user defined file doesn't > exist. That seems to be working much better. I saw you filed an issue and pull request against pep8. I'll respond there when I have a chance to look at them. > On Fri, Jan 2, 2015 at 10:55 AM, Ian Cordasco

Re: [code-quality] [Announcement] [mccabe] New way to run mccabe as a standalone script

2015-01-06 Thread Ian Cordasco
On Tue, Jan 6, 2015 at 8:25 AM, Ian Cordasco wrote: > Hey all, > > Ever since mccabe has become it's own package on PyPI, you've been > able to run it independently by executing > > python -m mccabe {opts} > > Since most of mccabe's downloads are via Fl

[code-quality] [Announcement] [mccabe] New way to run mccabe as a standalone script

2015-01-06 Thread Ian Cordasco
Hey all, Ever since mccabe has become it's own package on PyPI, you've been able to run it independently by executing python -m mccabe {opts} Since most of mccabe's downloads are via Flake8, the project has resisted adding an entry point to make an easy-to-access console script. I'm a thorou

Re: [code-quality] flake8 config file usage

2015-01-02 Thread Ian Cordasco
--ignore=E111,E265 ex.py > ex.py:1:21: W291 trailing whitespace > ex.py:3:4: F821 undefined name 'x' > ex.py:3:9: F821 undefined name 'y' > ex.py:6:4: F821 undefined name 'j' > ex.py:6:6: E711 comparison to None should be 'if cond is None:' > &g

Re: [code-quality] flake8 config file usage

2014-12-29 Thread Ian Cordasco
On Mon, Dec 29, 2014 at 3:08 PM, Ian Cordasco wrote: > On Mon, Dec 29, 2014 at 1:57 PM, Jason Killen wrote: >> I've just started using flake8. I'm using 2.2.5 (pep8: 1.5.7, pyflakes: >> 0.8.1, mccabe: 0.3, flake8-debugger: 1.3.2) CPython 2.7.1 on Darwin >> >>

Re: [code-quality] flake8 config file usage

2014-12-29 Thread Ian Cordasco
On Mon, Dec 29, 2014 at 1:57 PM, Jason Killen wrote: > I've just started using flake8. I'm using 2.2.5 (pep8: 1.5.7, pyflakes: > 0.8.1, mccabe: 0.3, flake8-debugger: 1.3.2) CPython 2.7.1 on Darwin > > Config files don't seem to be being read in. I've tried defining it > (config.cfg) using --conf

[code-quality] [Meta] IRC Channel Now available

2014-12-27 Thread Ian Cordasco
Hey all, I've just registered ##python-code-quality on irc.freenode.net so we have more real-time discussions there if desired. See you there, Ian ___ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-qualit

[code-quality] [flake8] [idea] Optional Checks in Flake8

2014-12-18 Thread Ian Cordasco
Hey all, I was working with Joe Gordon (who's subscribed to this list) and we realized there's a very real desire for the ability to register a check but not have it turned on by default. Thanks to some free time today, I've been able to throw together an example of what that would look like in fl

Re: [code-quality] flake8 and per-file doctest checking

2014-12-15 Thread Ian Cordasco
On Mon, Dec 15, 2014 at 12:03 AM, Marius Gedminas wrote: > On Fri, Dec 12, 2014 at 09:19:10AM -0600, Ian Cordasco wrote: >> On Fri, Dec 12, 2014 at 2:25 AM, Marius Gedminas wrote: >> > flake8 has the doctests option that enables doctest checking. >> > Unfortunately

Re: [code-quality] flake8 and per-file doctest checking

2014-12-12 Thread Ian Cordasco
On Fri, Dec 12, 2014 at 2:25 AM, Marius Gedminas wrote: > flake8 has the doctests option that enables doctest checking. > Unfortunately it's global. This is actually a feature of pep8. It's available in flake8 because it is available in pep8. > In objgraph I have a file (objgraph.py) where the d

Re: [code-quality] This seems like a good warning candidate...

2014-12-08 Thread Ian Cordasco
On Mon, Dec 8, 2014 at 3:44 PM, Phil Frost wrote: > On Mon, Dec 8, 2014 at 3:21 PM, Ian Cordasco > wrote: >> >> I'm not sure in what case code like what Skip shared wouldn't result >> in an error: >> >> for i in range(1, 10): >>

Re: [code-quality] This seems like a good warning candidate...

2014-12-08 Thread Ian Cordasco
On Mon, Dec 8, 2014 at 2:07 PM, Skip Montanaro wrote: > > On Mon, Dec 8, 2014 at 1:32 PM, Phil Frost wrote: >> >> Maybe. As a matter of principle, Pyflakes should only emit a warning for >> things that it is sure is an error. > > > The avoidance of false positives is a noble goal, but given the d

Re: [code-quality] This seems like a good warning candidate...

2014-12-08 Thread Ian Cordasco
On Dec 8, 2014 12:17 PM, "Skip Montanaro" wrote: > > I just bumped into a bug, reusing the same loop variable in two nested for loops. Here's an example: > > def f(x): > for i in range(x): > for i in [1, 2, 3]: > print i > > Neither pylint nor flake8 warned about this probl

Re: [code-quality] Possible to make extensions subdirectory a separate package?

2014-12-04 Thread Ian Cordasco
On Dec 4, 2014 3:19 PM, "Anne Mulhern" wrote: > > Hi! > > I think that making contents of proposed extensions subdirectory a separate > package from pylint itself would be a great convenience for users who may > not be ready to update to most recent version of pylint, but are interested > in some

[code-quality] PyLint catching comprehension binding leaks (was: Warn on list comprehension variables used outside list comprehensions?)

2014-11-26 Thread Ian Cordasco
uot; is assigned to nothing >> (expression-not-assigned) > > So, it warns about the first case in py2 and gives an error in py3 which > is expected. > > But it seems to be confused by the second case, flagging "y" as an > invalid variable-name at the assignment point

Re: [code-quality] Warn on list comprehension variables used outside list comprehensions?

2014-11-26 Thread Ian Cordasco
On Wed, Nov 26, 2014 at 9:27 AM, Keith Derrick wrote: > Definitely seems like something that should be warned about. > > For python2 it ought to be an error (which can always be turned off) for > either code snippet. PyFlakes doesn't allow you to ignore errors. Flake8 does so this is a moot point

Re: [code-quality] Warn on list comprehension variables used outside list comprehensions?

2014-11-26 Thread Ian Cordasco
On Wed, Nov 26, 2014 at 8:44 AM, Skip Montanaro wrote: > On Wed, Nov 26, 2014 at 8:30 AM, Ian Cordasco > wrote: >> >> The trick here would be ensuring this only applies to Python 2. Take >> for example the following on Python 3: >> >> [x for x in range(3)

Re: [code-quality] Warn on list comprehension variables used outside list comprehensions?

2014-11-26 Thread Ian Cordasco
On Tue, Nov 25, 2014 at 11:41 PM, wrote: > Python binds list comprehension variables to the local scope which has > caused some subtle bugs. Is it possible to add a warning for this in > pyflakes? I haven't implemented it yet, but here are the example > tests: > > def test_listCompVariableUsedOut

Re: [code-quality] flake8 missing output issues

2014-10-18 Thread Ian Cordasco
On Fri, Oct 17, 2014 at 11:23 AM, Weeble wrote: > I'm having some trouble with flake8 when it's invoked from another > process, such as in vim. Sometimes its output goes missing - I just > get back an empty string. The problem vanishes if I > PYTHONUNBUFFERED=1, so I suspect it is related to how f

Re: [code-quality] flake8 enabling clone digger integration

2014-10-18 Thread Ian Cordasco
On Sat, Oct 18, 2014 at 7:45 AM, Sreekanth S Rameshaiah wrote: > Dear Developers, > Greetings ! > I downloaded flake8 from gitlab and ifound it as a very useful tool to > ensure code quality. > Was wondering it was possible to integrate clone digger > (http://clonedigger.sourceforge.net/) into fla

Re: [code-quality] reclaiming pyflakes maintainership

2014-09-22 Thread Ian Cordasco
On Mon, Sep 22, 2014 at 4:00 PM, Phil Frost wrote: > Would people mind if I re-claimed maintainership of pyflakes? I have the > greatest gratitude for the people who have helped keep it current and > updated all these years, but now I'm finding myself with some time on my > hands and a desire to d

[code-quality] Flake8 Development Has Moved

2014-09-21 Thread Ian Cordasco
/~icordasc/blog/2014/09/flake8-in-transition.html Cheers, Ian Cordasco Flake8 Maintainer and Core Developer ___ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-quality

Re: [code-quality] Request For Comments: Moving Flake8 development to Git

2014-09-13 Thread Ian Cordasco
On 9/13/14, Tarek Ziadé wrote: > Le 13/09/14 09:52, Ben Finney a écrit : >> Sylvain Thénault >> writes: >> >>> On 12 septembre 08:18, Carl Crowder wrote: I think it's a good idea. I personally dislike contributing to hg-based projects because it's such a faff for me compared to using >>

Re: [code-quality] Request For Comments: Moving Flake8 development to Git

2014-09-12 Thread Ian Cordasco
On 9/12/14, Skip Montanaro wrote: > On Fri, Sep 12, 2014 at 7:35 AM, Ian Cordasco > wrote: >> I was actually wondering if we should just keep it on BitBucket but >> convert >> it to git. This would allow the URL to remain the same so people will not >> be >>

Re: [code-quality] Request For Comments: Moving Flake8 development to Git

2014-09-12 Thread Ian Cordasco
I was actually wondering if we should just keep it on BitBucket but convert it to git. This would allow the URL to remain the same so people will not be misled to the old repository. Granted clicking a link to take them to the git version isn't terrible but it just seems easier. Also while I'm the

[code-quality] Request For Comments: Moving Flake8 development to Git

2014-09-11 Thread Ian Cordasco
Hey all, Since the beginning Flake8 has been developed entirely in mercurial. There's been some push back lately about it not being available in git. For a time there, Bruno maintained a git mirror on which we accepted pull requests, but neither of us had the time to maintain it after a while. Giv

  1   2   >