Skip to content
Open
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
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
repos:
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
args: ["qlib", "-l 120"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format

- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
Expand Down
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
[build-system]
requires = ["setuptools", "numpy", "Cython"]

# configuration for black -l 120
line-length = 120

# configuration for lint flake8 implementing
# on ruff lint
# W503 == W504
[tool.ruff.lint]
ignore = ["E501","F541","E266","E402","E731","E203"]

[tool.ruff.format]
# automatically detecting appropriate line ending
line-ending = "auto"
Loading