forked from enricofer/pickLayer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
72 lines (64 loc) · 1.62 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
[tool.ruff]
ignore = [
"ANN101", # Missing type annotation for self in method
]
line-length = 88
unfixable = [
"F401", # Unused imports
"F841", # Unused variables
]
# List of all rules https://docs.astral.sh/ruff/rules/
select = [
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C", # flake8-comprehensions
"C90", # flake8, mccabe
"E", # flake8, pycodestyle
"F", # flake8, Pyflakes
"I", # isort
"N", # pep8-naming
"INP", # flake8-no-pep420
"PIE", # flake8-pie
"PGH", # pygrep-hooks
"PL", # pylint
"PT", # flake8-pytest-style
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"T", # flake8-print
"ICN", # flake8-import-conventions
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"W", # flake8, pycodestyle
"UP", # pyupgrade
]
target-version = "py39"
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.per-file-ignores]
"test*" = [
"INP001",
"ANN201",
"ANN202",
"ANN001",
"ANN002",
"E501",
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
"PLR0913", # Too many arguments to function call (len(args) > 5)
]
[tool.flake8]
max-line-length = 88
spellcheck-targets = "names"
dictionaries = "en_US,python,technical"
extend-ignore = [
"E203", # whitespace before ':'
"E501", # line length (checked by ruff now, possible mismatches)
]
per-file-ignores = [
"test/*:INP001,QGS105",
]
[tool.qgis_plugin_dev_tools]
plugin_package_name = "pickLayer"
runtime_requires = [
"qgis_plugin_tools"
]
version_number_source = "distribution"