Skip to content

Commit

Permalink
chore(.): Ignore flake8 S101
Browse files Browse the repository at this point in the history
Previous attempts to selectively disable this warning per-file failed,
as flake8 does not correctly normalise paths for `per-file-ignores`.
Until resolved, we disable this check as `assert` statements are
extremely unlikely out of tests files.

See PyCQA/flake8#693
  • Loading branch information
rbpatt2019 committed Jun 4, 2021
1 parent 2426764 commit ff588ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ float_to_top = false

[tool.flake8]
select = "ANN,B,B9,C,C4,D,DAR,F,S,SC"
ignore = "ANN101"
ignore = "ANN101,S101"
exclude = "docs/conf.py"
per-file-ignore = "tests/*:S101"
max-line-length = 88
max-complexity = 10
docstring-convention = "numpy"
Expand Down

0 comments on commit ff588ad

Please sign in to comment.