<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/flake8.git/src/flake8/utils.py, branch noqa_continuation</title>
<subtitle>gitlab.com: pycqa/flake8.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/flake8.git/'/>
<entry>
<title>split lines the same when read from stdin</title>
<updated>2020-01-16T22:10:33+00:00</updated>
<author>
<name>Anthony Sottile</name>
<email>asottile@umich.edu</email>
</author>
<published>2020-01-16T22:06:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/flake8.git/commit/?id=32c7ebcd7b527a70e96906e3d995ab79a5c39464'/>
<id>32c7ebcd7b527a70e96906e3d995ab79a5c39464</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Only use multiprocessing when the method is fork</title>
<updated>2019-10-28T16:43:30+00:00</updated>
<author>
<name>Anthony Sottile</name>
<email>asottile@umich.edu</email>
</author>
<published>2019-10-28T16:17:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/flake8.git/commit/?id=51f32bbe93497143b204b95b7ca5513e61754fef'/>
<id>51f32bbe93497143b204b95b7ca5513e61754fef</id>
<content type='text'>
In python3.8 on macos and in all versions on windows the multiprocessing
method is `spawn` which does not preserve class state.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In python3.8 on macos and in all versions on windows the multiprocessing
method is `spawn` which does not preserve class state.
</pre>
</div>
</content>
</entry>
<entry>
<title>Simplify bandit config and allow `assert`</title>
<updated>2019-09-08T06:42:33+00:00</updated>
<author>
<name>Anthony Sottile</name>
<email>asottile@umich.edu</email>
</author>
<published>2019-09-08T06:42:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/flake8.git/commit/?id=f0cd1537acbe2a737e2d5b111c5ee7a05e07c0a2'/>
<id>f0cd1537acbe2a737e2d5b111c5ee7a05e07c0a2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>utils: Tighten `parse_comma_separated_list()` contract further</title>
<updated>2019-07-28T14:43:06+00:00</updated>
<author>
<name>Eric N. Vander Weele</name>
<email>ericvw@gmail.com</email>
</author>
<published>2019-07-28T14:39:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/flake8.git/commit/?id=1757bce321c8276b6fad77ce15766f0c81e46957'/>
<id>1757bce321c8276b6fad77ce15766f0c81e46957</id>
<content type='text'>
Now that callers are ensuring that `value` is not `None`, we can further
tighten the contract and remove the conditional to account when `None`
is passed-in for `value`.

Additionally, add a new test vector to account for when an empty string
is passed in, which would fail `if no value`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that callers are ensuring that `value` is not `None`, we can further
tighten the contract and remove the conditional to account when `None`
is passed-in for `value`.

Additionally, add a new test vector to account for when an empty string
is passed in, which would fail `if no value`.
</pre>
</div>
</content>
</entry>
<entry>
<title>Normalize option values additionally by type</title>
<updated>2019-07-28T14:43:06+00:00</updated>
<author>
<name>Eric N. Vander Weele</name>
<email>ericvw@gmail.com</email>
</author>
<published>2019-07-28T14:39:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/flake8.git/commit/?id=f01011a403fd806571b8b0fa172ec39f54bb9e83'/>
<id>f01011a403fd806571b8b0fa172ec39f54bb9e83</id>
<content type='text'>
Now that the contract has narrowed for `utils.normalize_paths()`
and `utils.parse_comma_separated_list()`, `Option.normalize()` must
handle when the option value is either a singular value or a sequence
(i.e., `list`) of values.

The paths where `Option.normalize()` is called are:

1. options/config.py: `MergedConfigParser.parse_*_config()`
    There are 3 paths wehre eventually `_normalize_value()` is called.
2. options/manager.py: `OptionManager.parse_args()`

For (1), values are coming from the `configparser` module.  For (2),
values are coming from `optparse.OptionParser`.

Rudimentary investigation seems to implicate that
`optparse.OptionParser.parse_args()` always returns values in a `list`
because it accumulates values.  However, for `configparser`, the values
are a string due to the key-value nature of the INI format.

Given that `Option.normalize()` is the convergence point where
normalization of an option occurs, it is acceptable for the method to
also handle the parsing comma-separated values and path normalization by
the option value's type.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that the contract has narrowed for `utils.normalize_paths()`
and `utils.parse_comma_separated_list()`, `Option.normalize()` must
handle when the option value is either a singular value or a sequence
(i.e., `list`) of values.

