-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
100 lines (88 loc) · 3.47 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools~=68.0", "wheel~=0.40.0"]
build-backend = "setuptools.build_meta"
[project]
name = "wafer-view"
version = "2.0.0b0"
license = {file = "LICENSE"}
description = "An open source semi.org xml wafer viewer"
readme = "README.rst"
authors = [
{name = "Kevin Fronczak", email = "[email protected]"}
]
maintainers = [
{name = "Kevin Fronczak", email = "[email protected]"},
]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows :: Windows 11",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Visualization",
]
requires-python = ">=3.9.0"
dynamic = ["dependencies"]
[project.scripts]
waferview = "waferview.__main__:main"
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[project.urls]
"Source Code" = "https://github.com/fronzbot/wafer-viewer"
"Bug Reports" = "https://github.com/fronzbot/wafer-viewer/issues"
[tool.setuptools]
platforms = ["any"]
include-package-data = true
[tool.setuptools.packages.find]
include = ["waferview*"]
[tool.ruff]
select = [
"C", # complexity
"D", # docstrings
"E", # pydocstyle
"F", # pyflakes/autoflake
"G", # flake8-logging-format
"N815", # Varible {name} in class scope should not be mixedCase
"PGH004", # Use specific rule codes when using noqa
"PLC", # pylint
"PLE", # pylint
"PLR", # pylint
"PLW", # pylint
"Q000", # Double quotes found but single quotes preferred
"SIM118", # Use {key} in {dict} instead of {key} in {dict}.keys()
"TRY004", # Prefer TypeError exception for invalid type
"TRY200", # Use raise from to specify exception cause
"UP", # pyupgrade
"W", # pycodestyle
]
ignore = [
"D202", # No blank lines allowed after function docstring
"D203", # 1 blank line required before class docstring
"D212", # Multi-line docstring summary should start at the first line
"D213", # Multi-line docstring summary should start at the second line
"D406", # Section name should end with a newline
"D407", # Section name underlining
"E731", # do not assign a lambda expression, use a def
"G004", # I don't care if logging uses an f string
"PLC1901", # Lots of false positives
# False positives https://github.com/astral-sh/ruff/issues/5386
"PLC0208", # Use a sequence type instead of a `set` when iterating over values
"PLR0911", # Too many return statements ({returns} > {max_returns})
"PLR0912", # Too many branches ({branches} > {max_branches})
"PLR0913", # Too many arguments to function call ({c_args} > {max_args})
"PLR0915", # Too many statements ({statements} > {max_statements})
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
"PLW2901", # Outer {outer_kind} variable {name} overwritten by inner {inner_kind} target
"UP006", # keep type annotation style as is
"UP007", # keep type annotation style as is
"UP015", # Unnecessary open mode parameters
# Ignored due to performance: https://github.com/charliermarsh/ruff/issues/2923
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
]
line-length = 88
target-version = "py311"
[tool.ruff.per-file-ignores]
[tool.ruff.mccabe]
max-complexity = 25