Skip to content

Commit 8c456f6

Browse files
authored
Initial commit
0 parents  commit 8c456f6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1963
-0
lines changed

.cz.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[tool.commitizen]
2+
bump_message = "build(version): :bookmark: update version from $current_version to $new_version [skip ci]"
3+
update_changelog_on_bump = true
4+
version_provider = "poetry"
5+
version_files = [
6+
"pyproject.toml"
7+
]

.editorconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# EditorConfig settings. Some editors will read these automatically;
2+
# for those that don't, see here: http://editorconfig.org/
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
indent_style = space
9+
indent_size = 2
10+
end_of_line = lf
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
max_line_length = 88
14+
15+
# Have a bit shorter line length for text docs
16+
[*.{txt,md,qmd}]
17+
max_line_length = 72
18+
indent_size = 4
19+
20+
# Python always uses 4 spaces for tabs
21+
[*.py]
22+
indent_style = space
23+
indent_size = 4
24+

.github/CODEOWNERS

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# All members on Developers team get added to review PRs
2+
* @seedcase-project/developers
3+
4+
# Ignore these so we don't get added to sync PRs
5+
/.github/
6+
/.vscode/
7+
/.devcontainer/
8+
justfile
9+
.editorconfig
10+
.gitignore
11+
ruff.toml
12+
pyproject.toml
13+
poetry.lock

.github/_project-dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: pip
4+
directory: /
5+
schedule:
6+
interval: monthly
7+
versioning-strategy: increase-if-necessary
8+
commit-message:
9+
prefix: build
10+
include: scope
11+
assignees:
12+
- "lwjohnst86"

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: monthly
7+
commit-message:
8+
prefix: ci
9+
include: scope
10+
assignees:
11+
- "lwjohnst86"

.github/pull_request_template.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Description
2+
3+
This PR DESCRIBE CHANGES.
4+
5+
Closes #
6+
7+
<!-- Select quick/in-depth as necessary -->
8+
This PR needs a quick/an in-depth review.
9+
10+
## Checklist
11+
12+
- [ ] Added or updated tests
13+
- [ ] Updated documentation
14+
- [ ] Ran `just run-all`

.github/sync.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
group:
2+
- files:
3+
# General
4+
- source: .github/CODEOWNERS
5+
dest: .github/CODEOWNERS
6+
- source: .pre-commit-config.yaml
7+
dest: .pre-commit-config.yaml
8+
- source: .editorconfig
9+
dest: .editorconfig
10+
- source: .gitignore
11+
dest: .gitignore
12+
- source: justfile
13+
dest: justfile
14+
- source: poetry.toml
15+
dest: poetry.toml
16+
- source: .cz.toml
17+
dest: .cz.toml
18+
- source: ruff.toml
19+
dest: ruff.toml
20+
- source: LICENSE.md
21+
dest: LICENSE.md
22+
- source: .github/pull_request_template.md
23+
dest: .github/pull_request_template.md
24+
25+
# Actions
26+
- source: .github/workflows/add-to-project.yml
27+
dest: .github/workflows/add-to-project.yml
28+
- source: .github/workflows/build-package.yml
29+
dest: .github/workflows/build-package.yml
30+
- source: .github/workflows/build-website.yml
31+
dest: .github/workflows/build-website.yml
32+
- source: .github/workflows/update-version.yml
33+
dest: .github/workflows/update-version.yml
34+
- source: .github/_project-dependabot.yml
35+
dest: .github/dependabot.yml
36+
37+
# VSCode Settings
38+
- source: .vscode/
39+
dest: .vscode/
40+
deleteOrphaned: true
41+
repos: |
42+
seedcase-project/seedcase-sprout

.github/workflows/add-to-project.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Add to project board
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- reopened
8+
- transferred
9+
pull_request:
10+
types:
11+
- reopened
12+
- opened
13+
14+
permissions:
15+
pull-requests: write
16+
17+
jobs:
18+
add-to-project:
19+
name: Add to project
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Add issue or PR to project board
23+
uses: actions/add-to-project@v1.0.2
24+
with:
25+
project-url: https://github.com/orgs/seedcase-project/projects/18
26+
github-token: ${{ secrets.ADD_TO_BOARD }}
27+
28+
- name: Assign PR to creator
29+
if: ${{ github.event_name == 'pull_request' }}
30+
run: |
31+
gh pr edit $PR --add-assignee $AUTHOR
32+
env:
33+
AUTHOR: ${{ github.event.pull_request.user.login }}
34+
PR: ${{ github.event.pull_request.html_url }}
35+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build-package.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build package
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths-ignore:
8+
# Config files
9+
- ".github/**"
10+
- ".vscode/**"
11+
- ".gitignore"
12+
# Documentation
13+
- "docs/**"
14+
- "*.md"
15+
- "*.qmd"
16+
- "justfile"
17+
# Website files
18+
- _quarto.yml
19+
- index.qmd
20+
- _publish.yml
21+
- _extensions/**
22+
push:
23+
branches:
24+
- main
25+
26+
jobs:
27+
lint:
28+
uses: seedcase-project/.github/.github/workflows/reusable-lint-python.yml@main
29+
30+
test:
31+
uses: seedcase-project/.github/.github/workflows/reusable-test-python.yml@main
32+
needs: lint

.github/workflows/build-website.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build website of documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- docs/**
9+
- _quarto.yml
10+
- index.qmd
11+
- _publish.yml
12+
- _extensions/**
13+
14+
jobs:
15+
build-website:
16+
uses: seedcase-project/.github/.github/workflows/reusable-build-docs-with-python.yml@main
17+
secrets:
18+
netlify-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}

0 commit comments

Comments
 (0)