mirror of
https://github.com/SELinuxProject/setools
synced 2025-02-28 01:51:44 +00:00
AVRuleTest: Diasable pycodestyle W605 check on single line instead of everywhere.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
This commit is contained in:
parent
4c99f49752
commit
bef620512d
@ -143,7 +143,7 @@ class AVRuleTest(unittest.TestCase):
|
|||||||
|
|
||||||
# permissions are stored in a set, so the order may vary
|
# permissions are stored in a set, so the order may vary
|
||||||
self.assertRegex(rule.statement(), "("
|
self.assertRegex(rule.statement(), "("
|
||||||
"allow a b:c { d1 d2 }; \[ cond103 ]"
|
"allow a b:c { d1 d2 }; \[ cond103 ]" # noqa
|
||||||
"|"
|
"|"
|
||||||
"allow a b:c { d2 d1 }; \[ cond103 ]"
|
"allow a b:c { d2 d1 }; \[ cond103 ]"
|
||||||
")")
|
")")
|
||||||
|
3
tox.ini
3
tox.ini
@ -4,9 +4,6 @@ envlist = py3, pep8, lint, mypy
|
|||||||
|
|
||||||
[pycodestyle]
|
[pycodestyle]
|
||||||
max-line-length = 100
|
max-line-length = 100
|
||||||
# W605 ignored because pycodestyle gets confused by a regex string
|
|
||||||
# in AVRuleTest test_103_statement_two_perms_cond
|
|
||||||
ignore = W605
|
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
deps = {[testenv]deps}
|
deps = {[testenv]deps}
|
||||||
|
Loading…
Reference in New Issue
Block a user