Skip to content

Commit 9fd6bcb

Browse files
authored
Merge pull request #18 from DoubleML/s-add-pre-commit
Add pre-commit
2 parents 5302f31 + 29e480f commit 9fd6bcb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+2324
-1313
lines changed

.github/workflows/apo_sim.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ jobs:
8686
git pull --rebase origin ${{ env.TARGET_BRANCH }}
8787
git push origin ${{ env.TARGET_BRANCH }}
8888
env:
89-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/iivm_sim.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ jobs:
8686
git pull --rebase origin ${{ env.TARGET_BRANCH }}
8787
git push origin ${{ env.TARGET_BRANCH }}
8888
env:
89-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/irm_sim.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ jobs:
9191
git pull --rebase origin ${{ env.TARGET_BRANCH }}
9292
git push origin ${{ env.TARGET_BRANCH }}
9393
env:
94-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pliv_sim.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ jobs:
8686
git pull --rebase origin ${{ env.TARGET_BRANCH }}
8787
git push origin ${{ env.TARGET_BRANCH }}
8888
env:
89-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/plr_sim.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
uses: astral-sh/setup-uv@v5
5555
with:
5656
version: "0.6.11"
57-
57+
5858
- name: Set up Python
5959
uses: actions/setup-python@v5
6060
with:
@@ -98,4 +98,4 @@ jobs:
9898
git pull --rebase origin ${{ env.TARGET_BRANCH }}
9999
git push origin ${{ env.TARGET_BRANCH }}
100100
env:
101-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/quant_sim.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ jobs:
8888
git pull --rebase origin ${{ env.TARGET_BRANCH }}
8989
git push origin ${{ env.TARGET_BRANCH }}
9090
env:
91-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/rdd_sim.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ jobs:
9393
git pull --rebase origin ${{ env.TARGET_BRANCH }}
9494
git push origin ${{ env.TARGET_BRANCH }}
9595
env:
96-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ssm_sim.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ jobs:
8787
git pull --rebase origin ${{ env.TARGET_BRANCH }}
8888
git push origin ${{ env.TARGET_BRANCH }}
8989
env:
90-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ __pycache__/
22

33
# Logs
44
monte-cover/logs/
5-
*.log
5+
*.log

.pre-commit-config.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
# File format checks
6+
- id: check-yaml
7+
exclude: ^results/
8+
- id: check-toml
9+
# Code quality checks
10+
- id: debug-statements
11+
- id: check-added-large-files
12+
# File formatting fixes
13+
- id: mixed-line-ending
14+
- id: trailing-whitespace
15+
- id: end-of-file-fixer
16+
- repo: https://github.com/psf/black
17+
rev: 25.1.0
18+
hooks:
19+
- id: black
20+
- repo: https://github.com/astral-sh/ruff-pre-commit
21+
rev: v0.11.7
22+
hooks:
23+
- id: ruff
24+
args: ["--fix", "--output-format=full"]

0 commit comments

Comments
 (0)