Skip to content

Commit ced4706

Browse files
committed
Update pyproject.toml
1 parent 59ba4fa commit ced4706

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

pyproject.toml

+5-15
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
1-
# Ruff Configuration: This section configures the Ruff linter
21
[tool.ruff]
32
line-length = 120
4-
lint.select = ["E", "F", "I"] # Specifies the linting rules to enable:
5-
# - "E": pycodestyle errors (e.g., whitespace issues).
6-
# - "F": pyflakes errors (e.g., undefined variables).
7-
# - "I": import-related rules (e.g., sorting, unused imports).
3+
lint.select = ["E", "F", "I"]
4+
lint.fixable = ["F", "I"]
5+
exclude = ["build/", "dist/", ".venv/"]
86

9-
lint.fixable = ["F", "I"] # Specifies which issues Ruff can automatically fix:
10-
# - "F": pyflakes fixes (e.g., unused variables).
11-
# - "I": import fixes (e.g., sorting, removing unused imports).
12-
13-
exclude = ["build/", # Directories to exclude from linting:
14-
"dist/", # - "build/": Temporary build files.
15-
".venv/"] # - ".venv/": Virtual environment directory.
16-
17-
# Suppresses errors for missing type stubs in the pygame package.
187
[tool.mypy]
19-
python_version = "3.12" # Use Python 3.12 for type checking
8+
python_version = "3.12"
209
check_untyped_defs = true
10+
ignore_missing_imports = true
2111

2212
["mypy-pygame.*"]
2313
ignore_missing_imports = true

0 commit comments

Comments
 (0)