Skip to content

Commit

Permalink
fix: updates to ruff formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaphoenix committed Oct 10, 2024
1 parent e25ba32 commit 326f4cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 25 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ autofix-all:
# use it like this:
# make fix f=tools/validation_util.py
fix:
black --line-length=80 ${f}
ruff format ${f}

build:
python3 -m build
Expand Down
28 changes: 4 additions & 24 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,11 @@
[tool.black]
line-length = 88
target-version = ['py36', 'py37', 'py38']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
# The following are specific to Black, you probably don't want those.
| blib2to3
| tests/data
| profiling
)/
'''

# Build system information below.
[build-system]
requires = ["setuptools>=42", "setuptools-scm", "wheel"]
build-backend = "setuptools.build_meta"

[tool.ruff]
line-length = 80
extend-exclude = ["*.ipynb"]

[tool.ruff.format]
quote-style = "double"
indent-style = "tab"

0 comments on commit 326f4cf

Please sign in to comment.