@@ -49,13 +49,23 @@ Issues = "https://github.com/python-jsonschema/jsonschema-specifications/issues/
49
49
Funding = " https://github.com/sponsors/Julian"
50
50
Source = " https://github.com/python-jsonschema/jsonschema-specifications"
51
51
52
+ [tool .coverage .html ]
53
+ show_contexts = true
54
+ skip_covered = false
55
+
52
56
[tool .coverage .run ]
53
57
branch = true
54
58
source = [" jsonschema-specifications" ]
55
59
dynamic_context = " test_function"
56
60
57
61
[tool .coverage .report ]
62
+ exclude_also = [
63
+ " if TYPE_CHECKING:" ,
64
+ " \\ s*\\ .\\ .\\ .\\ s*" ,
65
+ ]
58
66
fail_under = 100
67
+ show_missing = true
68
+ skip_covered = true
59
69
60
70
[tool .doc8 ]
61
71
ignore = [
@@ -68,3 +78,46 @@ ensure_newline_before_comments = true
68
78
from_first = true
69
79
include_trailing_comma = true
70
80
multi_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