Skip to content

Commit 8d82b1e

Browse files
committed
update ruff settings
1 parent 7a7180a commit 8d82b1e

1 file changed

Lines changed: 23 additions & 17 deletions

File tree

pyproject.toml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,29 @@ dev = [
6969
[project.scripts]
7070
taskbadger = "taskbadger.cli_main:app"
7171

72-
[tool.black]
73-
line-length = 120
74-
target_version = ['py37', 'py38', 'py39']
75-
exclude = '''
76-
(
77-
/(
78-
| \.git
79-
| \.venv
80-
| \.mypy_cache
81-
)/
82-
)
83-
'''
84-
85-
[tool.isort]
86-
line_length = 120
87-
profile = "black"
88-
8972
[tool.pytest.ini_options]
9073
# don't run integration tests unless specifically requested
9174
norecursedirs = ".* integration_tests"
75+
76+
77+
[tool.ruff]
78+
exclude = [
79+
".venv",
80+
".git",
81+
".ruff_cache",
82+
]
83+
line-length = 120
84+
indent-width = 4
85+
target-version = "py39"
86+
87+
[tool.ruff.lint]
88+
select = ["E", "F", "I", "UP", "DJ", "PT"]
89+
fixable = ["ALL"]
90+
unfixable = []
91+
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
92+
93+
[tool.ruff.format]
94+
quote-style = "double"
95+
indent-style = "space"
96+
skip-magic-trailing-comma = false
97+
line-ending = "auto"

0 commit comments

Comments
 (0)