Skip to content

Commit

Permalink
Update ruff and mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Feb 29, 2024
1 parent b2e1752 commit a8507e0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
29 changes: 16 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,6 @@ Download = "https://pygresql.github.io/download/"
[tool.ruff]
target-version = "py37"
line-length = 79
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"D", # pydocstyle
"B", # bugbear
"S", # bandit
"SIM", # simplify
"RUF", # ruff
]
exclude = [
"__pycache__",
"__pypackages__",
Expand All @@ -71,7 +59,22 @@ exclude = [
"venv",
]

[tool.ruff.per-file-ignores]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"D", # pydocstyle
"B", # bugbear
"S", # bandit
"SIM", # simplify
"RUF", # ruff
]
ignore = ["D203", "D213"]

[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["D100", "D101", "D102", "D103", "D105", "D107", "S"]

[tool.mypy]
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ envlist = py3{7,8,9,10,11,12},ruff,mypy,cformat,docs

[testenv:ruff]
basepython = python3.11
deps = ruff>=0.0.292
deps = ruff>=0.3.0
commands =
ruff setup.py pg pgdb tests
ruff check setup.py pg pgdb tests

[testenv:mypy]
basepython = python3.11
deps = mypy>=1.5.1
deps = mypy>=1.8.0
commands =
mypy pg pgdb tests

Expand Down

0 comments on commit a8507e0

Please sign in to comment.