Skip to content

Commit 50cb867

Browse files
flake8 format breaks pip (ConfigParser) when present in setup.cfg, moving to the command for now
1 parent a356f03 commit 50cb867

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- script: python -m pip install flake8
3636
displayName: 'Installing flake8'
3737
# pandas/_libs/src is C code, so no need to search there.
38-
- script: flake8 pandas --exclude pandas/_libs/src
38+
- script: flake8 pandas --exclude pandas/_libs/src --format="##vso[task.logissue type=error;sourcepath=%(path)s;linenumber=%(row)s;columnnumber=%(col)s;code=%(code)s;]%(text)s"
3939
displayName: 'Linting *.py code'
4040
condition: true
4141
- script: flake8 setup.py

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ignore =
2222
C409, # Unnecessary (list/tuple) passed to tuple() - (remove the outer call to tuple()/rewrite as a tuple literal).
2323
C410 # Unnecessary (list/tuple) passed to list() - (remove the outer call to list()/rewrite as a list literal).
2424
max-line-length = 79
25-
format = ##vso[task.logissue type=error;sourcepath=%(path)s;linenumber=%(row)s;columnnumber=%(col)s;code=%(code)s;]%(text)s
25+
#format = ##vso[task.logissue type=error;sourcepath=%(path)s;linenumber=%(row)s;columnnumber=%(col)s;code=%(code)s;]%(text)s
2626

2727
[yapf]
2828
based_on_style = pep8

0 commit comments

Comments
 (0)