Skip to content

Commit 2cd0976

Browse files
author
Joongheon Park
committed
chore: enhance .gitignore and update project configurations
- Expanded .gitignore to include additional macOS and Windows files, improving exclusion of unnecessary artifacts. - Refined settings.local.json to streamline Bash command permissions. - Updated GitHub workflows to specify working directories for improved CI/CD processes. - Adjusted pyproject.toml to clarify project dependencies and enhance compatibility. - Enhanced CLI project generation with improved path resolution and name validation. - Cleaned up scaffold templates to ensure consistency and clarity in generated projects.
1 parent 29d81df commit 2cd0976

14 files changed

Lines changed: 1112 additions & 2384 deletions

File tree

.claude/settings.local.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
{
22
"permissions": {
33
"allow": [
4-
"Bash(dir:*)",
5-
"Bash(uv pip install:*)",
6-
"Bash(timeout /t 2)",
7-
"Bash(nul)",
8-
"Bash(uv run act:*)",
9-
"Bash(.venv/Scripts/python.exe -m act_operator:*)",
10-
"Bash(python -m act_operator:*)",
11-
"Bash(uv sync:*)"
4+
"Bash(tree:*)",
5+
"Bash(cat:*)",
6+
"Bash(uv run pytest:*)",
7+
"Bash(uv run python:*)"
128
],
139
"deny": [],
1410
"ask": []

.github/workflows/ruff.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on: [push, pull_request]
55
jobs:
66
ruff:
77
runs-on: ubuntu-latest
8+
defaults:
9+
run:
10+
working-directory: act_operator
811
steps:
912
- uses: actions/checkout@v5
1013

.github/workflows/uv_lock_upgrade.yml

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
pull-requests: write
1313

1414
env:
15-
PYTHON_VERSION: "3.12"
15+
PYTHON_VERSION: "3.12" # Updated to match project requirements
1616
WORKING_DIRECTORY: "act_operator"
1717

1818
jobs:
@@ -30,20 +30,55 @@ jobs:
3030
cache-suffix: "uv-lock-upgrade"
3131

3232
- name: Upgrade lock file
33-
run: uv lock --upgrade
33+
run: |
34+
echo "📦 Upgrading dependencies..."
35+
uv lock --upgrade
3436
working-directory: ${{ env.WORKING_DIRECTORY }}
3537

38+
- name: Check for changes
39+
id: check_changes
40+
run: |
41+
if git diff --quiet; then
42+
echo "No dependency updates available"
43+
echo "has_changes=false" >> $GITHUB_OUTPUT
44+
else
45+
echo "Dependency updates found"
46+
echo "has_changes=true" >> $GITHUB_OUTPUT
47+
echo "📝 Changed files:"
48+
git diff --name-only
49+
fi
50+
3651
- name: Create Pull Request
52+
if: steps.check_changes.outputs.has_changes == 'true'
3753
uses: peter-evans/create-pull-request@v7
3854
with:
3955
token: ${{ secrets.GITHUB_TOKEN }}
40-
commit-message: "chore(deps): upgrade dependencies with `uv lock --upgrade`"
41-
title: "chore(deps): upgrade dependencies with `uv lock --upgrade`"
56+
commit-message: "chore(deps): upgrade dependencies"
57+
title: "chore(deps): upgrade dependencies"
4258
body: |
43-
This PR updates the dependencies in the Act Operator package using `uv lock --upgrade`.
59+
## 📦 Dependency Updates
60+
61+
This PR updates the dependencies in Act-Operator using `uv lock --upgrade`.
62+
63+
### Changed Files
64+
- `act_operator/uv.lock`
4465
45-
This is an automated PR created by the UV Lock Upgrade workflow.
66+
### Review Checklist
67+
- [ ] Review the dependency changes
68+
- [ ] Run tests to ensure compatibility
69+
- [ ] Check for any breaking changes in updated packages
70+
71+
---
72+
🤖 Automated PR by [UV Lock Upgrade workflow](${{ github.server_url }}/${{ github.repository }}/actions/workflows/uv_lock_upgrade.yml)
73+
74+
**Triggered by:** ${{ github.event_name }}
4675
branch: deps/uv-lock-upgrade
4776
delete-branch: true
4877
labels: |
4978
dependencies
79+
automated
80+
81+
- name: No updates needed
82+
if: steps.check_changes.outputs.has_changes == 'false'
83+
run: |
84+
echo "✅ All dependencies are up to date!"

.gitignore

Lines changed: 134 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,156 @@
1-
# Python cache and compiled files
1+
### macOS ###
2+
.DS_Store
3+
.AppleDouble
4+
.LSOverride
5+
._*
6+
.DocumentRevisions-V100
7+
.fseventsd
8+
.Spotlight-V100
9+
.TemporaryItems
10+
.Trashes
11+
.VolumeIcon.icns
12+
.com.apple.timemachine.donotpresent
13+
*.icloud
14+
15+
### Windows ###
16+
Thumbs.db
17+
Thumbs.db:encryptable
18+
ehthumbs.db
19+
ehthumbs_vista.db
20+
*.stackdump
21+
[Dd]esktop.ini
22+
$RECYCLE.BIN/
23+
*.cab
24+
*.msi
25+
*.msix
26+
*.msm
27+
*.msp
28+
*.lnk
29+
30+
### Python ###
31+
# Byte-compiled / optimized / DLL files
232
__pycache__/
333
*.py[cod]
434
*$py.class
535

6-
# Packaging artifacts
36+
# C extensions
37+
*.so
38+
39+
# Distribution / packaging
40+
.Python
741
build/
42+
develop-eggs/
843
dist/
44+
downloads/
45+
eggs/
46+
.eggs/
47+
lib/
48+
lib64/
49+
parts/
50+
sdist/
51+
var/
52+
wheels/
53+
share/python-wheels/
954
*.egg-info/
55+
.installed.cfg
1056
*.egg
57+
MANIFEST
1158

1259
# Virtual environments
60+
.env
1361
.venv/
62+
env/
63+
venv/
64+
ENV/
65+
env.bak/
66+
venv.bak/
1467
.python-version
1568

16-
# Test and coverage outputs
69+
# Testing
1770
.pytest_cache/
18-
.coverage*
71+
.coverage
72+
.coverage.*
1973
htmlcov/
74+
.tox/
75+
.nox/
76+
nosetests.xml
77+
coverage.xml
78+
*.cover
79+
*.py,cover
80+
.hypothesis/
81+
82+
# Type checking
83+
.mypy_cache/
84+
.dmypy.json
85+
dmypy.json
86+
.pyre/
87+
.pytype/
88+
pyrightconfig.json
89+
90+
# Linting
91+
.ruff_cache/
92+
93+
# Logs
94+
*.log
95+
pip-log.txt
96+
pip-delete-this-directory.txt
97+
98+
# Jupyter Notebook
99+
.ipynb_checkpoints
100+
*.ipynb_checkpoints/
101+
102+
# IPython
103+
profile_default/
104+
ipython_config.py
105+
106+
# Django / Flask
107+
local_settings.py
108+
db.sqlite3
109+
db.sqlite3-journal
110+
instance/
111+
.webassets-cache
20112

21-
# Cookiecutter logs
113+
# Sphinx documentation
114+
docs/_build/
115+
/site
116+
117+
# PyBuilder
118+
.pybuilder/
119+
target/
120+
121+
# Translations
122+
*.mo
123+
*.pot
124+
125+
# Scrapy
126+
.scrapy
127+
128+
# Celery
129+
celerybeat-schedule
130+
celerybeat.pid
131+
132+
# SageMath
133+
*.sage.py
134+
135+
# Cython debug symbols
136+
cython_debug/
137+
138+
# Poetry
139+
poetry.toml
140+
141+
# Cookiecutter
22142
cookiecutter.log
23143

24144
# IDE settings
25145
.vscode/
26146
.idea/
147+
.spyderproject
148+
.spyproject
149+
.ropeproject
27150

28-
# OS-generated files
29-
.DS_Store
30-
Thumbs.db
151+
# Act-Operator specific
152+
# Exclude test/sample projects created during development
153+
sample-act/
154+
*-act/
155+
# Temporary files
156+
*.bak

0 commit comments

Comments
 (0)