<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/flake8.git/src/flake8/utils.py, branch uncap-flake8</title>
<subtitle>gitlab.com: pycqa/flake8.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/flake8.git/'/>
<entry>
<title>Check for alternate_separator only when truthy</title>
<updated>2016-07-22T22:12:49+00:00</updated>
<author>
<name>Ian Cordasco</name>
<email>graffatcolmingov@gmail.com</email>
</author>
<published>2016-07-22T22:12:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/flake8.git/commit/?id=4a46412bf6007356775657e4f0bc452564dec2d1'/>
<id>4a46412bf6007356775657e4f0bc452564dec2d1</id>
<content type='text'>
In the case where alternate separator is None, we use '' which will
always be in any string. We want to skip that case.

Also we only run our tests on AppVeyor, not all of our testenvs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the case where alternate separator is None, we use '' which will
always be in any string. We want to skip that case.

Also we only run our tests on AppVeyor, not all of our testenvs.
</pre>
</div>
</content>
</entry>
<entry>
<title>Check for both os.path.sep and os.path.altsep</title>
<updated>2016-07-22T22:07:52+00:00</updated>
<author>
<name>Ian Cordasco</name>
<email>graffatcolmingov@gmail.com</email>
</author>
<published>2016-07-22T22:02:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/flake8.git/commit/?id=473106fee1ec4fcc9e2dde55c821effcd34e8a97'/>
<id>473106fee1ec4fcc9e2dde55c821effcd34e8a97</id>
<content type='text'>
When normalizing paths, we want to handle the following cases:

- Someone is using a Windows-style path on Windows
- Someone is using a Unix style path on Unix
- Someone is using a Unix style path on Windows

os.path.sep will handle the native directory separator character while
os.path.altsep (when set) will handle alternate separators. Further,
os.path.abspath does the right thing on Windows when handed a Unix-style
path.

Related to #175
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When normalizing paths, we want to handle the following cases:

- Someone is using a Windows-style path on Windows
- Someone is using a Unix style path on Unix
- Someone is using a Unix style path on Windows

os.path.sep will handle the native directory separator character while
os.path.altsep (when set) will handle alternate separators. Further,
os.path.abspath does the right thing on Windows when handed a Unix-style
path.

Related to #175
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix up merge request 78</title>
<updated>2016-07-21T00:28:13+00:00</updated>
<author>
<name>Ian Cordasco</name>
<email>graffatcolmingov@gmail.com</email>
</author>
<published>2016-07-21T00:28:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/flake8.git/commit/?id=a1fdb5a2b5934ef5629df2335b2d495ba5252812'/>
<id>a1fdb5a2b5934ef5629df2335b2d495ba5252812</id>
<content type='text'>
This simplifies the changes, reduces the scope of refactors apparently
for refactoring's sake and ensures that the internals are reasonable.

It also airs on the side of preserving information rather than
discarding or overwriting it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This simplifies the changes, reduces the scope of refactors apparently
for refactoring's sake and ensures that the internals are reasonable.

It also airs on the side of preserving information rather than
discarding or overwriting it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow stdin and directly named files to be excluded from check</title>
<updated>2016-07-20T21:45:01+00:00</updated>
<author>
<name>Leonardo Rochael Almeida</name>
<email>leorochael@gmail.com</email>
</author>
<published>2016-07-20T19:43:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/flake8.git/commit/?id=b2b4cae8e3ef27b8545a8d98a35dc7b07b1b132f'/>
<id>b2b4cae8e3ef27b8545a8d98a35dc7b07b1b132f</id>
<content type='text'>
For the sake of IDEs, check filename for exclusion even if the file is directly
named in the command line.

Also, if the filename is "-" (stdin) check the provided display name for
exclusion.

Also, avoid calling path checking functions on the "-" filename:

 * fnmatch.fnmatch()
 * os.path.isdir()
 * os.path.exists()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For the sake of IDEs, check filename for exclusion even if the file is directly
named in the command line.

