Skip to content

Commit

Permalink
add pull-request: write permission for pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaskoepf committed Feb 1, 2025
1 parent 808e470 commit 0f6f58c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: Pre-commit
name: Pre-commit Checks

permissions:
contents: read
pull-requests: write

on:
pull_request:
Expand All @@ -7,10 +11,6 @@ on:
jobs:
pre-commit:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
Expand Down
2 changes: 0 additions & 2 deletions reasoning_gym/arithmetic/time_intervals.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import random
import zoneinfo
from dataclasses import dataclass
from datetime import date, datetime, time, timedelta
from typing import List, Optional
Expand Down Expand Up @@ -82,7 +81,6 @@ class TimeIntervalsDataset(ProceduralDataset):

def __init__(self, config: TimeIntervalsConfig):
super().__init__(config=config, seed=config.seed, size=config.size)
self.timezones = list(pytz.common_timezones)

def __getitem__(self, idx: int) -> dict:
"""Generate a single time interval calculation task"""
Expand Down

0 comments on commit 0f6f58c

Please sign in to comment.