Skip to content

Commit

Permalink
Merge pull request #354 from neutrinoceros/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored Apr 1, 2024
2 parents f248b36 + 41750b3 commit f1e8643
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ repos:
- id: check-toml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.3.4
hooks:
- id: ruff-format
- id: ruff
args: [--fix]

- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.12.0
rev: v2.13.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
1 change: 1 addition & 0 deletions src/idefix_cli/_commands/clean.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""remove compilation files"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions src/idefix_cli/_commands/clone.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""clone a problem directory"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions src/idefix_cli/_commands/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
Any additional argument is passed directly to cmake.
Use the -i/--interactive flag to enable ccmake as the backend.
"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions src/idefix_cli/_commands/digest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""agregate performance data from log files as json"""

import re
import sys
from argparse import ArgumentParser
Expand Down
1 change: 1 addition & 0 deletions src/idefix_cli/_commands/read.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""read an Idefix inifile and print it to json format"""

from __future__ import annotations

import json
Expand Down
1 change: 1 addition & 0 deletions src/idefix_cli/_commands/run.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""run an Idefix problem"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions src/idefix_cli/_commands/switch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""switch git branch in $IDEFIX_DIR using git checkout"""

import os
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions src/idefix_cli/_commands/write.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""write an Idefix inifile from a json string"""

from __future__ import annotations

import argparse
Expand Down

0 comments on commit f1e8643

Please sign in to comment.