Skip to content

Commit d888e58

Browse files
ci: update linting preferences
1 parent 3d5c6e0 commit d888e58

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ show_error_codes = True
55
# Exclude _files.py because mypy isn't smart enough to apply
66
# the correct type narrowing and as this is an internal module
77
# it's fine to just use Pyright.
8-
exclude = ^(src/openlayer/_files\.py|_dev/.*\.py)$
8+
exclude = ^(src/openlayer/_files\.py|_dev/.*\.py|src/openlayer/lib|examples/rest-api)$
99

1010
strict_equality = True
1111
implicit_reexport = True

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,15 @@ filterwarnings = [
127127
# this enables practically every flag given by pyright.
128128
# there are a couple of flags that are still disabled by
129129
# default in strict mode as they are experimental and niche.
130-
typeCheckingMode = "strict"
130+
typeCheckingMode = "standard"
131131
pythonVersion = "3.7"
132132

133133
exclude = [
134134
"_dev",
135135
".venv",
136-
".nox",
136+
".nox"
137137
]
138-
138+
ignore = ["src/openlayer/lib/*", "examples/*"]
139139
reportImplicitOverride = true
140140

141141
reportImportCycles = false
@@ -194,3 +194,5 @@ known-first-party = ["openlayer", "tests"]
194194
"scripts/**.py" = ["T201", "T203"]
195195
"tests/**.py" = ["T201", "T203"]
196196
"examples/**.py" = ["T201", "T203"]
197+
"src/openlayer/lib/*" = ["ALL"]
198+

0 commit comments

Comments
 (0)