The paths where `Option.normalize()` is called are:

1. options/config.py: `MergedConfigParser.parse_*_config()`
    There are 3 paths wehre eventually `_normalize_value()` is called.
2. options/manager.py: `OptionManager.parse_args()`

For (1), values are coming from the `configparser` module.  For (2),
values are coming from `optparse.OptionParser`.

Rudimentary investigation seems to implicate that
`optparse.OptionParser.parse_args()` always returns values in a `list`
because it accumulates values.  However, for `configparser`, the values
are a string due to the key-value nature of the INI format.

Given that `Option.normalize()` is the convergence point where
normalization of an option occurs, it is acceptable for the method to
also handle the parsing comma-separated values and path normalization by
the option value's type.
</pre>
</div>
</content>
</entry>
<entry>
<title>utils: Change `normalize_paths()` contract</title>
<updated>2019-07-28T14:43:06+00:00</updated>
<author>
<name>Eric N. Vander Weele</name>
<email>ericvw@gmail.com</email>
</author>
<published>2019-07-28T14:39:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/flake8.git/commit/?id=1ba56b9056fd60dbb0f991fe5a4ac0bb6ad85cb9'/>
<id>1ba56b9056fd60dbb0f991fe5a4ac0bb6ad85cb9</id>
<content type='text'>
The `normalize_paths()` utility was doing too much — parsing
unstructured configuration path data and dispatching the scrubbed paths
to be normalized.

Towards moving the parsing of unstructured configuration path data
closer towards were configuration occurs, have the utility accept only
structured input for normalizing paths.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `normalize_paths()` utility was doing too much — parsing
unstructured configuration path data and dispatching the scrubbed paths
to be normalized.

Towards moving the parsing of unstructured configuration path data
closer towards were configuration occurs, have the utility accept only
structured input for normalizing paths.
</pre>
</div>
</content>
</entry>
<entry>
<title>utils: Assert desired contract for `normalize_paths()`</title>
<updated>2019-07-28T14:43:06+00:00</updated>
<author>
<name>Eric N. Vander Weele</name>
<email>ericvw@gmail.com</email>
</author>
<published>2019-07-28T14:39:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/flake8.git/commit/?id=a0cd55fd6d2697f4823d1de24c9dda5858b27610'/>
<id>a0cd55fd6d2697f4823d1de24c9dda5858b27610</id>
<content type='text'>
This is a separate commit so it can be dropped during a rebase or revert
independently.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a separate commit so it can be dropped during a rebase or revert
independently.
</pre>
</div>
</content>
</entry>
<entry>
<title>utils: Change `parse_comma_separated_list()` contract</title>
<updated>2019-07-28T14:43:02+00:00</updated>
<author>
<name>Eric N. Vander Weele</name>
<email>ericvw@gmail.com</email>
</author>
<published>2019-07-28T14:39:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/flake8.git/commit/?id=9283f2f03f5c8e61eb5a6bca2f10afadb0d90317'/>
<id>9283f2f03f5c8e61eb5a6bca2f10afadb0d90317</id>
<content type='text'>
This is the initial incision point to only accept `str` (or `None`) for
parsing out comma/whitespace/regexp separated values.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is the initial incision point to only accept `str` (or `None`) for
parsing out comma/whitespace/regexp separated values.
</pre>
</div>
</content>
</entry>
<entry>
<title>utils: Assert desired contract for `parse_comma_separated_list()`</title>
<updated>2019-07-28T14:39:27+00:00</updated>
<author>
<name>Eric N. Vander Weele</name>
<email>ericvw@gmail.com</email>
</author>
<published>2019-07-28T14:39:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/flake8.git/commit/?id=9fbaf2d2ea49adb97cc45be83a966fb3c7f292f2'/>
<id>9fbaf2d2ea49adb97cc45be83a966fb3c7f292f2</id>
<content type='text'>
This is a separate commit so it can be dropped during a rebase or
reverted independently.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a separate commit so it can be dropped during a rebase or
reverted independently.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix / improve recently merged patches + CI</title>
<updated>2019-07-08T21:22:51+00:00</updated>
<author>
<name>Anthony Sottile</name>
<email>asottile@umich.edu</email>
</author>
<published>2019-07-08T20:44:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/flake8.git/commit/?id=d4b0073167284c2ebb8c360afa376c4ff598f70c'/>
<id>d4b0073167284c2ebb8c360afa376c4ff598f70c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
