|
1 |
| -# Ruff Configuration: This section configures the Ruff linter |
2 | 1 | [tool.ruff]
|
3 | 2 | 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/"] |
8 | 6 |
|
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. |
18 | 7 | [tool.mypy]
|
19 |
| -python_version = "3.12" # Use Python 3.12 for type checking |
| 8 | +python_version = "3.12" |
20 | 9 | check_untyped_defs = true
|
| 10 | +ignore_missing_imports = true |
21 | 11 |
|
22 | 12 | ["mypy-pygame.*"]
|
23 | 13 | ignore_missing_imports = true
|
0 commit comments