Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
wq2012 committed Sep 21, 2024
1 parent da401d4 commit d412a71
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 24 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pylint
pip install codecov
- name: Lint with pylint
- name: Lint with flake8
run: |
bash run_pylint.sh
pip install flake8
flake8 --indent-size 2 --max-line-length 80 **/*.py *.py
- name: Run tests
run: |
bash run_tests.sh
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ scipy>=1.1.0
torch>=1.4.0
codecov==2.1.13
coverage==7.6.0
colortimelog
18 changes: 0 additions & 18 deletions run_pylint.sh

This file was deleted.

2 changes: 1 addition & 1 deletion tests/uisrnn_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_fit_list_and_predict_single_label(self):
train_cluster_ids = [
np.array(['A'] * 100),
np.array(['A'] * 200),
np.array(['A'] * 300),]
np.array(['A'] * 300)]

model = uisrnn.UISRNN(model_args)

Expand Down
2 changes: 0 additions & 2 deletions uisrnn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@

from . import arguments
from . import evals
from . import loss_func
from . import uisrnn
from . import utils

#pylint: disable=C0103
parse_arguments = arguments.parse_arguments
compute_sequence_match_accuracy = evals.compute_sequence_match_accuracy
output_result = utils.output_result
Expand Down

0 comments on commit d412a71

Please sign in to comment.