-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (123 loc) · 5.14 KB
/
pyproject.toml
File metadata and controls
134 lines (123 loc) · 5.14 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "scons_msvc_env"
description = "A wicked way to use MSVC in conjunction with SCons"
authors = [{name = "Rocco Matano"}]
requires-python = ">=3.10"
license = "MIT"
classifiers = [
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dynamic = ["version", "readme"]
dependencies = ["SCons >= 4.0.0"]
[project.urls]
homepage = "https://github.com/RoccoMatano/scons_msvc_env"
################################################################################
[tool.setuptools]
packages = ["scons_msvc_env"]
include-package-data = true
[tool.setuptools.dynamic]
version = {attr = "scons_msvc_env.__version__"}
readme = {file = ["README.md"], content-type = "text/markdown"}
################################################################################
[tool.ruff]
target-version = "py313"
line-length = 80
[tool.ruff.lint.pylint]
max-statements = 75
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A001", # shadowing a Python builtin
"A002", # shadowing a Python builtin
"ANN001", # no dorky typing!!!
"ANN002", # no dorky typing!!!
"ANN003", # no dorky typing!!!
"ANN201", # no dorky typing!!!
"ANN202", # no dorky typing!!!
"ANN204", # no dorky typing!!!
"ANN205", # no dorky typing!!!
"ANN206", # no dorky typing!!!
"ANN401", # no dorky typing!!!
"ARG001", # not using a parameter of a win32 API is very common
"ARG002", # not using a parameter of a win32 API is very common
"C901", # complex-structure
"COM812", # Trailing comma missing
"COM819", # prohibited-trailing-comma
"D100", # doc strings are optional
"D101", # doc strings are optional
"D102", # doc strings are optional
"D103", # doc strings are optional
"D104", # doc strings are optional
"D105", # doc strings are optional
"D107", # doc strings are optional
"D203", # doc strings are optional
"D204", # force doc string layout
"D205", # force doc string layout
"D211", # rule confusion
"D212", # force doc string layout
"D213", # rule confusion
"D300", # force doc string layout
"D400", # force doc string layout
"D401", # force doc string layout
"D403", # force doc string layout
"D404", # force doc string layout
"D415", # force doc string layout
"EM101", # total BS
"EM102", # use of f-strings in exception constructors
"ERA001", # Prone to false positives
"FBT002", # boolean-default-value-positional-argument
"FBT003", # boolean-positional-value-in-call
"G004", # logging f-strings is not that bad
"I001", # tastes differ
"ISC003", # Explicitly concatenated string should be implicitly concatenated
"LOG015", # using the root logger is OK
"N801", # pep8 naming is not meant to be used everywhere
"N802", # pep8 naming is not suitable for Win32
"N803", # pep8 naming is not suitable for Win32
"N806", # pep8 naming is not meant to be used everywhere
"N813", # aliases are meant to assign differing names
"N816", # pep8 naming is not meant to be used everywhere
"N818", # pep8 naming is not meant to be used everywhere
"PERF203", # try-except-in-loop
"PLW1510", # `subprocess.run` without explicit `check` argument
"PLR0912", # too many branches
"PLR0913", # some Win32 APIs have a lot of arguments
"PLR2004", # avoiding magic values is good, banning them is bad
"PTH123", # open() should be replaced by Path.open()
"PYI024", # no dorky typing!!!
"RSE102", # Unnecessary parentheses on raised exception
"RET505", # Unnecessary {branch} after return statement
"RET508", # Unnecessary {branch} after break statement
"S101", # Prone to false positives
"S105", # Prone to false positives
"S602", # Prone to false positives
"S603", # Prone to false positives
"S607", # sometimes partial paths are the right thing
"SIM102", # Use a single if statement instead of nested if statements
"SIM117", # Use a single instead of nested `with` statements
"SLF001", # ctypes requires accessing private members
"T201", # Prone to false positives
"T203", # Prone to false positives
"TRY003", # do not bloat code with unnecessary exception classes
"TRY301", # raise-within-try
"UP015", # redundant-open-modes
"UP039", # unnecessary-class-parentheses
"RUF012", # ... should be annotated -> no dorky typing!!!
"RUF013", # implicit-optional -> no dorky typing!!!
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "lf"
################################################################################