Skip to content

Commit 5473ea5

Browse files
authored
Merge pull request #37 from sidratresearch/sidrat-staging
Rail v2.0: Updates for interactive and ephemeral DataStore functionality changes
2 parents 82e8ae7 + ac41e44 commit 5473ea5

11 files changed

Lines changed: 677 additions & 471 deletions

File tree

.github/ISSUE_TEMPLATE/0-general_issue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ title: ''
55
labels: ''
66
assignees: ''
77

8-
---
8+
---

.pre-commit-config.yaml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
fail_fast: true
22
repos:
3-
4-
# Clear output from jupyter notebooks so that only the input cells are committed.
3+
# Clear output from jupyter notebooks so that only the input cells are committed.
54
- repo: local
65
hooks:
76
- id: jupyter-nb-clear-output
87
name: Clear output from Jupyter notebooks
98
description: Clear output from Jupyter notebooks.
109
files: \.ipynb$
11-
stages: [commit]
10+
stages: [pre-commit]
1211
language: system
1312
entry: jupyter nbconvert --clear-output
1413

@@ -22,7 +21,8 @@ repos:
2221
- id: check-added-large-files
2322
name: Check for large files
2423
description: Prevent the user from committing very large files.
25-
args: ['--maxkb=500']
24+
args: ["--maxkb=500"]
25+
- id: end-of-file-fixer
2626

2727
# verify that pyproject.toml is well formed
2828
- repo: https://github.com/abravalheri/validate-pyproject
@@ -31,6 +31,21 @@ repos:
3131
- id: validate-pyproject
3232
name: Validate pyproject.toml
3333
description: Verify that pyproject.toml adheres to the established schema.
34+
35+
# use the black code formatter
36+
- repo: https://github.com/psf/black-pre-commit-mirror
37+
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
38+
rev: 25.9.0
39+
hooks:
40+
- id: black
41+
42+
# use the isort code formatter
43+
- repo: https://github.com/pycqa/isort
44+
rev: 7.0.0
45+
hooks:
46+
- id: isort
47+
args: ["--profile", "black", "--filter-files"]
48+
3449
# Analyze the src code style and report code that doesn't adhere.
3550
- repo: local
3651
hooks:
@@ -40,11 +55,11 @@ repos:
4055
language: system
4156
types: [python]
4257
files: ^src/
43-
args:
44-
[
58+
args: [
4559
"-rn", # Only display messages
4660
"-sn", # Don't display the score
4761
]
62+
4863
# Analyze the tests code style and report code that doesn't adhere.
4964
- repo: local
5065
hooks:
@@ -54,14 +69,13 @@ repos:
5469
language: system
5570
types: [python]
5671
files: ^tests/
57-
args:
58-
[
72+
args: [
5973
"-rn", # Only display messages
6074
"-sn", # Don't display the score
6175
]
6276

6377
# Run unit tests, verify that they pass. Note that coverage is run against
64-
# the ./src directory here because that is what will be committed. In the
78+
# the ./src directory here because that is what will be committed. In the
6579
# github workflow script, the coverage is run against the installed package
6680
# and uploaded to Codecov by calling pytest like so:
6781
# `python -m pytest --cov=<package_name> --cov-report=xml`
@@ -73,4 +87,4 @@ repos:
7387
entry: bash -c "if python -m pytest --co -qq; then python -m pytest --cov=./src --cov-report=html; fi"
7488
language: system
7589
pass_filenames: false
76-
always_run: true
90+
always_run: true

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ If you use this package, you should also cite the appropriate papers for each
5151
code used. A list of such codes is included in the
5252
[Citing RAIL](https://lsstdescrail.readthedocs.io/en/stable/source/citing.html)
5353
section of the main RAIL Read The Docs page.
54-

pyproject.toml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[project]
22
name = "pz-rail-tpz"
33
requires-python = ">=3.10"
4-
license = {file = "LICENSE"}
4+
license = { file = "LICENSE" }
55
readme = "README.md"
66
authors = [
7-
{ name = "LSST Dark Energy Science Collaboration (DESC)", email = "samschmidt@ucdavis.edu" }
7+
{ name = "LSST Dark Energy Science Collaboration (DESC)", email = "samschmidt@ucdavis.edu" },
88
]
99
classifiers = [
1010
"Development Status :: 4 - Beta",
@@ -20,7 +20,7 @@ dependencies = [
2020
"astropy",
2121
"mpi4py",
2222
"pandas",
23-
"pz-rail-base>=1.1.4",
23+
"pz-rail-base>=2.0.0-dev",
2424
"qp-prob[full]",
2525
"scikit-learn",
2626
]
@@ -31,12 +31,12 @@ dev = [
3131
"pytest",
3232
"pytest-cov", # Used to report total code coverage
3333
"pre-commit", # Used to run checks before finalizing a git commit
34-
"pylint", # Used for static linting of files
34+
"pylint", # Used for static linting of files
3535
]
3636

3737
[build-system]
3838
requires = [
39-
"setuptools>=62", # Used to build and package the Python project
39+
"setuptools>=62", # Used to build and package the Python project
4040
"setuptools_scm>=6.2", # Gets release version from git. Makes it available programmatically
4141
]
4242
build-backend = "setuptools.build_meta"
@@ -45,13 +45,8 @@ build-backend = "setuptools.build_meta"
4545
write_to = "src/rail/rail_tpz/_version.py"
4646

4747
[tool.pytest.ini_options]
48-
testpaths = [
49-
"tests",
50-
]
51-
addopts = [
52-
"--cov=rail",
53-
"--cov-report=html"
54-
]
48+
testpaths = ["tests"]
49+
addopts = ["--cov=rail", "--cov-report=html"]
5550

5651
[tool.pylint]
5752
disable = [

0 commit comments

Comments
 (0)