Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change python formatter to ruff #245

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
9 changes: 6 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ repos:
"-x", ".github/*", ".pre-commit-config.yaml", "README.md",
"doc/ReleaseNotes.md", ".k4fwcore-ci.d/*",
"-f"]
- repo: https://github.com/psf/black
rev: 23.11.0
- repo: local
hooks:
- id: black
- id: ruff-format
name: ruff-format
entry: ruff format --force-exclude
types: [python]
language: system
10 changes: 10 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
target-version = "py311"

line-length = 99

[format]
# Make things format the same way as black
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
5 changes: 1 addition & 4 deletions k4FWCore/scripts/k4-print-joboptions
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/env python
"""


"""
""" """

from __future__ import print_function
import argparse
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml

This file was deleted.

Loading