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 036f908
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codespell-private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Install dependencies
run: |
python --version # just to check
pip install -U pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
pip install -upgrade pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
pip install --upgrade "setuptools!=47.2.0" docutils setuptools_scm[toml] twine
pip install aspell-python-py3
pip install -e ".[dev]" # install the codespell dev packages
Expand All @@ -68,7 +68,7 @@ jobs:
with:
persist-credentials: false
- name: Install general dependencies
run: pip install -U pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
run: pip install -upgrade pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
- name: Install codespell dependencies
run: pip install -e ".[dev]"
- uses: codespell-project/sort-problem-matcher@v1
Expand All @@ -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 --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 036f908

Please sign in to comment.