Skip to content

Commit

Permalink
Fix #134 add 'format' script to dev environment
Browse files Browse the repository at this point in the history
This uses `ruff format` with the following changes:
  - line-length = 79
  - quote-style = "single"

These changes reduce the number of diffs substantially.
  • Loading branch information
goodmami committed Nov 15, 2023
1 parent b4eb9c1 commit 849f003
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ dependencies = [
test = "pytest {args:--doctest-glob=*.rst --doctest-modules --ignore-glob=penman/interface.py}"
lint = "ruff {args} penman/"
typecheck = "mypy penman/"
format = "ruff format {args} penman/"

[tool.hatch.envs.docs]
dependencies = [
Expand All @@ -73,6 +74,7 @@ clean = "make -C docs clean"

[tool.ruff]
target-version = "py38"
line-length = 79
select = [
"B", # flake8-bugbear
"C90", # McCabe cyclomatic complexity
Expand All @@ -86,3 +88,6 @@ select = [
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true

[tool.ruff.format]
quote-style = "single"

0 comments on commit 849f003

Please sign in to comment.