Skip to content

Commit

Permalink
Fix pylint for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
analog-cbarber committed Oct 8, 2023
1 parent 52bf561 commit f0d89dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 1 addition & 4 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
- make >=4.3
# testing
- mypy >=1.5,<2.0
- pylint >=2.17,<3.0
- pylint >=2.17
- pytest >=7.4,<8.0
- pytest-cov >=4.1.0,<5.0
- types-pyyaml >=6.0
Expand All @@ -34,6 +34,3 @@ dependencies:
- pip >=23.2.1
- pip:
- mkdocs-awesome-pages-plugin >=2.9.2



4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ max-returns = 6
max-statements = 50
min-public-methods = 1

[tool.pylint.similarities]
min-similarity-lines = 6

[tool.pylint.variables]
allowed-redefined-builtins = ["help", "license"]

Expand All @@ -106,6 +109,7 @@ disable = [
"locally-disabled",
"raw-checker-failed",
"suppressed-message",
"too-many-arguments",
"trailing-newlines",
"unspecified-encoding",
"use-dict-literal",
Expand Down
1 change: 1 addition & 0 deletions test/api/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ def test_overwrite_prompt(
prompts: Iterator[str] = iter(())
responses: Iterator[str] = iter(())

# pylint: disable=duplicate-code
def fake_input(prompt: str) -> str:
expected_prompt = next(prompts)
assert re.search(
Expand Down

0 comments on commit f0d89dc

Please sign in to comment.