diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..227257b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +# EditorConfig settings. Some editors will read these automatically; +# for those that don't, see here: http://editorconfig.org/ + +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +max_line_length = 88 + +# Have a bit shorter line length for text docs +[*.{txt,md,qmd}] +max_line_length = 72 +indent_size = 4 + +# Python always uses 4 spaces for tabs +[*.py] +indent_style = space +indent_size = 4 + +# Makefiles always use tabs for indentation +[Makefile] +indent_style = tab diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..1e3137e --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,3 @@ +# All members on Developers team get added to review PRs +* @seedcase-project/developers + diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..db513a1 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + commit-message: + prefix: ci + include: scope + assignees: + - "lwjohnst86" diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..920be8e --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,12 @@ +## Description + +This PR DESCRIBE CHANGES. + +Closes # + + +This PR needs a quick/an in-depth review. + +## Checklist + +- [ ] Ran `just run-all` diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml new file mode 100644 index 0000000..dddcc49 --- /dev/null +++ b/.github/workflows/add-to-project.yml @@ -0,0 +1,37 @@ +name: Add to project board + +on: + issues: + types: + - opened + - reopened + - transferred + pull_request: + types: + - reopened + - opened + +permissions: + pull-requests: write + +jobs: + add-to-project: + name: Add to project + runs-on: ubuntu-latest + steps: + - name: Add issue or PR to project board + uses: actions/add-to-project@v1.0.2 + with: + project-url: https://github.com/orgs/seedcase-project/projects/18 + github-token: ${{ secrets.ADD_TO_BOARD }} + + - name: Assign PR to creator + if: ${{ github.event_name == 'pull_request' }} + run: | + gh pr edit $PR --add-assignee $AUTHOR + env: + AUTHOR: ${{ github.event.pull_request.user.login }} + PR: ${{ github.event.pull_request.html_url }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8f5729e --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +# Development files and folders +_ignore + +# Temporary files +*.tmp + +# Python specific content +venv +__pycache__/ +*.py[cod] + +# MacOS +.DS_Store + diff --git a/justfile b/justfile index d319c89..0d096f7 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,9 @@ @_default: just --list --unsorted +# Run all recipes +run-all: install build-readme + # Install all scripts in `bin/` to `~/.local/bin/` install: mkdir -p ~/.local/bin