Skip to content

Commit

Permalink
Merge pull request #346 from neutrinoceros/ruff-format
Browse files Browse the repository at this point in the history
STY migrate from black to ruff-format
  • Loading branch information
neutrinoceros authored Nov 5, 2023
2 parents 31a3eb6 + 1105f18 commit 0208079
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
12 changes: 4 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: no-commit-to-branch
- id: debug-statements
Expand All @@ -13,19 +13,15 @@ repos:
- id: end-of-file-fixer
- id: check-toml

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
rev: v0.1.4
hooks:
- id: ruff-format
- id: ruff
args: [--fix]

- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.10.0
rev: v2.11.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[![PyPI](https://img.shields.io/pypi/v/idefix_cli.svg?logo=pypi&logoColor=white&label=PyPI)](https://pypi.org/project/idefix-cli/)
[![Documentation Status](https://readthedocs.org/projects/idefix-cli/badge/?version=latest)](https://idefix-cli.readthedocs.io/en/latest/?badge=latest)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/neutrinoceros/idefix_cli/main.svg)](https://results.pre-commit.ci/badge/github/neutrinoceros/idefix_cli/main.svg)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/charliermarsh/ruff)

# `idefix_cli`
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,9 @@ include-package-data = false
where = ["src"]
namespaces = false

[tool.black]
line-length = 88

[tool.ruff]
exclude = ["*__init__.py"]
ignore = ["E501"]
ignore = ["E501", "ISC001"]
select = [
"E",
"F",
Expand Down
2 changes: 1 addition & 1 deletion src/idefix_cli/_commands/digest.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def add_arguments(parser: ArgumentParser) -> None:
dest="output",
default=sys.stdout,
help="output file (stdout by default)",
),
)
select_group = parser.add_mutually_exclusive_group()
select_group.add_argument(
"-i",
Expand Down

0 comments on commit 0208079

Please sign in to comment.