Also, if the filename is "-" (stdin) check the provided display name for
exclusion.

Also, avoid calling path checking functions on the "-" filename:

 * fnmatch.fnmatch()
 * os.path.isdir()
 * os.path.exists()
</pre>
</div>
</content>
</entry>
<entry>
<title>Add python and platform details to --version</title>
<updated>2016-06-28T18:02:50+00:00</updated>
<author>
<name>Ian Cordasco</name>
<email>graffatcolmingov@gmail.com</email>
</author>
<published>2016-06-28T18:02:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/flake8.git/commit/?id=c9fb680dffa37517bbda76cc2b572d6f192508bd'/>
<id>c9fb680dffa37517bbda76cc2b572d6f192508bd</id>
<content type='text'>
On Flake8 2.x we added the information about the implementation,
version, and operating system to the --version output to make helping
users easier. In short they can pretty simply just give us the output
from

    flake8 --version

And we can get a lot of the information that we need.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On Flake8 2.x we added the information about the implementation,
version, and operating system to the --version output to make helping
users easier. In short they can pretty simply just give us the output
from

    flake8 --version

And we can get a lot of the information that we need.
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle optional parameters that were never supported</title>
<updated>2016-06-28T14:36:24+00:00</updated>
<author>
<name>Ian Cordasco</name>
<email>graffatcolmingov@gmail.com</email>
</author>
<published>2016-06-28T14:36:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/flake8.git/commit/?id=2d3e277b1e0c0a24c30c611558692f95d14a8470'/>
<id>2d3e277b1e0c0a24c30c611558692f95d14a8470</id>
<content type='text'>
Previously, pycodestyle never introspected the argument names for
classes except to require that ``tree`` be an argument it could pass.
For Flake8 3.0, we lifted that restriction, but old plugins seem to
have cargo-culted their __init__ signature to be

    def __init__(self, tree, builtins=None):

For some yet unknown reason. This was causing an AttributeError. By
updating flake8.utils.parameters_for to return a dictionary that
indicates whether the parameter is required or not, we can side-step
this by simply ignoring the parameter if it has a default value and
we cannot provide it.

Closes #151
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, pycodestyle never introspected the argument names for
classes except to require that ``tree`` be an argument it could pass.
For Flake8 3.0, we lifted that restriction, but old plugins seem to
have cargo-culted their __init__ signature to be

    def __init__(self, tree, builtins=None):

For some yet unknown reason. This was causing an AttributeError. By
updating flake8.utils.parameters_for to return a dictionary that
indicates whether the parameter is required or not, we can side-step
this by simply ignoring the parameter if it has a default value and
we cannot provide it.

Closes #151
</pre>
</div>
</content>
</entry>
<entry>
<title>Search current directory if no paths are specified</title>
<updated>2016-06-26T20:08:58+00:00</updated>
<author>
<name>Ian Cordasco</name>
<email>graffatcolmingov@gmail.com</email>
</author>
<published>2016-06-26T20:08:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/flake8.git/commit/?id=b194717d1a35862961efed0f4411d774024ec75d'/>
<id>b194717d1a35862961efed0f4411d774024ec75d</id>
<content type='text'>
This fixes a regression in behaviour from 2.x to 3.

Closes #150
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes a regression in behaviour from 2.x to 3.

Closes #150
</pre>
</div>
</content>
</entry>
<entry>
<title>Move flake8 into src</title>
<updated>2016-06-25T15:12:13+00:00</updated>
<author>
<name>Ian Cordasco</name>
<email>graffatcolmingov@gmail.com</email>
</author>
<published>2016-06-25T15:12:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/flake8.git/commit/?id=1a2c68f5da8ae95b8a156ef6f6a772bf82cf0f88'/>
<id>1a2c68f5da8ae95b8a156ef6f6a772bf82cf0f88</id>
<content type='text'>
This is an emerging best practice and there is little reason to not
follow it
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is an emerging best practice and there is little reason to not
follow it
</pre>
</div>
</content>
</entry>
</feed>
