@@ -13,18 +13,13 @@ keywords = [
13
13
" osm openstreetmap tiles visualization" ,
14
14
]
15
15
license = { text = " MIT" }
16
- maintainers = [
17
- { name = " Hugo van Kemenade" },
18
- ]
19
- authors = [
20
- {
name =
" Colin Bick and Contributors" ,
email =
" [email protected] " },
21
- ]
22
- requires-python = " >=3.8"
16
+ maintainers = [ { name = " Hugo van Kemenade" } ]
17
+ authors = [ {
name =
" Colin Bick and Contributors" ,
email =
" [email protected] " } ]
18
+ requires-python = " >=3.9"
23
19
classifiers = [
24
20
" Intended Audience :: Developers" ,
25
21
" License :: OSI Approved :: MIT License" ,
26
22
" Programming Language :: Python :: 3 :: Only" ,
27
- " Programming Language :: Python :: 3.8" ,
28
23
" Programming Language :: Python :: 3.9" ,
29
24
" Programming Language :: Python :: 3.10" ,
30
25
" Programming Language :: Python :: 3.11" ,
@@ -34,9 +29,7 @@ classifiers = [
34
29
" Programming Language :: Python :: Implementation :: PyPy" ,
35
30
" Topic :: Software Development :: Documentation" ,
36
31
]
37
- dynamic = [
38
- " version" ,
39
- ]
32
+ dynamic = [ " version" ]
40
33
optional-dependencies.tests = [
41
34
" coverage" ,
42
35
" pillow>=9.1" ,
@@ -63,30 +56,35 @@ lint.select = [
63
56
" EM" , # flake8-errmsg
64
57
" F" , # pyflakes errors
65
58
" I" , # isort
59
+ " ICN" , # flake8-import-conventions
66
60
" ISC" , # flake8-implicit-str-concat
67
61
" LOG" , # flake8-logging
68
62
" PGH" , # pygrep-hooks
63
+ " PYI" , # flake8-pyi
69
64
" RUF022" , # unsorted-dunder-all
70
65
" RUF100" , # unused noqa (yesqa)
71
66
" UP" , # pyupgrade
72
67
" W" , # pycodestyle warnings
73
68
" YTT" , # flake8-2020
74
69
]
75
- lint.extend- ignore = [
70
+ lint.ignore = [
76
71
" E203" , # Whitespace before ':'
77
72
" E221" , # Multiple spaces before operator
78
73
" E226" , # Missing whitespace around arithmetic operator
79
74
" E241" , # Multiple spaces after ','
80
75
]
81
- lint.isort.known-first-party = [
82
- " osmviz" ,
83
- ]
84
- lint.isort.required-imports = [
85
- " from __future__ import annotations" ,
86
- ]
76
+ lint.flake8-import-conventions.aliases.datetime = " dt"
77
+ lint.flake8-import-conventions.banned-from = [ " datetime" ]
78
+ lint.isort.known-first-party = [ " osmviz" ]
79
+ lint.isort.required-imports = [ " from __future__ import annotations" ]
87
80
88
81
[tool .pyproject-fmt ]
89
82
max_supported_python = " 3.13"
90
83
91
84
[tool .pytest .ini_options ]
92
85
addopts = " -W error::DeprecationWarning"
86
+ filterwarnings = [
87
+ # Python <= 3.11
88
+ " ignore:sys.monitoring isn't available, using default core:coverage.exceptions.CoverageWarning" ,
89
+ ]
90
+ testpaths = [ " tests" ]
0 commit comments