Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ indent_size = 4
[*.py]
indent_style = space
indent_size = 4

23 changes: 6 additions & 17 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,9 @@ permissions:

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 }}
uses: seedcase-project/.github/.github/workflows/reusable-add-to-project.yml@main
with:
board-number: 18
secrets:
add-to-board-token: ${{ secrets.ADD_TO_BOARD }}
gh-token: ${{ secrets.GITHUB_TOKEN }}
14 changes: 5 additions & 9 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ run-all: install-deps format-python check-python check-commits

# Install Python package dependencies
install-deps:
poetry install
uv sync --upgrade --dev

# Check Python code with the linter for any errors that need manual attention
check-python:
poetry run ruff check .
uv run ruff check .

# Reformat Python code to match coding style and general structure
format-python:
poetry run ruff check --fix .
poetry run ruff format .
uv run ruff check --fix .
uv run ruff format .

# Run checks on commits with non-main branches
check-commits:
Expand All @@ -24,11 +24,7 @@ check-commits:
number_of_commits=$(git rev-list --count HEAD ^$branch_name)
if [[ ${branch_name} != "main" && ${number_of_commits} -gt 0 ]]
then
poetry run cz check --rev-range main..HEAD
uv run cz check --rev-range main..HEAD
else
echo "Not on main or haven't committed yet."
fi

# Update all dependencies in lockfile
update-deps:
poetry update