Skip to content

Commit

Permalink
Add yapf
Browse files Browse the repository at this point in the history
  • Loading branch information
fsschneider committed Jan 21, 2022
1 parent c0a6a05 commit ee29d57
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,20 @@ jobs:
pip install isort
- name: Run isort
run: |
isort . --check
isort . --check
yapf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install yapf
run: |
python -m pip install --upgrade pip
pip install yapf
- name: Run yapf
run: |
yapf . --diff --recursive
21 changes: 13 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ setup_requires =
# Dependencies of the project:
install_requires =
absl-py==0.14.0
numpy>=1.19.2
pandas>=1.3.1
# ctcdecode>=1.0.3
# ctcdecode>=1.0.3
levenshtein>=0.12.0
librosa>=0.8.1
numpy>=1.19.2
pandas>=1.3.1
six>=1.15.0
python_requires = >=3.7

Expand All @@ -50,14 +50,15 @@ python_requires = >=3.7
dev =
isort
pylint
yapf

# JAX Core
jax_core_deps =
jax==0.2.17
flax==0.3.5
jax==0.2.17
optax==0.0.9
tensorflow_datasets==4.4.0
tensorflow-cpu==2.5.0
tensorflow_datasets==4.4.0

# JAX CPU
jax_cpu =
Expand All @@ -74,15 +75,19 @@ pytorch =
torch==1.9.1+cu111
torchvision==0.10.1+cu111

# Linting configuration
# Linting configuration #

# isort configuration
# yapf configuration
[yapf]
based_on_style = google
column_limit = 80
indent_width = 2

# isort configuration
[isort]
profile=google

# pylint configuration

[pylint.MASTER]

# Pickle collected data for later comparisons.
Expand Down

0 comments on commit ee29d57

Please sign in to comment.