Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-40675: Implement schema version specification for RFC-954 #23

Merged
merged 7 commits into from Sep 15, 2023

Conversation

andy-slac
Copy link
Contributor

README defines the structure for version keyword that can be either a
simple string or a structure specifying version compatibility. Visitor
classes are extended to handle version information, for now only the
SimpleVisitor converts version info into a usable structure.

Plus some code cleanup and ruff checks for docstrings.

@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.16% 🎉

Comparison is base (56b87fd) 97.96% compared to head (f818f10) 98.12%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #23      +/-   ##
==========================================
+ Coverage   97.96%   98.12%   +0.16%     
==========================================
  Files           6        6              
  Lines         393      427      +34     
==========================================
+ Hits          385      419      +34     
  Misses          8        8              
Files Changed Coverage Δ
tests/test_tap.py 97.14% <ø> (ø)
tests/test_check.py 99.21% <100.00%> (+0.20%) ⬆️
tests/test_cli.py 98.43% <100.00%> (ø)
tests/test_simple.py 98.88% <100.00%> (+0.09%) ⬆️
tests/test_sql.py 96.10% <100.00%> (ø)
tests/test_utils.py 96.96% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -7,8 +7,9 @@ repos:
- "--unsafe"
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: "README.md"
- repo: https://github.com/psf/black
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that black now has a specialist repo for pre-commit at https://github.com/psf/black-pre-commit-mirror

@@ -22,6 +23,6 @@ repos:
- id: isort
name: isort (python)
- repo: https://github.com/PyCQA/flake8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ruff in pre-commit?

README defines the structure for `version` keyword that can be either a
simple string or a  structure specifying version compatibility. Visitor
classes are extended to handle version information, for now only the
`SimpleVisitor` converts version info into a usable structure.
Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay. All the manual model validation seems painful to me in a world where Pydantic exists. Please modernize type annotations.

.pre-commit-config.yaml Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
doc/conf.py Show resolved Hide resolved
doc/index.rst Show resolved Hide resolved
python/felis/check.py Show resolved Hide resolved
python/felis/check.py Show resolved Hide resolved
python/felis/simple.py Outdated Show resolved Hide resolved
@andy-slac andy-slac merged commit 5a39ba6 into main Sep 15, 2023
9 checks passed
@JeremyMcCormick JeremyMcCormick deleted the tickets/DM-40675 branch November 17, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants