Skip to content

Commit

Permalink
MINOR: [Python] Fix pre-commit and archery flake8 to honor pyarrow co…
Browse files Browse the repository at this point in the history
…nfig (#15067)

#14769 changed the flake8 config for pyarrow to raise max line length to 88, but our linting checks didn't actually follow that. 

Lead-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Co-authored-by: Jacob Wujciak-Jens <jacob@wujciak.de>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
  • Loading branch information
jorisvandenbossche and assignUser committed Jan 16, 2023
1 parent 16c85b2 commit 2f8e2b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ repos:
- file
- python
exclude: vendored
args: [--config, python/setup.cfg]
1 change: 1 addition & 0 deletions dev/archery/archery/utils/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def python_linter(src, fix=False):

yield LintResult.from_cmd(
flake8("--extend-exclude=" + ','.join(flake8_exclude),
"--config=" + os.path.join(src.python, "setup.cfg"),
setup_py, src.pyarrow, os.path.join(src.python, "examples"),
src.dev, check=False))

Expand Down

0 comments on commit 2f8e2b2

Please sign in to comment.