Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29979570: Issue 7205 - Change classes that use ALL_CAPS naming to be CamelCase (Closed)

Created:
Jan. 12, 2019, 1:21 a.m. by rhowell
Modified:
Jan. 14, 2019, 3:39 p.m.
Reviewers:
Vasily Kuznetsov
Base URL:
https://hg.adblockplus.org/python-abp/
Visibility:
Public.

Description

Issue 7205 - Change classes that use ALL_CAPS naming to be CamelCase

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments on PS1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -68 lines) Patch
M abp/filters/__init__.py View 4 chunks +12 lines, -12 lines 0 comments Download
M abp/filters/parser.py View 1 7 chunks +17 lines, -17 lines 0 comments Download
M tests/test_parser.py View 1 4 chunks +38 lines, -38 lines 0 comments Download
M tox.ini View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
rhowell
Jan. 12, 2019, 1:21 a.m. (2019-01-12 01:21:47 UTC) #1
rhowell
Hi Vasily! Sorry to keep bugging you. ;) Is there someone else I should be ...
Jan. 12, 2019, 1:25 a.m. (2019-01-12 01:25:31 UTC) #2
Vasily Kuznetsov
Hi Rosie, No worries about bugging me -- I'm the right reviewer for CMS code. ...
Jan. 12, 2019, 7:23 p.m. (2019-01-12 19:23:39 UTC) #3
rhowell
https://codereview.adblockplus.org/29979570/diff/29979571/abp/filters/parser.py File abp/filters/parser.py (right): https://codereview.adblockplus.org/29979570/diff/29979571/abp/filters/parser.py#newcode52 abp/filters/parser.py:52: class SelectorType: # flake8: noqa (this is a namespace ...
Jan. 12, 2019, 9:18 p.m. (2019-01-12 21:18:35 UTC) #4
Vasily Kuznetsov
LGTM https://codereview.adblockplus.org/29979570/diff/29979571/tests/test_parser.py File tests/test_parser.py (right): https://codereview.adblockplus.org/29979570/diff/29979571/tests/test_parser.py#newcode22 tests/test_parser.py:22: SelectorType as St, FilterAction as Fa, FilterOption as ...
Jan. 14, 2019, 2:14 p.m. (2019-01-14 14:14:35 UTC) #5
rhowell
Jan. 14, 2019, 3:36 p.m. (2019-01-14 15:36:57 UTC) #6
On 2019/01/14 14:14:35, Vasily Kuznetsov wrote:
> LGTM
> 
> https://codereview.adblockplus.org/29979570/diff/29979571/tests/test_parser.py
> File tests/test_parser.py (right):
> 
>
https://codereview.adblockplus.org/29979570/diff/29979571/tests/test_parser.p...
> tests/test_parser.py:22: SelectorType as St, FilterAction as Fa, FilterOption
as
> Opt,
> On 2019/01/12 21:18:34, rhowell wrote:
> > On 2019/01/12 19:23:38, Vasily Kuznetsov wrote:
> > 
> > > Maybe just the first letters of the words in
> > > CAPS: ST, FA and FO. How does this feel?
> > 
> > That produces another flake8 error: `N814 camelcase 'FA' imported as
> constant`.
> > I tried a couple different options. SelectorType is the only one that causes
> the
> > lines to be too long, so I shortened it to SelType. But the rest of them
could
> > just be imported as-is?
> 
> I see. Pep8-naming is stricter than I expected. This is a bit verbose but I
> don't really have better ideas :/

Gotcha. I guess I'll push it then.  :)

Powered by Google App Engine
This is Rietveld