Add more tests, speed up dummy stage
I've sped up the stage motion, to run tests in a more reasonable time. CSM doesn't yet calibrate in the test - I suspect debugging of capture_array is needed.
This commit is contained in:
parent
728aa12d07
commit
1e7069b375
3 changed files with 66 additions and 77 deletions
|
|
@ -58,49 +58,13 @@ build-backend = "setuptools.build_meta"
|
|||
# don't believe it's critical at present, because we don't use
|
||||
# the Python package - we distribute a tarball directly.
|
||||
|
||||
[tool.black]
|
||||
exclude = '(\.eggs|\.git|\.venv|\venv|node_modules/)'
|
||||
|
||||
[tool.isort]
|
||||
multi_line_output = 3
|
||||
include_trailing_comma = true
|
||||
force_grid_wrap = 0
|
||||
use_parentheses = true
|
||||
ensure_newline_before_comments = true
|
||||
line_length = 88
|
||||
|
||||
[tool.pylint.'MESSAGES CONTROL']
|
||||
# W1203 warns about using f strings in logging statements.
|
||||
# I'm really not concerned about the performance implications of this,
|
||||
# particularly as we often have the log level set quite high. I think
|
||||
# for our current purposes, using f strings in logging statements is
|
||||
# more readable and thus a good idea in many places - I've disabled
|
||||
# this warning code globally for that reason.
|
||||
disable = "fixme,C,R,W1203"
|
||||
max-line-length = 88
|
||||
|
||||
[tool.mypy]
|
||||
plugins = ["pydantic.mypy"]
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py39"
|
||||
|
||||
[tool.poe.executor]
|
||||
type = "virtualenv"
|
||||
location = ".venv"
|
||||
|
||||
[tool.poe.tasks]
|
||||
black = "black ."
|
||||
black_check = "black --check ."
|
||||
ruff = "ruff . --fix"
|
||||
ruff_check = "ruff ."
|
||||
isort = "isort openflexure_microscope"
|
||||
pylint = "pylint openflexure_microscope"
|
||||
mypy = "mypy --cobertura-xml-report openflexure_microscope openflexure_microscope"
|
||||
test = "pytest . --junitxml=pytest_report.xml"
|
||||
serve = "python -m openflexure_microscope.api.app"
|
||||
|
||||
format = ["black", "isort", "ruff"]
|
||||
lint = ["ruff_check", "pylint", "mypy"]
|
||||
|
||||
check = ["format", "lint", "test"]
|
||||
[tool.pytest.ini_options]
|
||||
addopts = [
|
||||
"--import-mode=importlib",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue