Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,9 @@ repos:

- repo: local
hooks:
- id: black
name: Run black
- id: ruff
name: Run ruff
stages: [pre-commit]
language: system
entry: black --check --diff
types: [python]

- id: flake8
name: Run flake8
stages: [pre-commit]
language: system
entry: flake8
entry: ruff check
types: [python]
120 changes: 119 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,81 @@
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "ophyd"
description = "Bluesky hardware abstraction with an emphasis on EPICS"
dynamic = ["version"]
readme = "README.rst"
requires-python = ">=3.8"
license = {text = "BSD-3-Clause"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"networkx>=2.0",
"numpy",
"opentelemetry-api",
"packaging",
"pint",
]

[project.optional-dependencies]
dev = [
"attrs>=19.3.0",
"bluesky>=1.11.0",
"caproto[standard] >=0.4.2rc1,!=1.2.0",
"pytest-codecov",
"databroker>=1.0.0b1",
"doctr",
"epics-pypdb",
"ruff",
"h5py",
"inflection",
"ipython",
"ipywidgets",
"matplotlib",
"mypy",
"myst-parser",
"numpydoc",
"pre-commit",
"pydata-sphinx-theme",
"pyepics>=3.4.2,<3.5.7",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-faulthandler",
"pytest-rerunfailures",
"pytest-timeout",
"pipdeptree",
"setuptools>=64",
"setuptools_scm[toml]>=6.2",
"sphinx-autobuild",
"sphinx-design",
"tox-direct",
]

[project.urls]
Homepage = "https://github.com/bluesky/ophyd"
Documentation = "https://blueskyproject.io/ophyd/"
Repository = "https://github.com/bluesky/ophyd.git"
Issues = "https://github.com/bluesky/ophyd/issues"
Changelog = "https://github.com/bluesky/ophyd/blob/main/docs/user/reference/release_notes.rst"

[project.entry-points."databroker.handlers"]
NPY_SEQ = "ophyd.sim:NumpySeqHandler"

[tool.setuptools]
packages = ["ophyd"]

[tool.setuptools.package-data]
ophyd = ["*.rst"]

[tool.setuptools_scm]
write_to = "ophyd/_version.py"

Expand All @@ -20,4 +95,47 @@ markers = [
asyncio_mode = "auto"
# https://iscinumpy.gitlab.io/post/bound-version-constraints/#watch-for-warnings
# filterwarnings = "error"
python_files = "test_*.py"
python_files = "test_*.py"

[tool.ruff]
line-length = 115
extend-ignore = [
"E203",
"F811",
"F722",
]

exclude = [
"ui_*",
".tox",
".venv",
"docs/source",
"ophyd/areadetector/docs.py",
]

[tool.coverage.run]
concurrency = [
"thread",
"multiprocessing",
]
data_file = "/tmp/ophyd.coverage"

[tool.tox]
legacy_tox_ini = """
[tox]
skipsdist = True

[testenv:pytest]
allowlist_externals = pytest
commands = pytest {posargs}

[testenv:pre-commit]
allowlist_externals = pre-commit
commands = pre-commit run --all-files {posargs}

[testenv:docs]
allowlist_externals =
sphinx-build
sphinx-autobuild
commands = sphinx-{posargs:build -EW --keep-going} -T docs build/html
"""
128 changes: 0 additions & 128 deletions setup.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions setup.py

This file was deleted.