Skip to content

Commit

Permalink
Remove pylint-pytest from CI (#56)
Browse files Browse the repository at this point in the history
* Remove pylint-pytest

* Silence new pylint warnings

* Fix black
  • Loading branch information
Shutgun authored Oct 4, 2023
1 parent 9e67d28 commit ad2f86e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
flake8 . --count --exit-zero --statistics
- name: Lint with pylint
run: |
python -m pip install pylint pytest pylint-pytest
python -m pip install pylint pytest
python -m pip install -e .[test]
pylint --errors-only --score=n pytest_adaptavist
pylint --exit-zero --score=n --disable=E,R --max-line-length=160 --enable=useless-suppression pytest_adaptavist
pylint --errors-only --score=n --load-plugins pylint_pytest tests
pylint --exit-zero --score=n --disable=E,R,C0103 --max-line-length=160 --enable=useless-suppression --load-plugins pylint_pytest tests
pylint --errors-only --score=n tests
pylint --exit-zero --score=n --disable=E,R,C0103 --max-line-length=160 --enable=useless-suppression tests
- name: Lint with mypy
run: |
python -m pip install mypy types-requests types-setuptools
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fixtures for tests."""
# pylint: disable=redefined-outer-name,unused-argument
from __future__ import annotations

import shutil
Expand Down
2 changes: 2 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def test_TEST_T123():
)
report = pytester.runpytest("--adaptavist")
matcher = LineMatcher(report.outlines)

# pylint: disable=line-too-long
matcher.fnmatch_lines(
[
"traceability: https://jira.test/secure/Tests.jspa#/reports/traceability/report/view?tql=testResult.projectKey%20IN%20%28%22TEST%22%29%20AND%20testRun.key%20IN%20%28%22TEST-C1%22%29%20AND%20testRun.onlyLastTestResult%20IS%20true&jql=&title=REPORTS.TRACEABILITY_REPORT.TITLE&traceabilityReportOption=COVERAGE_TEST_CASES&traceabilityTreeOption=COVERAGE_TEST_CASES&traceabilityMatrixOption=COVERAGE_TEST_CASES&period=MONTH&scorecardOption=EXECUTION_RESULTS",
Expand Down

0 comments on commit ad2f86e

Please sign in to comment.