Skip to content

Commit

Permalink
Add a formatting script.
Browse files Browse the repository at this point in the history
  • Loading branch information
chaiko committed Feb 24, 2024
1 parent 80bc132 commit ed22439
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions presubmit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#! /bin/bash

# Set max line length as 100.
isort -l 100 tfrecord_dataset setup.py
yapf --style='{based_on_style: yapf, column_limit: 100}' -p -i -r tfrecord_dataset setup.py
flake8 . --ignore=F841,E124,E126,W5 --max-line-length=100 --indent-size=2 --extend-exclude=venv*

0 comments on commit ed22439

Please sign in to comment.