Skip to content

Commit 1e286be

Browse files
authored
Merge pull request #29 from Machine-Learning-for-Medical-Language/mikix/pep8
lint: run pycodestyle too
2 parents a1256e4 + b3d06f8 commit 1e286be

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@ jobs:
3535
- name: Install linters
3636
run: |
3737
python -m pip install --upgrade pip
38-
pip install pylint
38+
pip install pycodestyle pylint
39+
40+
- name: Run pycodestyle
41+
run: |
42+
pycodestyle --max-line-length=120 .
3943
4044
- name: Run pylint
45+
if: success() || failure() # still run pylint if pycodestyle fails
4146
run: |
4247
pylint ctakesclient/ scripts/* test/

test/integration/test_client_covid_symptoms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def test_covid_symptoms_medical_synonyms(self):
2525
'Myalgias': 'Muscle aches and pain',
2626
'Chills': 'Fever or chills',
2727
'Post-tussive': 'after Coughing',
28-
'tussive':'related to Coughing',
29-
'Pharyngitis':'sore throat',
28+
'tussive': 'related to Coughing',
29+
'Pharyngitis': 'sore throat',
3030
'Odynophagia': 'sore throat',
3131
'Loss of taste': 'Anosmia',
3232
'Loss of smell': 'Anosmia',

test/integration/test_client_ctakes_rest_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import ctakesclient
55
from test.test_resources import LoadResource
66

7+
78
class TestClientCtakesRestServer(unittest.TestCase):
89
"""Test case for REST requests"""
910

test/integration/test_negation_transformer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,6 @@ def assertPolarityCompatible(self, text: str):
9696

9797
self.assertEqual(polarities_ctakes, polarities_cnlp, text)
9898

99+
99100
if __name__ == '__main__':
100101
unittest.main()

0 commit comments

Comments
 (0)