Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
reporter: java-junit

# run pre-commit only different from base branch
# it contains pylint, black, isort, etc.
# it contains ruff, pyright, etc.
- name: Run pre-commit
run: |
git fetch origin ${{ github.base_ref }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ db.sqlite3

# Environments
.env
.env.local
.venv
.codex

# VScode
.vscode
Expand Down
38 changes: 5 additions & 33 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,14 @@ repos:
- id: trailing-whitespace
- id: detect-private-key

- repo: local
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.9
hooks:
- id: black
name: black
entry: black
language: system
types: [python]
args:
- --line-length=88
- id: ruff
args: [ --fix ]
- id: ruff-format

- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.314
hooks:
- id: pyright

- repo: https://github.com/hadialqattan/pycln
rev: v2.5.0
hooks:
- id: pycln
args: [--config=pyproject.toml]

- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort

- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args: [
"-rn", # Only display messages
"-sn", # Don't display the score
"--rcfile=.pylintrc", # Link to your config file
"-j", "0" # Use all available cores
]
Loading
Loading