-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (73 loc) · 1.98 KB
/
pyproject.toml
File metadata and controls
87 lines (73 loc) · 1.98 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
76
77
78
79
80
81
82
83
84
85
86
87
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[project]
name = "flamapy-fm"
version = "2.5.0"
description = "flamapy-fm is a plugin to Flamapy module"
readme = "README.md"
license = "GPL-3.0-or-later"
authors = [{ name = "Flamapy", email = "flamapy@us.es" }]
requires-python = ">=3.9"
dependencies = [
"flamapy-fw~=2.5.0",
"uvlparser~=2.5.0",
"afmparser~=1.0.3",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-mock",
"prospector",
"mypy",
"coverage",
"antlr4-tools",
]
[project.urls]
Homepage = "https://github.com/flamapy/fm_metamodel"
[tool.setuptools.packages.find]
include = ["flamapy.*"]
[tool.ruff]
line-length = 100 # Matches max-line-length from pycodestyle
target-version = "py39"
[tool.ruff.lint]
select = ["E", "W", "F", "C", "PL", "RUF"] # Includes pycodestyle, pylint, and McCabe complexity
ignore = [
"RUF012",
"RUF002",
"RUF001",
]
[tool.ruff.lint.mccabe]
max-complexity = 10 # Equivalent to enabling mccabe in Prospector
[tool.ruff.lint.per-file-ignores]
"flamapy/metamodels/fm_metamodel/transformations/pysat_to_fm.py" = ["ALL"] # Ignore this file entirely
"tests/*" = ["ALL"] # Ignore all test files
"build/*" = ["ALL"]
"resources/*" = ["ALL"]
".mypy_cache/*" = ["ALL"]
"venv/*" = ["ALL"]
".venv/*" = ["ALL"]
"env/*" = ["ALL"]
"flamapy_fm.egg-info/*" = ["ALL"]
"__pycache__/*" = ["ALL"]
[tool.ruff.lint.pycodestyle]
max-line-length = 100 # Matches your existing pycodestyle setting
# MYPY CONFIGURATION
[tool.mypy]
scripts_are_modules = true
show_traceback = true
# Strict checking
check_untyped_defs = true
disallow_untyped_defs = true
disallow_any_generics = true
warn_no_return = true
strict_optional = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
# Show error codes for type: ignore comments
show_error_codes = true
# Suppress missing imports errors
ignore_missing_imports = true
# Warn about unreachable or redundant code
warn_unreachable = true