Skip to content

Commit 4815301

Browse files
authored
Initial commit
0 parents  commit 4815301

22 files changed

+2672
-0
lines changed

.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/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 will [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+
- [ ] Read through for typos, added new words to the dictionary
13+
- [ ] Checked that the README is up to date
14+
- [ ] Resolved any Ruff errors / formatted in Markdown

.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
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 }}

.gitignore

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Development files and folders
2+
_ignore
3+
bin/
4+
dev/
5+
6+
# Temporary files
7+
*.tmp
8+
9+
# Any IDE specific folders
10+
.idea
11+
12+
# Any .env files
13+
.env
14+
.env.*
15+
**/.env.*
16+
.env
17+
.venv
18+
env/
19+
venv/
20+
ENV/
21+
env.bak/
22+
venv.bak/
23+
24+
# Python specific content
25+
venv
26+
__pycache__/
27+
*.py[cod]
28+
29+
# Python packaging and distribution
30+
.Python
31+
build/
32+
develop-eggs/
33+
dist/
34+
downloads/
35+
eggs/
36+
.eggs/
37+
lib/
38+
lib64/
39+
parts/
40+
sdist/
41+
var/
42+
wheels/
43+
share/python-wheels/
44+
*.egg-info/
45+
.installed.cfg
46+
*.egg
47+
MANIFEST
48+
49+
# Python testing and code coverage
50+
htmlcov/
51+
.tox/
52+
.nox/
53+
.coverage
54+
.coverage.*
55+
.cache
56+
nosetests.xml
57+
coverage.xml
58+
*.cover
59+
*.py,cover
60+
.hypothesis/
61+
.pytest_cache/
62+
cover/
63+
64+
# MacOS
65+
.DS_Store
66+
67+
# Quarto
68+
/.quarto/
69+
docs/.quarto/
70+
*.ipynb
71+
*.quarto_ipynb
72+
*.storage
73+
74+
# Quartodoc
75+
/docs/reference/
76+
objects.json
77+
78+
# Website generation
79+
_site
80+
_book
81+
public
82+
site
83+
84+
85+
# Misc files
86+
*.log

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
ci:
4+
autofix_commit_msg: "chore(pre-commit): :pencil2: automatic fixes"
5+
autoupdate_commit_msg: "ci(pre-commit): :construction_worker: update pre-commit CI version"
6+
7+
repos:
8+
- repo: https://github.com/pre-commit/pre-commit-hooks
9+
rev: v5.0.0
10+
hooks:
11+
- id: trailing-whitespace
12+
- id: end-of-file-fixer
13+
14+
- repo: https://github.com/commitizen-tools/commitizen
15+
rev: v4.2.1
16+
hooks:
17+
- id: commitizen

.vscode/extensions.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
// List of extensions which should be recommended for users of this workspace.
5+
"recommendations": [
6+
"donjayamanne.githistory",
7+
"felipecaputo.git-project-manager",
8+
"GitHub.vscode-pull-request-github",
9+
"ms-azuretools.vscode-docker",
10+
"ms-python.python",
11+
"ms-python.vscode-pylance",
12+
"njpwerner.autodocstring",
13+
"quarto.quarto",
14+
"ms-toolsai.jupyter",
15+
"streetsidesoftware.code-spell-checker",
16+
"vivaxy.vscode-conventional-commits",
17+
"charliermarsh.ruff",
18+
"pshaddel.conventional-branch",
19+
"yy0931.vscode-sqlite3-editor"
20+
],
21+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
22+
"unwantedRecommendations": []
23+
}

.vscode/google-notypes.mustache

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{{! Copied from https://github.com/NilsJPWerner/autoDocstring/blob/master/src/docstring/templates/google-notypes.mustache with some edits }}
2+
{{! Google Docstring Template without Types for Args, Returns or Yields }}
3+
{{summaryPlaceholder}}.
4+
5+
{{extendedSummaryPlaceholder}}
6+
{{#parametersExist}}
7+
8+
Args:
9+
{{#args}}
10+
{{var}}: {{descriptionPlaceholder}}.
11+
{{/args}}
12+
{{#kwargs}}
13+
{{var}}: {{descriptionPlaceholder}}. Defaults to {{&default}}.
14+
{{/kwargs}}
15+
{{/parametersExist}}
16+
{{#returnsExist}}
17+
18+
Returns:
19+
{{#returns}}
20+
{{descriptionPlaceholder}}.
21+
{{/returns}}
22+
{{/returnsExist}}
23+
{{#exceptionsExist}}
24+
25+
Raises:
26+
{{#exceptions}}
27+
{{type}}: {{descriptionPlaceholder}}.
28+
{{/exceptions}}
29+
{{/exceptionsExist}}
30+
{{#yieldsExist}}
31+
32+
Yields:
33+
{{#yields}}
34+
{{descriptionPlaceholder}}.
35+
{{/yields}}
36+
{{/yieldsExist}}
37+
38+
Examples:
39+
```{python}
40+
{{descriptionPlaceholder}}
41+
```

0 commit comments

Comments
 (0)