@@ -49,13 +49,23 @@ Issues = "https://github.com/python-jsonschema/jsonschema-specifications/issues/
4949Funding = " https://github.com/sponsors/Julian"
5050Source = " https://github.com/python-jsonschema/jsonschema-specifications"
5151
52+ [tool .coverage .html ]
53+ show_contexts = true
54+ skip_covered = false
55+
5256[tool .coverage .run ]
5357branch = true
5458source = [" jsonschema-specifications" ]
5559dynamic_context = " test_function"
5660
5761[tool .coverage .report ]
62+ exclude_also = [
63+ " if TYPE_CHECKING:" ,
64+ " \\ s*\\ .\\ .\\ .\\ s*" ,
65+ ]
5866fail_under = 100
67+ show_missing = true
68+ skip_covered = true
5969
6070[tool .doc8 ]
6171ignore = [
@@ -68,3 +78,46 @@ ensure_newline_before_comments = true
6878from_first = true
6979include_trailing_comma = true
7080multi_line_output = 3
81+
82+ [tool .ruff ]
83+ line-length = 79
84+ target-version = " py38"
85+ select = [" ANN" , " B" , " D" , " E" , " F" , " Q" , " UP" , " W" ]
86+ ignore = [
87+ # Wat, type annotations for self and cls, why is this a thing?
88+ " ANN101" ,
89+ " ANN102" ,
90+ # Private annotations are fine to leave out.
91+ " ANN202" ,
92+ # I don't know how to more properly annotate "pass along all arguments".
93+ " ANN401" ,
94+ # raise SomeException(...) is fine.
95+ " B904" ,
96+ # It's fine to not have docstrings for magic methods.
97+ " D105" ,
98+ # This rule makes diffs uglier when expanding docstrings (and it's uglier)
99+ " D200" ,
100+ # No blank lines before docstrings.
101+ " D203" ,
102+ # Start docstrings on the second line.
103+ " D212" ,
104+ # This rule misses sassy docstrings ending with ! or ?.
105+ " D400" ,
106+ # Section headers should end with a colon not a newline
107+ " D406" ,
108+ # Underlines aren't needed
109+ " D407" ,
110+ # Plz spaces after section headers
111+ " D412" ,
112+ # We support 3.8 + 3.9
113+ " UP007" ,
114+ ]
115+ extend-exclude = [" suite" ]
116+
117+ [tool .ruff .flake8-quotes ]
118+ docstring-quotes = " double"
119+
120+ [tool .ruff .per-file-ignores ]
121+ "docs/*" = [" ANN" , " D" ]
122+ "jsonschema_specifications/tests/*" = [" ANN" , " D" ]
123+ "noxfile.py" = [" ANN" , " D" ]
0 commit comments