-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
10 changed files
with
38 additions
and
36 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,7 @@ | ||
# This file is managed by Copier; DO NOT EDIT OR REMOVE. | ||
_commit: v0.1.4 | ||
_src_path: [email protected]:quantco/copier-template-pre-commit-mirrors | ||
description: Jupyter notebooks as Markdown documents, Julia, Python or R scripts | ||
entry: jupytext | ||
tool: jupytext | ||
url: https://github.com/mwouts/jupytext |
Validating CODEOWNERS rules …
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 +1 @@ | ||
* @Quantco/ci | ||
* @quantco/ci |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
name: Keep | ||
on: | ||
# pull_request: | ||
schedule: | ||
- cron: "0 6 * * SUN" # Once weekly on Sunday @ 0600 UTC | ||
- cron: 0 6 * * SUN | ||
|
||
jobs: | ||
keep-alive: | ||
name: Alive | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: gautamkrishnar/keepalive-workflow@60b13c92aeda855e493b83aaf482c25da7e0043b | ||
- uses: gautamkrishnar/keepalive-workflow@5b3128727d02fe1a892d0a2987517c9ec8ca7425 | ||
with: | ||
commit_message: "Ah ah ah, stayin' alive" | ||
commit_message: Ah ah ah, stayin' alive | ||
committer_username: ForrestQuant | ||
committer_email: "[email protected]" | ||
time_elapsed: 50 # days | ||
committer_email: [email protected] | ||
time_elapsed: 50 # days |
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 |
---|---|---|
@@ -1,22 +1,18 @@ | ||
# Jupytext pre-commit hook | ||
Hook for Jupytext with conda as a language. | ||
Currently the main Jupytext-repo doesn't have pre-commit hooks defined, so | ||
this repo is called `mirror` only for consistency. | ||
# jupytext mirror | ||
|
||
* For pre-commit: see https://github.com/pre-commit/pre-commit | ||
* For Jupytext: see https://github.com/mwouts/jupytext | ||
Mirror of jupytext for pre-commit with conda as a language. | ||
|
||
### Using Jupytext with pre-commit and conda: | ||
Add this to your `.pre-commit-config.yaml`: | ||
For pre-commit: see [here](https://github.com/pre-commit/pre-commit) | ||
|
||
For jupytext: see [here](https://github.com/mwouts/jupytext) | ||
|
||
## Using jupytext with pre-commit and conda: | ||
|
||
Add this to your `.pre-commit-config.yaml` | ||
|
||
```yaml | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-jupytext | ||
rev: '' # The git sha / tag you want to point to | ||
hooks: | ||
- id: jupytext-conda | ||
args: | ||
- --to=py:percent | ||
- repo: https://github.com/quantco/pre-commit-mirrors-jupytext | ||
rev: '' # Use the sha / tag you want to point at | ||
hooks: | ||
- id: jupytext-conda | ||
``` | ||
`args` is optional and allows passing further parameters to `jupytext`. | ||
By default only `--to=py:percent` is passed which converts all Jupyter notebooks to Python | ||
scripts using the [`percent` formatting](https://jupytext.readthedocs.io/en/latest/formats.html). |
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,4 +1,5 @@ | ||
channels: | ||
- conda-forge | ||
- nodefaults | ||
dependencies: | ||
- jupytext=1.16.1 |