-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (125 loc) · 4.31 KB
/
Copy pathpyproject.toml
File metadata and controls
135 lines (125 loc) · 4.31 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "objdictgen"
version = "3.5.5"
description = "CanFestival Object Dictionary tool"
authors = [
{name = "Svein Seldal", email = "svein.seldal@laerdal.com"},
]
readme = "README.md"
license = "LGPL-2.1-or-later"
requires-python = ">=3.10,<4"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Embedded Systems",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
"jsonschema",
"colorama",
"deepdiff",
]
[project.optional-dependencies]
ui = [
"wxPython",
]
dev = [
"ruff",
"mypy",
"types-setuptools",
"types-colorama",
"types-wxpython",
"pytest",
"coverage",
"pytest-cov",
"pytest-mock",
"freezegun",
]
[project.urls]
Repository = "https://github.com/Laerdal/python-objdictgen"
"Bug Tracker" = "https://github.com/Laerdal/python-objdictgen/issues"
[project.scripts]
odg = "objdictgen.__main__:main"
[tool.hatch.build.targets.wheel]
packages = ["src/objdictgen"]
[tool.hatch.build.targets.sdist]
include = [
"/packaging",
"/src/objdictgen",
"/tests",
]
exclude = [
"/tests/od/extra-compare",
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-l --tb=native"
testpaths = [
"tests",
]
filterwarnings = "ignore::DeprecationWarning"
# Configuration for coverage.py which is used by pytest-cov and SonarQube
[tool.coverage.run]
relative_files = true
branch = true
source = [
"src/objdictgen",
]
[tool.ruff]
line-length = 120
exclude = [
"tests/od/**",
]
lint.ignore = [
# Stop gap for getting ruff checks to pass. These should be fixed and removed in the future.
"B015", # Pointless comparison. Did you mean to assign a value? Otherwise, prepend `assert` or remove it.
"B017", # Do not assert blind exception: `Exception`
"BLE001", # Do not catch blind exception: `Exception`
"C400", # Unnecessary generator (rewrite as a list comprehension)
"C401", # Unnecessary generator (rewrite as a set comprehension)
"C408", # Unnecessary `tuple()` call (rewrite as a literal)
"C413", # Unnecessary `list()` call around `sorted()`
"FURB122", # Use of `fo.write` in a for loop
"FURB167", # Use of regular expression alias `re.M`
"I001", # Import block is un-sorted or un-formatted
"PIE810", # Call `startswith` once with a `tuple`
"PLR1711", # Useless `return` statement at end of function
"PLR1736", # List index lookup in `enumerate()` loop
"PLW0127", # Self-assignment of variable
"PLW1510", # `subprocess.run` without explicit `check` argument
"PYI034", # `__iadd__`/`__imod__` methods usually return `self` at runtime
"PYI041", # Use `complex` instead of `int | float | complex`
"RET501", # Do not explicitly `return None` in function if it is the only possible return value
"RUF010", # Use explicit conversion flag
"RUF012", # Mutable default value for class attribute
"RUF059", # Unpacked variable `editors` is never used
"RUF100", # Unused `noqa` directive
"S102", # Use of `exec` detected
"SIM102", # Use a single `if` statement instead of nested `if` statements
"SIM114", # Combine `if` branches using logical `or` operator
"SIM117", # Use a single `with` statement with multiple contexts instead of nested `with` statements
"SIM202", # Use `x == y` instead of `not x != y`
"TRY004", # Prefer `TypeError` exception for invalid type
"UP031", # Use format specifiers instead of percent format
"UP034", # Avoid extraneous parentheses
"UP035", # Import from `collections.abc` instead
"UP037", # Remove quotes from type annotation
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # Allow use of assert statements in tests
]
"tests/test_imports.py" = [
"F401", # Allow unused imports in this file
]