-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (66 loc) · 1.92 KB
/
pyproject.toml
File metadata and controls
75 lines (66 loc) · 1.92 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[tool.mypy]
# Mypy type checking configuration for DICE Embeddings
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false # Start lenient, will tighten later
disallow_incomplete_defs = false
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
# Output configuration
show_error_codes = true
show_error_context = true
pretty = true
# Module-specific overrides
[[tool.mypy.overrides]]
module = "dicee.knowledge_graph_embeddings"
disallow_untyped_defs = false # Has type hints but not complete yet
disallow_incomplete_defs = false
[[tool.mypy.overrides]]
module = "dicee.executer"
disallow_untyped_defs = false
disallow_incomplete_defs = false
# Ignore missing imports for third-party libraries without stubs
[[tool.mypy.overrides]]
module = [
"lightning.*",
"polars.*",
"rdflib.*",
"psutil.*",
"owlready2.*",
"pykeen.*",
"gradio.*",
]
ignore_missing_imports = true
[tool.ruff]
line-length = 200
target-version = "py311"
[tool.ruff.lint]
# Enable pycodestyle (E), Pyflakes (F), and isort (I) rules
select = ["E", "F", "I", "W"]
ignore = [
"E501", # Line too long (handled by line-length)
"E741", # Ambiguous variable name
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # Allow unused imports in __init__.py files
[tool.ruff.lint.isort]
known-first-party = ["dicee"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.pytest.ini_options]
# Pytest configuration
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-p no:warnings -x --tb=short"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]