-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
48 lines (44 loc) · 1.42 KB
/
pyproject.toml
File metadata and controls
48 lines (44 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Ruff configuration for ftoolss project
# See: https://docs.astral.sh/ruff/configuration/
[tool.ruff]
# Exclude directories that should not be linted
exclude = [
".git",
"__pycache__",
"build",
"dist",
"venv",
"htmlcov",
".pytest_cache",
"*.egg-info",
]
[tool.ruff.lint]
# Enable specific rule categories
select = [
"E", # pycodestyle errors
"F", # pyflakes (critical errors only)
]
# Ignore specific rules that are too noisy for this codebase
ignore = [
"E501", # Line too long (handled by formatter)
"E402", # Module level import not at top of file
"E701", # Multiple statements on one line
"E702", # Multiple statements on one line (semicolon)
"E741", # Ambiguous variable name
"F541", # f-string without placeholders (common in print statements)
]
[tool.ruff.lint.per-file-ignores]
# Ignore unused imports in __init__.py files
"__init__.py" = ["F401"]
# Ignore certain issues in test files
"test_*.py" = ["F401", "F811", "F841"]
# Ignore issues in example scripts
"example_*.py" = ["F541", "F841"]
# Ignore issues in benchmark scripts
"benchmark_*.py" = ["F401", "F841"]
# Ignore issues in comparison scripts
"compare_*.py" = ["F401", "F841"]
# Ignore issues in scripts directory
"scripts/*.py" = ["F401", "F841"]
# Ignore issues in instruction-given directory (external code)
"src/ftoolss/fits_file_to_fmpfit/instructions-given/*.py" = ["F401", "F811", "F841", "E"]