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-40287: Package cleanups #16

Merged
merged 30 commits into from
Jan 8, 2024
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b1df2bc
Uprev pre-commit
timj Jan 3, 2024
7f316b5
Update config to declare python 3.11
timj Jan 3, 2024
5eead26
Use new location for SqlRegistry
timj Jan 3, 2024
701f0f8
Fix spacing for black compliance
timj Jan 3, 2024
f6aaa04
Remove --- from start of yaml file
timj Jan 3, 2024
45ab980
Declare that yaml files can be unsafe
timj Jan 3, 2024
ec8b840
Docstring fixes from ruff
timj Jan 3, 2024
25abbb4
Add ruff to pre-commit
timj Jan 3, 2024
8a3da9a
Modernize type annotations
timj Jan 3, 2024
d6fc62f
Add ruff configuration
timj Jan 3, 2024
4359512
Fix some mypy problems
timj Jan 3, 2024
7af6fd2
Remove explicit pydantic dependency
timj Jan 3, 2024
0a48581
Fix numpydoc string with velin
timj Jan 3, 2024
6e4e4ef
Fix numpydoc strings
timj Jan 3, 2024
af54b87
Add numpydoc configuration
timj Jan 3, 2024
ef37a19
Add pydocstyle configuration
timj Jan 3, 2024
0b6ef5a
Add document style check action
timj Jan 3, 2024
d8f3a8e
Uprev packages for github actions
timj Jan 3, 2024
1ecf265
Fix some of the doc build problems
timj Jan 3, 2024
8ae49b2
Migrate to pyproject.toml
timj Jan 3, 2024
175667b
Use dataId.mapping instead of deprecated .full
timj Jan 3, 2024
b715d65
Stop using pytest-flake8 in action
timj Jan 3, 2024
96b5d75
Use correct class name in coverage report in action
timj Jan 3, 2024
751ec36
Add ruff github action
timj Jan 3, 2024
698349a
Add simple test force loading of script code
timj Jan 3, 2024
1d97efb
Add numpydoc pre-commit
timj Jan 3, 2024
e5980ec
Replace a parse_obj with a model_validate for pydantic v2
timj Jan 3, 2024
ba57abd
Remove daf_relation from dependencies
timj Jan 8, 2024
0da2d2a
Explicitly add utils to dependencies
timj Jan 8, 2024
6bf4ba9
Update SqlQueryBackend construction to reflect DM-42324 changes.
TallJimbo Jan 8, 2024
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
Prev Previous commit
Next Next commit
Add pydocstyle configuration
  • Loading branch information
timj committed Jan 8, 2024
commit ef37a19634d6a8b6d78cb2294cd0ab19d61744a4
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ build-backend = "setuptools.build_meta"
[tool.lsst_versions]
write_to = "python/lsst/dax/obscore/version.py"

[tool.pydocstyle]
convention = "numpy"
# Our coding style does not require docstrings for magic methods (D105)
# Our docstyle documents __init__ at the class level (D107)
# We allow methods to inherit docstrings and this is not compatible with D102.
# Docstring at the very first line is not required
# D200, D205 and D400 all complain if the first sentence of the docstring does
# not fit on one line. We do not require docstrings in __init__ files (D104).
add-ignore = ["D107", "D105", "D102", "D100", "D200", "D205", "D400", "D104"]

[tool.ruff]
exclude = [
"__init__.py",
Expand Down