Skip to content

Commit 746aad0

Browse files
author
Alan Christie
committed
build: Adds config for mypy, pylint
1 parent be13641 commit 746aad0

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.mypy.ini

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[mypy]
2+
# Strict
3+
strict = True
4+
# But relax some strictness
5+
disallow_untyped_decorators = False
6+
disallow_subclassing_any = False
7+
implicit_reexport = True
8+
# Now enable more rules
9+
disallow_any_generics = True
10+
disallow_incomplete_defs = true
11+
disallow_untyped_calls = True
12+
disallow_untyped_defs = True
13+
ignore_missing_imports = True
14+
show_error_codes = True
15+
strict_equality = True
16+
warn_redundant_casts = True
17+
warn_return_any = True
18+
warn_unreachable = True
19+
warn_unused_ignores = True

.pylintrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[messages control]
2+
3+
# Disable some distracting checks.
4+
# See http://pylint.pycqa.org/en/latest/user_guide/message-control.html
5+
#
6+
# R : (Refactoring) warnings
7+
disable = consider-using-f-string,
8+
line-too-long,
9+
missing-class-docstring,
10+
missing-function-docstring,
11+
missing-module-docstring,
12+
R,
13+
too-many-lines,

0 commit comments

Comments
 (0)