Skip to content

Commit 1a564d0

Browse files
committed
Add ruff configuration for code linting and formatting
1 parent 9f8e501 commit 1a564d0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ruff.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[project]
2+
name = "UniversityPythonHomework"
3+
version = "0.1.0"
4+
5+
[tool.ruff.lint]
6+
7+
select = ["E", "W", "F", "I", "N", "B", "C4", "UP"]
8+
ignore = ["E501"]
9+
line-length = 120
10+
11+
[tool.ruff.lint.isort]
12+
known-first-party = []
13+
14+
[tool.ruff.format]
15+
indent-style = "space"
16+
indent-width = 4
17+
18+
line-length = 120
19+
20+
closing-bracket-alignment = true
21+

0 commit comments

Comments
 (0)