-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael R. Blanton
committed
May 11, 2024
1 parent
3d210a0
commit 9a4e563
Showing
13 changed files
with
193 additions
and
125 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node: $Format:%H$ | ||
node-date: $Format:%cI$ | ||
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ | ||
ref-names: $Format:%D$ |
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,24 @@ | ||
# For explanation of this file and uses see | ||
# https://git-scm.com/docs/gitattributes | ||
# https://developer.lsst.io/git/git-lfs.html#using-git-lfs-enabled-repositories | ||
# https://lincc-ppt.readthedocs.io/en/latest/practices/git-lfs.html | ||
# | ||
# Used by https://github.com/lsst/afwdata.git | ||
# *.boost filter=lfs diff=lfs merge=lfs -text | ||
# *.dat filter=lfs diff=lfs merge=lfs -text | ||
# *.fits filter=lfs diff=lfs merge=lfs -text | ||
# *.gz filter=lfs diff=lfs merge=lfs -text | ||
# | ||
# apache parquet files | ||
# *.parq filter=lfs diff=lfs merge=lfs -text | ||
# | ||
# sqlite files | ||
# *.sqlite3 filter=lfs diff=lfs merge=lfs -text | ||
# | ||
# gzip files | ||
# *.gz filter=lfs diff=lfs merge=lfs -text | ||
# | ||
# png image files | ||
# *.png filter=lfs diff=lfs merge=lfs -text | ||
|
||
.git_archival.txt export-subst |
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,8 @@ | ||
--- | ||
name: General issue | ||
about: Quickly create a general issue | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- |
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,17 @@ | ||
--- | ||
name: Bug report | ||
about: Tell us about a problem to fix | ||
title: 'Short description' | ||
labels: 'bug' | ||
assignees: '' | ||
|
||
--- | ||
**Bug report** | ||
|
||
|
||
**Before submitting** | ||
Please check the following: | ||
|
||
- [ ] I have described the situation in which the bug arose, including what code was executed, information about my environment, and any applicable data others will need to reproduce the problem. | ||
- [ ] I have included available evidence of the unexpected behavior (including error messages, screenshots, and/or plots) as well as a descriprion of what I expected instead. | ||
- [ ] If I have a solution in mind, I have provided an explanation and/or pseudocode and/or task list. |
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,18 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: 'Short description' | ||
labels: 'enhancement' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Feature request** | ||
|
||
|
||
**Before submitting** | ||
Please check the following: | ||
|
||
- [ ] I have described the purpose of the suggested change, specifying what I need the enhancement to accomplish, i.e. what problem it solves. | ||
- [ ] I have included any relevant links, screenshots, environment information, and data relevant to implementing the requested feature, as well as pseudocode for how I want to access the new functionality. | ||
- [ ] If I have ideas for how the new feature could be implemented, I have provided explanations and/or pseudocode and/or task lists for the steps. |
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,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" |
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,53 @@ | ||
# This workflow publishes a benchmarks comment on a pull request. It is triggered after the | ||
# benchmarks are computed in the asv-pr workflow. This separation of concerns allows us limit | ||
# access to the target repository private tokens and secrets, increasing the level of security. | ||
# Based on https://securitylab.github.com/research/github-actions-preventing-pwn-requests/. | ||
name: Publish benchmarks comment to PR | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Run benchmarks for PR"] | ||
types: [completed] | ||
|
||
jobs: | ||
upload-pr-comment: | ||
runs-on: ubuntu-latest | ||
if: > | ||
github.event.workflow_run.event == 'pull_request' && | ||
github.event.workflow_run.conclusion == 'success' | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- name: Display Workflow Run Information | ||
run: | | ||
echo "Workflow Run ID: ${{ github.event.workflow_run.id }}" | ||
echo "Head SHA: ${{ github.event.workflow_run.head_sha }}" | ||
echo "Head Branch: ${{ github.event.workflow_run.head_branch }}" | ||
echo "Conclusion: ${{ github.event.workflow_run.conclusion }}" | ||
echo "Event: ${{ github.event.workflow_run.event }}" | ||
- name: Download artifact | ||
uses: dawidd6/action-download-artifact@v3 | ||
with: | ||
name: benchmark-artifacts | ||
run_id: ${{ github.event.workflow_run.id }} | ||
- name: Extract artifacts information | ||
id: pr-info | ||
run: | | ||
printf "PR number: $(cat pr)\n" | ||
printf "Output:\n$(cat output)" | ||
printf "pr=$(cat pr)" >> $GITHUB_OUTPUT | ||
- name: Find benchmarks comment | ||
uses: peter-evans/find-comment@v3 | ||
id: find-comment | ||
with: | ||
issue-number: ${{ steps.pr-info.outputs.pr }} | ||
comment-author: 'github-actions[bot]' | ||
body-includes: view all benchmarks | ||
- name: Create or update benchmarks comment | ||
uses: peter-evans/create-or-update-comment@v4 | ||
with: | ||
comment-id: ${{ steps.find-comment.outputs.comment-id }} | ||
issue-number: ${{ steps.pr-info.outputs.pr }} | ||
body-path: output | ||
edit-mode: replace |
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,42 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script should be run by new developers to install this package in | ||
# editable mode and configure their local environment | ||
|
||
echo "Checking virtual environment" | ||
if [ -z "${VIRTUAL_ENV}" ] && [ -z "${CONDA_PREFIX}" ]; then | ||
echo 'No virtual environment detected: none of $VIRTUAL_ENV or $CONDA_PREFIX is set.' | ||
echo | ||
echo "=== This script is going to install the project in the system python environment ===" | ||
echo "Proceed? [y/N]" | ||
read -r RESPONCE | ||
if [ "${RESPONCE}" != "y" ]; then | ||
echo "See https://lincc-ppt.readthedocs.io/ for details." | ||
echo "Exiting." | ||
exit 1 | ||
fi | ||
|
||
fi | ||
|
||
echo "Checking pip version" | ||
MINIMUM_PIP_VERSION=22 | ||
pipversion=( $(python -m pip --version | awk '{print $2}' | sed 's/\./ /g') ) | ||
if let "${pipversion[0]}<${MINIMUM_PIP_VERSION}"; then | ||
echo "Insufficient version of pip found. Requires at least version ${MINIMUM_PIP_VERSION}." | ||
echo "See https://lincc-ppt.readthedocs.io/ for details." | ||
exit 1 | ||
fi | ||
|
||
echo "Installing package and runtime dependencies in local environment" | ||
python -m pip install -e . > /dev/null | ||
|
||
echo "Installing developer dependencies in local environment" | ||
python -m pip install -e .'[dev]' > /dev/null | ||
if [ -f docs/requirements.txt ]; then python -m pip install -r docs/requirements.txt; fi | ||
|
||
echo "Installing pre-commit" | ||
pre-commit install > /dev/null | ||
|
||
####################################################### | ||
# Include any additional configurations below this line | ||
####################################################### |
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 |
---|---|---|
@@ -1,21 +1,8 @@ | ||
<<<<<<< before updating | ||
#sphinx==6.1.3 | ||
#sphinx-rtd-theme==1.2.0 | ||
#sphinx-autoapi==2.0.1 | ||
#astroid==2.15.7 | ||
sphinx | ||
sphinx-rtd-theme | ||
sphinx-autoapi | ||
nbsphinx | ||
======= | ||
|
||
ipykernel | ||
>>>>>>> after updating | ||
ipython | ||
jupytext | ||
nbconvert | ||
nbsphinx | ||
sphinx | ||
sphinx-autoapi | ||
sphinx-copybutton | ||
sphinx-rtd-theme | ||
sphinx-rtd-theme |
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