-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
86 lines (75 loc) · 1.91 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
[project]
name = "clickfu"
version = "0.8.0"
readme = "README.md"
license = { file = "LICENSE" }
[tool.qgspb.package-data]
"clickfu.icons" = ["nextgis_logo.svg"]
[tool.qgspb.forms]
ui-files = ["src/clickfu/ui/*.ui"]
compile = false
[tool.qgspb.translations]
ts-files = ["src/clickfu/i18n/*.ts"]
no-obsolete = true
[project.optional-dependencies]
dev = ["ruff", "pre-commit"]
[tool.pyright]
include = ["src"]
pythonVersion = "3.7"
reportOptionalCall = false
reportOptionalMemberAccess = false
[tool.ruff]
line-length = 79
target-version = "py37"
[tool.ruff.lint]
select = [
# "A", # flake8-builtins
# "ARG", # flake8-unused-arguments
# "B", # flake8-bugbear
# "C90", # mccabe complexity
# "COM", # flake8-commas
# "E", # pycodestyle errors
# "F", # pyflakes
# "FBT", # flake8-boolean-trap
# "FLY", # flynt
# "I", # isort
# "ISC", # flake8-implicit-str-concat
# "LOG", # flake8-logging
# "N", # pep8-naming
# "PERF", # Perflint
# "PGH", # pygrep-hooks
# "PIE", # flake8-pie
# "PL", # pylint
# "PTH", # flake8-use-pathlib
# "PYI", # flake8-pyi
# "Q", # flake8-quotes
# "RET", # flake8-return
# "RSE", # flake8-raise
# "RUF",
# "SIM", # flake8-simplify
# "SLF", # flake8-self
# "T10", # flake8-debugger
# "T20", # flake8-print
# "TCH", # flake8-type-checking
# "TD", # flake8-todos
# "TID", # flake8-tidy-imports
# "TRY", # tryceratops
# "UP", # pyupgrade
# "W", # pycodesytle warnings
# "ANN", # flake8-annotations
# "CPY", # flake8-copyright
# "D", # pydocstyle
# "FIX", # flake8-fixme
]
ignore = ["ANN101", "ANN102", "TD003", "FBT003", "ISC001", "COM812", "E501"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.lint.pep8-naming]
extend-ignore-names = [
"setLevel",
"classFactory",
"initGui",
"sizeHint",
"createWidget",
"*Event",
]