Skip to content

Commit e750925

Browse files
committed
Add codespell and pre-commit config files
1 parent 152fbe9 commit e750925

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
ignore-words = .codespellignore
3+
ignore-multiline-regex = \{\s*/\*\s*\*\s*codespell:ignore-begin\s*\*\s*\*/\s*\}\s*.*?\s*\{\s*/\*\s*\*\s*codespell:ignore-end\s*\*\s*\*/\s*\}

.pre-commit-config.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
default_language_version:
2+
python: python3
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v5.0.0
7+
hooks:
8+
- id: no-commit-to-branch
9+
args: ["--branch", "main", "--branch", "dev"]
10+
- id: mixed-line-ending
11+
- id: end-of-file-fixer
12+
- id: trailing-whitespace
13+
- id: check-added-large-files
14+
- id: check-merge-conflict
15+
- id: check-case-conflict
16+
- id: check-docstring-first
17+
- id: check-symlinks
18+
- id: check-yaml
19+
- id: check-json
20+
- id: check-toml
21+
- id: check-ast
22+
- id: check-executables-have-shebangs
23+
- id: check-shebang-scripts-are-executable
24+
- id: check-vcs-permalinks
25+
- id: detect-private-key
26+
- id: detect-aws-credentials
27+
args: ["--allow-missing-credentials"]
28+
- id: debug-statements
29+
- id: destroyed-symlinks
30+
- id: fix-byte-order-marker
31+
- id: requirements-txt-fixer
32+
33+
- repo: https://github.com/igorshubovych/markdownlint-cli
34+
rev: v0.45.0
35+
hooks:
36+
- id: markdownlint
37+
38+
- repo: https://github.com/astral-sh/ruff-pre-commit
39+
rev: v0.14.14
40+
hooks:
41+
- id: ruff
42+
args: [--fix]
43+
- id: ruff-format
44+
45+
- repo: local
46+
hooks:
47+
- id: mypy
48+
name: mypy
49+
entry: .venv/bin/python -m mypy --config-file=pyproject.toml paradedb
50+
language: system
51+
types: [python]
52+
pass_filenames: false
53+
54+
- repo: local
55+
hooks:
56+
- id: pytest
57+
name: pytest
58+
entry: .venv/bin/python -m pytest -m "not integration"
59+
language: system
60+
pass_filenames: false
61+
stages: [pre-push]

0 commit comments

Comments
 (0)