Skip to content

Commit

Permalink
Let's create errors in bandit, isort, pylint, pyupgrade, and flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Mar 9, 2023
1 parent 4cf4176 commit 135862d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codespell-private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ jobs:
- name: Install codespell dependencies
run: pip install -e ".[dev]"
- name: Ruff with annotations
run: ruff --format=github --select=ANN --ignore=ANN101,ANN401 .
run: ruff --format=github --select=ANN --ignore=ANN401 . # ANN101,
4 changes: 3 additions & 1 deletion codespell_lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from ._codespell import _script_main, main
from __future__ import print_function

from ._version import __version__
from ._codespell import _script_main, main

__all__ = ["_script_main", "main", "__version__"]
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,17 @@ addopts = "--cov=codespell_lib -rs --cov-report= --tb=short --junit-xml=junit-re

[tool.ruff]
extend-ignore = [
"A003",
# "A003",
"ANN101",
"ANN401",
"B904",
"N802",
# "ANN401",
# "B904",
# "N802",
"N812",
"PLW2901",
"S101",
"UP031",
# "S101",
# "UP031",
]
line-length = 88
line-length = 87
select = [
"A",
"ANN",
Expand Down Expand Up @@ -141,6 +141,6 @@ max-complexity = 45
[tool.ruff.pylint]
allow-magic-value-types = ["bytes", "int", "str",]
max-args = 12
max-branches = 48
max-branches = 47
max-returns = 10
max-statements = 111

0 comments on commit 135862d

Please sign in to comment.