ci: add better linting
CI / lint (pull_request) Failing after 31s
CI / test (3.11) (pull_request) Skipped
CI / test (3.12) (pull_request) Skipped
CI / test (3.13) (pull_request) Skipped
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Skipped
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Skipped
CI / test-with-coverage (pull_request) Skipped
CI / lint (pull_request) Failing after 31s
CI / test (3.11) (pull_request) Skipped
CI / test (3.12) (pull_request) Skipped
CI / test (3.13) (pull_request) Skipped
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Skipped
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Skipped
CI / test-with-coverage (pull_request) Skipped
This commit is contained in:
@@ -30,6 +30,23 @@ jobs:
|
||||
source .venv/bin/activate
|
||||
ruff format --check
|
||||
|
||||
- name: Lint
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
ruff check
|
||||
|
||||
- name: Checkout pyright diff plugin
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
repository: mx/diff_quality_basedpyright
|
||||
path: diff_quality_basedpyright
|
||||
|
||||
- name: Typecheck Diff
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
uv pip install -e diff_quality_basedpyright
|
||||
diff-quality --violations=basedpyright
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
needs: "lint"
|
||||
|
||||
+11
-6
@@ -36,13 +36,18 @@ dependencies = [
|
||||
|
||||
[project.optional-dependencies]
|
||||
test = [
|
||||
# "pytest==9.0.3",
|
||||
"pytest-cov==7.1.0",
|
||||
"pytest-mock==3.14.0",
|
||||
"pytest-qt==4.4.0",
|
||||
"pytest-asyncio==0.25.3",
|
||||
"basedpyright",
|
||||
"pytest",
|
||||
"pytest-cov",
|
||||
"pytest-mock",
|
||||
"pytest-qt",
|
||||
"pytest-asyncio",
|
||||
"pytest-timeout",
|
||||
"ruff==0.15.*"
|
||||
"ruff>=0.15"
|
||||
]
|
||||
|
||||
docs = [
|
||||
"zensical"
|
||||
]
|
||||
|
||||
[lint]
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
import importlib
|
||||
import importlib.util
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
from aare.beamline_dispatch.beamline_dispatch import get_beamline_dispatch
|
||||
from aare.beamline_dispatch.simulated import SimulatedDispatch
|
||||
from aare.beamline_dispatch.x06da.beamline_dispatch import X06daDispatch
|
||||
from aare.beamline_dispatch.x06sa import X06saDispatch
|
||||
from aare.beamline_dispatch.x10sa import X10saDispatch
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user