Skip to content

Commit 4522fca

Browse files
committed
PYSCAN-19: Setup formatter (#16)
1 parent 1e1e180 commit 4522fca

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,14 @@ python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
5757

5858
[tool.hatch.envs.tool]
5959
dependencies = [
60-
"licenseheaders"
60+
"licenseheaders",
61+
"black"
6162
]
6263

6364
[tool.hatch.envs.tool.scripts]
6465
license = 'python -m licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2023 -n "Sonar Scanner Python" -E .py'
66+
format = 'python -m black src/ tests/ --check'
67+
68+
[tool.black]
69+
line-length = 89
70+
target-version = ["py38", "py39", "py310", "py311", "py312"]

0 commit comments

Comments
 (0)