-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #250 from LSSTDESC/issue/238/reorganize
Issue/238/reorganize
- Loading branch information
Showing
106 changed files
with
699 additions
and
759 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
[project] | ||
name = "pz-rail" | ||
description = "Redshift Assessment Infrastructure Layers" | ||
readme = "README.rst" | ||
requires-python = ">=3.8" | ||
license = { file = "LICENSE" } | ||
authors = [ | ||
{ name = "The LSST DESC PZ WG", email = "aimalz@nyu.edu" } | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: MIT License", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.10", | ||
"Natural Language :: English", | ||
"Operating System :: POSIX" | ||
] | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"h5py", | ||
"numpy", | ||
"pandas>=1.1", | ||
"tables-io>=0.7.5", | ||
"ceci>=1.10.1", | ||
"pyyaml", | ||
"minisom", | ||
"scipy>=1.9.0", | ||
"pz-hyperbolic-temp", | ||
"qp-prob", | ||
"sklearn", | ||
"pzflow", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"coverage", | ||
"pylint", | ||
"pytest", | ||
"pytest-cov", | ||
"yamllint", | ||
] | ||
|
||
[build-system] | ||
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/rail/core/_version.py" | ||
|
||
[tool.setuptools.package-data] | ||
"rail.examples.estimation.data.AB" = ["*.txt"] | ||
"rail.examples.estimation.data.FILTER" = ["*.res"] | ||
"rail.examples.estimation.data.SED" = ["*.sed", "*.list"] | ||
"rail.examples.estimation" = ["*.pkl"] | ||
"rail.examples.creation.configs" = ["*.yaml"] | ||
"rail.examples.creation.data" = ["*.pkl", "*.hdf5"] | ||
"rail.examples.creation.success_rate_data" = ["*.txt"] | ||
"rail.examples.goldenspike" = ["*.yaml"] | ||
"rail.examples.goldenspike.data" = ["*.pkl", "*.pq"] | ||
"rail.examples.testdata" = ["*.ipynb", "*.fits", "*.hdf5", "*.pq", "*.md"] | ||
|
||
[tool.coverage.run] | ||
source = ["src/rail"] | ||
branch = false | ||
|
||
[tool.coverage.report] | ||
show_missing = true | ||
exclude_lines = [ | ||
"pragma: no cover", | ||
"def __repr__", | ||
"if self.debug:", | ||
"if settings.DEBUG", | ||
"raise AssertionError", | ||
"raise NotImplementedError", | ||
"if 0:", | ||
"if __name__ == .__main__.:", | ||
"if TYPE_CHECKING:" | ||
] | ||
|
||
[tool.black] | ||
line-length = 110 | ||
target-version = ["py310"] | ||
|
||
[tool.pydocstyle] | ||
convention = "numpy" | ||
add_select = [ | ||
"D212" # Multi-line docstring summary should start at the first line | ||
] | ||
add-ignore = [ | ||
"D105", # Missing docstring in magic method | ||
"D102", # Missing docstring in public method (needed for docstring inheritance) | ||
"D100", # Missing docstring in public module | ||
# Below are required to allow multi-line summaries. | ||
"D200", # One-line docstring should fit on one line with quotes | ||
"D205", # 1 blank line required between summary line and description | ||
"D400", # First line should end with a period | ||
# Properties shouldn't be written in imperative mode. This will be fixed | ||
# post 6.1.1, see https://github.com/PyCQA/pydocstyle/pull/546 | ||
"D401", | ||
] | ||
|
||
[tool.pylint] | ||
disable = [ | ||
"abstract-method", | ||
"invalid-name", | ||
"too-many-statements", | ||
"missing-module-docstring", | ||
"missing-class-docstring", | ||
"missing-function-docstring", | ||
"too-few-public-methods", | ||
"duplicate-code" | ||
] | ||
max-line-length = 110 | ||
max-locals = 50 | ||
max-branches = 25 | ||
max-public-methods = 50 | ||
|
||
[tool.isort] | ||
profile = "black" | ||
line_length = 110 | ||
|
||
[tool.pytest.ini_options] | ||
addopts = [ | ||
"--cov=rail", | ||
"--cov-report=html" | ||
] | ||
flake8-ignore = "E203" | ||
|
||
[tool.mypy] | ||
disallow_untyped_defs = true | ||
disallow_incomplete_defs = true | ||
ignore_missing_imports = true | ||
namespace_packages = true | ||
plugins = "sqlalchemy.ext.mypy.plugin" | ||
show_error_codes = true | ||
strict_equality = true | ||
warn_redundant_casts = true | ||
warn_unreachable = true | ||
warn_unused_ignores = true |
Oops, something went wrong.