Skip to content

Commit

Permalink
Merge pull request #2 from DiamondLightSource/HLA-809-read-write-pb
Browse files Browse the repository at this point in the history
Read and write EPICS Archiver Appliance Protocol Buffer files
  • Loading branch information
jacob720 authored Jan 7, 2025
2 parents 29a54e9 + d86c9f5 commit 2934e56
Show file tree
Hide file tree
Showing 5 changed files with 294 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ lockfiles/

# ruff cache
.ruff_cache/

src/aa_remove_data/P:2021.pb
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ repos:
entry: ruff format --force-exclude
types: [python]
require_serial: true

exclude: "^src/aa_remove_data/generated/EPICSEvent_pb2.py"
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ classifiers = [
"Programming Language :: Python :: 3.12",
]
description = "A tool to remove some data from the Epics Archiver Appliance"
dependencies = ["protobuf"] # Add project dependencies here, e.g. ["click", "numpy"]
dependencies = [
"protobuf",
] # Add project dependencies here, e.g. ["click", "numpy"]
dynamic = ["version"]
license.file = "LICENSE"
readme = "README.md"
Expand All @@ -35,6 +37,8 @@ dev = [

[project.scripts]
aa-remove-data = "aa_remove_data.__main__:main"
aa-print-header = "aa_remove_data.pb_utils:print_header"
pb-2-txt = "aa_remove_data.pb_utils:pb_2_txt"

[project.urls]
GitHub = "https://github.com/DiamondLightSource/aa-remove-data"
Expand All @@ -49,7 +53,8 @@ version_file = "src/aa_remove_data/_version.py"

[tool.pyright]
typeCheckingMode = "standard"
reportMissingImports = false # Ignore missing stubs in imported modules
reportMissingImports = false # Ignore missing stubs in imported modules
exclude = ["src/aa_remove_data/generated/"]

[tool.pytest.ini_options]
# Run pytest with all our checkers, and don't spam us with massive tracebacks on error
Expand Down
79 changes: 79 additions & 0 deletions src/aa_remove_data/generated/EPICSEvent_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2934e56

Please sign in to comment.