Skip to content

Conversation

@dnomadb
Copy link
Contributor

@dnomadb dnomadb commented Jun 5, 2018

No description provided.

@dnomadb dnomadb requested a review from normanb June 5, 2018 23:35
for i in range(3):
timg[i, rRowInds[0]: rRowInds[1], rColInds[0]: rColInds[1]] = 100
timg[-1, rRowInds[0]: rRowInds[1], rColInds[0]: rColInds[1]] = 255
timg[i, rRowInds[0] : rRowInds[1], rColInds[0] : rColInds[1]] = 100
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

black is adding these, which flake8 does not like. @perrygeo @sgillies @normanb @vincentsarago seen this before? Also is doing the same on a dummy file:

an_indexable_list = list(range(10))

a = [1]
b = [3]
c = [5]


an_indexable_list[a[0]:b[0]]
an_indexable_list[b[0]:c[0]]

Is black formatted to

an_indexable_list = list(range(10))

a = [1]
b = [3]
c = [5]


an_indexable_list[a[0] : b[0]]
an_indexable_list[b[0] : c[0]]

This only occurs when the indexing variable is itself indexed, ie this passes both:

an_indexable_list = list(range(10))

a = 1
b = 3
c = 5


an_indexable_list[a:b]
an_indexable_list[b:c]

@dnomadb dnomadb requested a review from perrygeo June 7, 2018 22:42
rev: v1.2.3
hooks:
- id: flake8
args: [--max-line-length=88]
Copy link
Contributor

@perrygeo perrygeo Nov 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to sync the pre-commit config with PXM's.

Base automatically changed from master to main March 10, 2021 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants