forked from geofileops/geofileops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
109 lines (100 loc) · 2.34 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
[tool.pyright]
exclude = ["local_ignore"]
ignore = ["*"]
[tool.mypy]
exclude = ["local_ignore"]
[[tool.mypy.overrides]]
module = "cloudpickle.*,fiona.*,geopandas.*,matplotlib.*,osgeo.*,osgeo_utils.*,pygeos.*,pyogrio.*,psutil.*,setuptools.*,shapely.*,topojson.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
log_level = "DEBUG"
# Write all logging and warnings immediately. Useful for debugging.
# log_cli = true
# addopts = "-p no:warnings"
# Some filters that apply to warnings that can be ignored for any test.
filterwarnings = [
"ignore: The output driver does not natively support DateTime type",
"ignore: Field .* create as date field, though DateTime requested",
"ignore: Geometry is in a geographic CRS",
"ignore: Normalized/laundered field name",
"ignore: Non-conformant content for record 0 in column",
"ignore: Non-conformant content for record 1 in column",
]
[tool.ruff]
line-length = 88
target-version = "py39"
extend-exclude = ["docs/*", "local_ignore/*"]
[tool.ruff.lint]
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-debugger
"T10",
# flake8-simplify
# "SIM",
# pylint
"PLC",
"PLE",
"PLR",
"PLW",
# misc lints
"PIE",
# implicit string concatenation
"ISC",
# type-checking imports
"TCH",
# comprehensions
"C4",
# Ruff-specific rules
"RUF",
# isort
"I",
# pydocstyle
"D",
]
ignore = [
### Intentionally disabled
# module level import not at top of file
"E402",
# do not assign a lambda expression, use a def
"E731",
# mutable-argument-default
"B006",
# unused-loop-control-variable
"B007",
# get-attr-with-constant
"B009",
# Only works with python >=3.10
"B905",
# dict literals
"C408",
# Too many arguments to function call
"PLR0913",
# Too many returns
"PLR0911",
# Too many branches
"PLR0912",
# Too many statements
"PLR0915",
# Magic number
"PLR2004",
# Redefined loop name
"PLW2901",
# Global statements are discouraged
"PLW0603",
# compare-to-empty-string
"PLC1901",
# collection-literal-concatenation
"RUF005",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "google"