Skip to content

Commit

Permalink
Ignore lengthy lines in flake8 from github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghulam Mustafa Majal committed Sep 23, 2024
1 parent 7546484 commit a003cd7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: poetry install --no-root

- name: Test Code Style
run: poetry run flake8
run: poetry run flake8 --extend-ignore E501

- name: Test Code
run: poetry run pytest
2 changes: 1 addition & 1 deletion .github/workflows/extended.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: poetry install --no-root

- name: Lint with flake8
run: poetry run flake8
run: poetry run flake8 --extend-ignore E501

- name: Test Black Code Style compliance
run: poetry run black . --check --diff
Expand Down
3 changes: 1 addition & 2 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ def test_rest(train_data_file, model_path):
assert res.status_code == status.HTTP_200_OK
# We can make following assumption due to the construction of train data
assert res.json() == json.loads(
QualityEstimation(scores=[QualityScores(
name=Metric.RECALL, scores=[1])]).model_dump_json()
QualityEstimation(scores=[QualityScores(name=Metric.RECALL, scores=[1])]).model_dump_json()
)


Expand Down

0 comments on commit a003cd7

Please sign in to comment.