File: pyproject.toml

package info (click to toggle)
pyuvm 4.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 992 kB
  • sloc: python: 8,662; makefile: 238; vhdl: 206; sh: 7
file content (99 lines) | stat: -rw-r--r-- 2,959 bytes parent folder | download
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
88
89
90
91
92
93
94
95
96
97
98
99
[build-system]
requires = ["setuptools>=42","wheel"]
build-backend = "setuptools.build_meta"


[tool.ruff]
target-version = "py37"

[tool.ruff.lint]
extend-select = [
    "I",        # isort
    "UP",       # pyupgrade
    "E",        # pycodestyle errors
    "W",        # pycodestyle warnings
    "F",        # pyflakes
    "PL",       # pylint
]
ignore = [
    "E741",    # ambiguous variable name (preference)
    "E501",    # line too long (preference)
    "F405",    # Undefined local with import star usage (preference)
    "F403",    # Undefined local with import star (preference)
    "PLR0912", # Too many branches (>12) (preference)
    "PLR0913", # Too many arguments to function call (>5) (preference)
    "PLR0915", # Too many statements (>50) (preference)
    "PLR2004", # Magic value used in comparison (preference)
    "PLR0911", # Too many return statements (preference)
    "PLW0603", # Using the global statement (pedantic)
    "PLW1641", # object does not implement `__hash__` method (pedantic)
]

[tool.ruff.lint.isort]
known-first-party = [
    "pyuvm",
]
known-third-party = [
    "pytest",
    "cocotb",
]

[tool.ruff.lint.per-file-ignores]
"pyuvm/__init__.py" = [
    "F401",
]

[tool.codespell]
ignore-words-list = [
    "synopsys",
]

[tool.pytest.ini_options]
testpaths = [
    "tests/pytests",
]
markers = [
    "test_reg_get_name",
    "test_reg_configure",
    "test_reg_with_single_field",
    "test_reg_with_multiple_fields",
    "test_reg_with_multiple_felds_reset",
    "test_reg_with_multiple_fields_get_mirrored_value",
    "test_reg_with_multiple_fields_get_desired_value",
    "reg_block_get_field_single_reg",
    "reg_block_get_field_multiple_regs",
    "reg_block_get_field_sub_reg_block",
    "reg_block_get_reg_by_name",
    "reg_block_get_field_by_name",
    "test_reg_simple_predict",
    "test_reg_predict_edge_cases",
    "test_reg_predict_with_reserved_spaces",
    "test_reg_field_get_name",
    "test_reg_field_configure",
    "test_reg_field_is_volatile",
    "test_reg_field_all_access",
    "test_reg_field_lsb_pos",
    "test_reg_field_reset",
    "test_reg_field_get",
    "test_reg_field_get_value",
    "test_reg_field_field_predict_read_set",
    "test_reg_field_field_predict_read_clear",
    "test_reg_field_field_predict_write_set",
    "test_reg_field_field_predict_write_clear",
    "test_reg_field_field_predict_TOGGLE",
    "test_reg_field_field_predict_NO_ACCESS",
    "test_reg_field_field_predict_status_error_on_write",
    "test_reg_field_field_predict_status_error_on_read",
    "test_reg_block_get_name",
    "test_reg_block_with_single_reg",
    "test_reg_block_with_multiple_regs",
    "test_reg_map_get_name",
    "test_reg_map_configure",
    "test_reg_map_with_single_reg",
    "test_reg_map_with_multiple_regs",
    "reg_block_get_name",
    "reg_block_with_single_reg",
    "reg_block_with_multiple_regs",
    "reg_block_with_sub_blocks",
    "reg_block_get_field_empty_reg",
]