Skip to content

Commit bba67c0

Browse files
authored
V4.1.0 (#52)
1 parent 3a3ad34 commit bba67c0

File tree

7 files changed

+125
-1
lines changed

7 files changed

+125
-1
lines changed

.gemini/config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github
2+
have_fun: false
3+
code_review:
4+
disable: false
5+
comment_severity_threshold: MEDIUM
6+
max_review_comments: -1
7+
pull_request_opened:
8+
help: false
9+
summary: true
10+
code_review: true

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference
2+
version: 2
3+
updates:
4+
- package-ecosystem: "pip"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"

.github/rulesets/main.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"name": "main",
3+
"target": "branch",
4+
"enforcement": "active",
5+
"conditions": {
6+
"ref_name": {
7+
"exclude": [],
8+
"include": [
9+
"~DEFAULT_BRANCH"
10+
]
11+
}
12+
},
13+
"rules": [
14+
{
15+
"type": "deletion"
16+
},
17+
{
18+
"type": "required_linear_history"
19+
},
20+
{
21+
"type": "pull_request",
22+
"parameters": {
23+
"required_approving_review_count": 0,
24+
"dismiss_stale_reviews_on_push": true,
25+
"require_code_owner_review": false,
26+
"require_last_push_approval": false,
27+
"required_review_thread_resolution": false,
28+
"allowed_merge_methods": [
29+
"squash",
30+
"rebase"
31+
]
32+
}
33+
},
34+
{
35+
"type": "required_status_checks",
36+
"parameters": {
37+
"strict_required_status_checks_policy": true,
38+
"do_not_enforce_on_create": false,
39+
"required_status_checks": [
40+
{
41+
"context": "checks",
42+
"integration_id": 15368
43+
}
44+
]
45+
}
46+
},
47+
{
48+
"type": "non_fast_forward"
49+
}
50+
],
51+
"bypass_actors": [
52+
{
53+
"actor_id": 5,
54+
"actor_type": "RepositoryRole",
55+
"bypass_mode": "always"
56+
}
57+
]
58+
}

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## v4.1.0 (2025-03-05)
2+
3+
### Feat
4+
5+
- **gemini**: add support for gemini code assist (#51)
6+
- **dependabot**: add dependabot configuration file (#50)
7+
- **github**: add default rulesets and installation (#47)
8+
9+
### Fix
10+
11+
- **workflows**: fix just in workflows
12+
13+
### Refactor
14+
15+
- **cruft**: update to new template version
16+
117
## v4.0.0 (2025-03-04)
218

319
### Feat

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ You can use this package as part of your MLOps toolkit or platform (e.g., Model
3434
- [Workflows](#workflows)
3535
- [Tools](#tools)
3636
- [Automation](#automation-1)
37+
- [AI Assistant: Gemini Code Assist](#ai-assistant-gemini-code-assist)
3738
- [Commits: Commitizen](#commits-commitizen)
39+
- [Dependabot: Dependabot](#dependabot-dependabot)
3840
- [Git Hooks: Pre-Commit](#git-hooks-pre-commit)
3941
- [Tasks: Just](#tasks-just)
4042
- [CI/CD](#cicd)
@@ -287,6 +289,7 @@ format-source # format code source
287289
install # run install tasks
288290
install-hooks # install git hooks
289291
install-project # install the project
292+
install-rulesets # install github rulesets
290293
291294
[mlflow]
292295
mlflow # run mlflow tasks
@@ -321,6 +324,15 @@ This sections motivates the use of developer tools to improve your coding experi
321324

322325
Pre-defined actions to automate your project development.
323326

327+
### AI Assistant: [Gemini Code Assist](https://developers.google.com/gemini-code-assist/docs/review-github-code)
328+
329+
- **Motivations**:
330+
- Increase your coding productivity
331+
- Get code suggestions and completions
332+
- Reduce the time spent on reviewing code
333+
- **Limitations**:
334+
- Can generate wrong code, reviews, or summaries
335+
324336
### Commits: [Commitizen](https://commitizen-tools.github.io/commitizen/)
325337

326338
- **Motivations**:
@@ -332,6 +344,17 @@ Pre-defined actions to automate your project development.
332344
- **Alternatives**:
333345
- Do It Yourself (DIY)
334346

347+
### Dependabot: [Dependabot](https://docs.github.com/en/code-security/getting-started/dependabot-quickstart-guide)
348+
349+
- **Motivations**:
350+
- Avoid security issues
351+
- Avoid breaking changes
352+
- Update your dependencies
353+
- **Limitations**:
354+
- Can break your code
355+
- **Alternatives**:
356+
- Do It Yourself (DIY)
357+
335358
### Git Hooks: [Pre-Commit](https://pre-commit.com/)
336359

337360
- **Motivations**:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[project]
77
name = "bikes"
8-
version = "4.0.0"
8+
version = "4.1.0"
99
description = "Predict the number of bikes available."
1010
authors = [{ name = "Médéric HURIER", email = "[email protected]" }]
1111
readme = "README.md"

tasks/install.just

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,13 @@ install-hooks:
1212
[group('install')]
1313
install-project:
1414
uv sync --all-groups
15+
16+
# install github rulesets
17+
[group('install')]
18+
install-rulesets:
19+
#!/usr/bin/env bash
20+
set -euo pipefail
21+
repo=$(gh repo view --json=name --jq=.name)
22+
owner=$(gh repo view --json=owner --jq=.owner.login)
23+
gh api --method POST -H "Accept: application/vnd.github+json" \
24+
"/repos/$owner/$repo/rulesets" --input=".github/rulesets/main.json"

0 commit comments

Comments
 (0)