Skip to content

Commit efad336

Browse files
committed
Add mypy typing ignore list for incremental typing
1 parent f0aa8f9 commit efad336

File tree

1 file changed

+94
-1
lines changed

1 file changed

+94
-1
lines changed

pyproject.toml

Lines changed: 94 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,100 @@ known_third_party = [
8181
strict = true
8282
files = "pendulum, tests"
8383
show_error_codes = true
84-
pretty = true
84+
#pretty = true
85+
86+
# The following whitelist is used to allow for incremental adoption
87+
# of Mypy. Modules should be removed from this whitelist as and when
88+
# their respective type errors have been addressed. No new modules
89+
# should be added to this whitelist.
90+
91+
[[tool.mypy.overrides]]
92+
module = [
93+
"pendulum",
94+
"pendulum._extensions.helpers",
95+
"pendulum.date",
96+
"pendulum.datetime",
97+
"pendulum.duration",
98+
"pendulum.formatting.formatter",
99+
"pendulum.formatting.difference_formatter",
100+
"pendulum.helpers",
101+
"pendulum.locales.locale",
102+
"pendulum.mixins.default",
103+
"pendulum.parser",
104+
"pendulum.parsing",
105+
"pendulum.parsing.iso8601",
106+
"pendulum.period",
107+
"pendulum.time",
108+
"pendulum.tz",
109+
"pendulum.tz.exceptions",
110+
"pendulum.tz.local_timezone",
111+
"pendulum.tz.timezone",
112+
"pendulum.utils._compat",
113+
"tests.conftest",
114+
"tests.test_helpers",
115+
"tests.test_main",
116+
"tests.test_parsing",
117+
"tests.date.test_add",
118+
"tests.date.test_behavior",
119+
"tests.date.test_construct",
120+
"tests.date.test_comparison",
121+
"tests.date.test_day_of_week_modifiers",
122+
"tests.date.test_diff",
123+
"tests.date.test_fluent_setters",
124+
"tests.date.test_getters",
125+
"tests.date.test_start_end_of",
126+
"tests.date.test_strings",
127+
"tests.date.test_sub",
128+
"tests.datetime.test_add",
129+
"tests.datetime.test_behavior",
130+
"tests.datetime.test_construct",
131+
"tests.datetime.test_comparison",
132+
"tests.datetime.test_create_from_timestamp",
133+
"tests.datetime.test_day_of_week_modifiers",
134+
"tests.datetime.test_diff",
135+
"tests.datetime.test_fluent_setters",
136+
"tests.datetime.test_from_format",
137+
"tests.datetime.test_getters",
138+
"tests.datetime.test_naive",
139+
"tests.datetime.test_replace",
140+
"tests.datetime.test_start_end_of",
141+
"tests.datetime.test_strings",
142+
"tests.datetime.test_sub",
143+
"tests.datetime.test_timezone",
144+
"tests.duration.test_add_sub",
145+
"tests.duration.test_arithmetic",
146+
"tests.duration.test_behavior",
147+
"tests.duration.test_construct",
148+
"tests.duration.test_in_methods",
149+
"tests.duration.test_in_words",
150+
"tests.duration.test_total_methods",
151+
"tests.formatting.test_formatter",
152+
"tests.helpers.test_local_time",
153+
"tests.localization.*",
154+
"tests.parsing.test_parsing",
155+
"tests.parsing.test_parsing_duration",
156+
"tests.parsing.test_parse_iso8601",
157+
"tests.period.test_add_subtract",
158+
"tests.period.test_arithmetic",
159+
"tests.period.test_behavior",
160+
"tests.period.test_construct",
161+
"tests.period.test_hashing",
162+
"tests.period.test_in_words",
163+
"tests.period.test_range",
164+
"tests.time.test_add",
165+
"tests.time.test_behavior",
166+
"tests.time.test_comparison",
167+
"tests.time.test_construct",
168+
"tests.time.test_diff",
169+
"tests.time.test_fluent_setters",
170+
"tests.time.test_strings",
171+
"tests.time.test_sub",
172+
"tests.tz.test_helpers",
173+
"tests.tz.test_local_timezone",
174+
"tests.tz.test_timezone",
175+
"tests.tz.test_timezones",
176+
]
177+
ignore_errors = true
85178

86179
[tool.coverage.run]
87180
omit = [

0 commit comments

Comments
 (0)