@@ -62,6 +62,7 @@ testing = [
6262linting = [
6363 " ruff>=0.8.0,<1" ,
6464 " mypy>=1.13.0,<2" ,
65+ " typing_extensions>=4.12.2" ,
6566]
6667
6768packaging = [
@@ -86,8 +87,43 @@ hpack = [ "py.typed" ]
8687version = { attr = " hpack.__version__" }
8788
8889[tool .ruff ]
89- line-length = 140
90+ line-length = 150
9091target-version = " py39"
92+ format.preview = true
93+ format.docstring-code-line-length = 100
94+ format.docstring-code-format = true
95+ lint.select = [
96+ " ALL" ,
97+ ]
98+ lint.ignore = [
99+ " ANN401" , # kwargs with typing.Any
100+ " CPY" , # not required
101+ " D101" , # docs readability
102+ " D102" , # docs readability
103+ " D105" , # docs readability
104+ " D107" , # docs readability
105+ " D200" , # docs readability
106+ " D205" , # docs readability
107+ " D205" , # docs readability
108+ " D203" , # docs readability
109+ " D212" , # docs readability
110+ " D400" , # docs readability
111+ " D401" , # docs readability
112+ " D415" , # docs readability
113+ " PLR2004" , # readability
114+ " SIM108" , # readability
115+ " RUF012" , # readability
116+ " FBT001" , # readability
117+ " FBT002" , # readability
118+ " PGH003" , # readability
119+ " PGH004" , # readability
120+ " PYI034" , # PEP 673 not yet available in Python 3.9 - only in 3.11+
121+ ]
122+ lint.isort.required-imports = [ " from __future__ import annotations" ]
123+
124+ [tool .mypy ]
125+ show_error_codes = true
126+ strict = true
91127
92128[tool .pytest .ini_options ]
93129testpaths = [ " tests" ]
0 commit comments