-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (78 loc) · 2.25 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (78 loc) · 2.25 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
############################################################
#
# Copyright 2017, 2019, 2020, 2021, 2022, 2023, 2024, 2025 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# processorSim is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with processorSim. If not, see <http://www.gnu.org/licenses/>.
#
############################################################
[project]
name = "processorsim"
version = "0.1.0"
description = "A simulator for program execution on pipelined processors"
readme = "README.md"
requires-python = ">=3.14"
dependencies = [
"networkx",
"pyyaml",
"more-itertools",
"fastcore",
"pydash",
"typer",
]
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.pyright]
ignore = ["tests"]
typeCheckingMode = "basic"
[dependency-groups]
test = [
"pytest-cov",
"pytest-mypy",
"nbconvert",
"types-pyyaml",
"pyright==1.1.386",
"ruff>=0.14.10",
]
dev = [
{ include-group = "test" },
"ipykernel",
"rope",
]
[tool.ruff]
# Global setting for line length
line-length = 79
# Tells Ruff where your source code lives for import resolution
src = ["src"]
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint]
# 1. Enable Pylint (PL) and isort (I) rules
# 'E' and 'F' are Ruff's defaults; we add 'PL' and 'I' for your import needs.
select = ["E", "F", "PL", "I"]
# 2. Directory-specific overrides
# In Ruff, we use per-file-ignores to suppress everything EXCEPT your enabled rules.
[tool.ruff.lint.per-file-ignores]
"src/**" = [
"F", "E", # Disable default Flake8 checks in src/
]
"tests/**" = [
"PLR2004",
]
[tool.ruff.lint.isort]
# Configures the 'wrong-import-order' replacement
known-first-party = ["src"]
split-on-trailing-comma = false
[tool.uv]
package = true