-
Notifications
You must be signed in to change notification settings - Fork 0
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 #33 from Quantco/migrate-to-copier
migrate to copier template
- Loading branch information
Showing
10 changed files
with
34 additions
and
31 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: git@github.com:quantco/copier-template-pre-commit-mirrors | ||
description: This hook runs flake8. | ||
entry: flake8 | ||
tool: flake8 | ||
url: https://flake8.pycqa.org |
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: "forrestquant@users.noreply.github.com" | ||
time_elapsed: 50 # days | ||
committer_email: forrestquant@users.noreply.github.com | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ on: | |
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
tag: | ||
|
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,7 +1,5 @@ | ||
- id: flake8-conda | ||
name: flake8-conda | ||
description: This hook runs flake8. | ||
entry: flake8 | ||
language: conda | ||
types: [python] | ||
require_serial: true | ||
- id: flake8-conda | ||
name: flake8-conda | ||
description: 'This hook runs flake8.' | ||
entry: flake8 | ||
language: conda |
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,19 +1,18 @@ | ||
flake8(-conda) mirror | ||
==================== | ||
# flake8 mirror | ||
|
||
Mirror of flake8 for pre-commit with conda as a language. | ||
|
||
For pre-commit: see https://github.com/pre-commit/pre-commit | ||
For flake8: http://flake8.pycqa.org/ | ||
For pre-commit: see [here](https://github.com/pre-commit/pre-commit) | ||
|
||
### Using flake8 with pre-commit and conda: | ||
For flake8: see [here](https://flake8.pycqa.org) | ||
|
||
## Using flake8 with pre-commit and conda: | ||
|
||
Add this to your `.pre-commit-config.yaml` | ||
|
||
```yaml | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-flake8 | ||
- repo: https://github.com/quantco/pre-commit-mirrors-flake8 | ||
rev: '' # Use the sha / tag you want to point at | ||
hooks: | ||
- id: flake8-conda | ||
``` | ||
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: | ||
- flake8=7.0.0 |