Skip to content

Commit 47cc325

Browse files
committed
Add pre-commit checks
1 parent 1a39336 commit 47cc325

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

.pre-commit-config.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
ci:
2+
autoupdate_commit_msg: "chore: update pre-commit hooks"
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: "v4.6.0"
7+
hooks:
8+
- id: check-added-large-files
9+
- id: check-case-conflict
10+
- id: check-merge-conflict
11+
- id: check-symlinks
12+
- id: mixed-line-ending
13+
- id: detect-private-key
14+
# - id: check-ast
15+
# - id: trailing-whitespace
16+
17+
- repo: https://github.com/astral-sh/ruff-pre-commit
18+
rev: v0.4.4
19+
hooks:
20+
# Run the linter.
21+
- id: ruff
22+
args: ["--fix"]
23+
# Run the formatter.
24+
# - id: ruff-format
25+

src/scicode/parse/parse.py

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
import scipy
99
import numpy as np
1010
from sympy import Symbol
11-
from pathlib import Path
12-
from textwrap import dedent
13-
from typing import Any
1411

1512
OrderedContent = list[tuple[str, str]]
1613

0 commit comments

Comments
 (0)