Skip to content

Commit da9a9f6

Browse files
committed
#258 Disable lint issues
1 parent 120afc7 commit da9a9f6

3 files changed

Lines changed: 55 additions & 5 deletions

File tree

.flake8

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
[flake8]
22
extend-ignore =
3-
# E203 and E704 needed for black
3+
# E203 and E704 needed for black
44
E203,
5-
E704,
65
E501,
6+
E704,
7+
F401,
8+
F541,
9+
F821,
10+
F841,
711
W503
812
max-line-length=88

.vscode/cspell.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@
279279
"shuff",
280280
"shutil",
281281
"SIGALRM",
282+
"simplifiable",
282283
"SKYBLUE",
283284
"sourcedict",
284285
"splitext",
@@ -345,4 +346,4 @@
345346
"data/**",
346347
"development-requirements.txt"
347348
]
348-
}
349+
}

pyproject.toml

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ build-backend = "setuptools.build_meta"
99
test = ["pytest", "coverage"]
1010

1111
[tool.bandit]
12-
skips = ["B101"]
12+
skips = [
13+
"B101",
14+
"B108",
15+
"B404",
16+
"B602",
17+
"B605",
18+
"B608"
19+
]
1320

1421
[tool.black]
1522
line-length = 120
@@ -24,6 +31,19 @@ src_paths = ["examples", "src", "tests"]
2431

2532
[tool.mypy]
2633
exclude = ['.venv', 'g2_tools']
34+
disable_error_code = [
35+
"arg-type",
36+
"attr-defined",
37+
"import-not-found",
38+
"name-defined",
39+
"no-untyped-call",
40+
"no-untyped-def",
41+
"return-value",
42+
"union-attr",
43+
"unused-ignore",
44+
"var-annotated"
45+
]
46+
disallow_untyped_defs = false
2747

2848
[[tool.mypy.overrides]]
2949
module = "senzing_abstract.szengineflags.*"
@@ -34,16 +54,41 @@ warn_unused_ignores = "false"
3454
module = "pytest_schema.*"
3555
ignore_missing_imports = "true"
3656

57+
[[tool.mypy.overrides]]
58+
module = "sz_tools/_sz_database"
59+
ignore_missing_imports = "true"
60+
3761
[tool.pylint]
3862
ignored-argument-names = "args|kwargs"
3963
disable = [
4064
"broad-except",
65+
"broad-exception-raised",
66+
"consider-iterating-dictionary",
67+
"consider-using-dict-items",
4168
"consider-using-f-string",
69+
"consider-using-generator",
70+
"f-string-without-interpolation",
71+
"invalid-name",
72+
"line-too-long",
4273
"line-too-long",
74+
"missing-class-docstring",
75+
"missing-function-docstring",
76+
"missing-module-docstring",
77+
"no-member",
78+
"protected-access",
79+
"raise-missing-from",
80+
"simplifiable-if-expression",
4381
"too-many-branches",
4482
"too-many-instance-attributes",
4583
"too-many-locals",
46-
"too-many-statements"
84+
"too-many-statements",
85+
"undefined-variable",
86+
"unidiomatic-typecheck",
87+
"unspecified-encoding",
88+
"unused-argument",
89+
"unused-import",
90+
"unused-variable",
91+
"useless-return"
4792
]
4893
good-names = [
4994
"template-python"

0 commit comments

Comments
 (0)