-
-
Notifications
You must be signed in to change notification settings - Fork 638
/
pyproject.toml
114 lines (99 loc) · 2.63 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[build-system]
requires = ["setuptools~=72.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "nvda"
description = "NonVisual Desktop Access (NVDA)"
maintainers = [
{name = "NV Access", email = "[email protected]"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v2",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Topic :: Accessibility",
]
readme = "readme.md"
license = {file = "copying.txt"}
[project.urls]
Homepage = "https://www.nvaccess.org/"
Repository = "https://github.com/nvaccess/nvda.git"
Issues = "https://github.com/nvaccess/nvda/issues"
[tool.ruff]
line-length = 110
builtins = [
# translation lookup
"_",
# translation lookup
"ngettext",
# translation lookup
"pgettext",
# translation lookup
"npgettext",
]
include = [
"*.py",
"*.pyw",
"sconstruct",
"*sconscript",
]
exclude = [
".git",
"__pycache__",
".tox",
"build",
"output",
# When excluding concrete paths relative to a directory,
# not matching multiple folders by name e.g. `__pycache__`,
# paths are relative to the configuration file.
"./include/*",
"./miscDeps",
"./source/louis",
# #10924: generated by third-party dependencies
"./source/comInterfaces/*",
]
[tool.ruff.format]
indent-style = "tab"
line-ending = "lf"
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint]
ignore = [
# indentation contains tabs
"W191",
]
logger-objects = ["logHandler.log"]
[tool.ruff.lint.per-file-ignores]
# sconscripts contains many inbuilt functions not recognised by the lint,
# so ignore F821.
"sconstruct" = ["F821"]
"*sconscript" = ["F821"]
[tool.licensecheck]
using = "requirements:requirements.txt"
only_licenses = ["BSD", "MIT", "Python", "LGPLV3+", "Apache"]
ignore_packages = [
# Incompatible Apache licenses.
# These are current license violations and are bundled with NVDA.
"fast-diff-match-patch", # See also #16633
"requests",
# Incompatible Apache licenses.
# Bundled with a dependency, but not bundled with NVDA.
"importlib-metadata",
"opencv-python",
# Incompatible Apache licenses.
# For building NVDA, but not included.
"nuitka",
# Incompatible Apache licenses.
# System testing frameworks, not bundled with NVDA.
"robotframework",
"robotframework-screencaplibrary",
"robotremoteserver",
# Compatible licenses:
"certifi", # Mozilla Public License 2.0
"markdown-link-attr-modifier", # GPLV3 license, but not in PyPI correctly
"pycaw", # MIT license, but not in PyPI
"wxPython", # wxWindows Library License
"pillow", # PIL Software License
]