Skip to content

Commit

Permalink
cope
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Jul 8, 2024
1 parent ff007a1 commit 7094ff7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# https://results.pre-commit.ci/repo/github/821875747
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.1
hooks:
# Run the linter.
- id: ruff
args: [--fix]
pass_filenames: false
# Run the formatter.
- id: ruff-format

# - repo: https://github.com/pre-commit/mirrors-clang-format
# rev: v18.1.8
# hooks:
# - id: clang-format
# args: [-style=file:src/float/.clang-format.yaml]
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,11 @@ qt_api = "pyqt6"
[tool.pylintrc]
disable = ["duplicate-code", "fixme"]
extension-pkg-whitelist = ["PyQt6", "cv2"]

# For precommit CI
[tool.ruff]
format.quote-style = 'single'
line-length = 99

[tool.ruff.lint]
extend-select = ["I"]

0 comments on commit 7094ff7

Please sign in to comment.