Skip to content

Commit

Permalink
(flake8) allow double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Apr 15, 2024
1 parent 59433b2 commit edb0c20
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pykdl_ros/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<test_depend>ament_pep257</test_depend>
<test_depend>ament_xmllint</test_depend>
<test_depend>python3-flake8-isort</test_depend>
<test_depend>python3-flake8-pyproject-pip</test_depend>
<test_depend>python3-flake8-quotes</test_depend>
<test_depend>python3-pytest</test_depend>

<export>
Expand Down
4 changes: 4 additions & 0 deletions pykdl_ros/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ line-length = 120

[tool.flake8]
max-line-length = 120
docstring-quotes = '"""'
inline-quotes = '"'
multiline-quotes = '"""'


[tool.isort]
combine_as_imports = true
Expand Down
2 changes: 2 additions & 0 deletions tf2_pykdl_ros/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
<test_depend>rclpy</test_depend>
<test_depend>tf2_geometry_msgs</test_depend>
<test_depend>python3-flake8-isort</test_depend>
<test_depend>python3-flake8-pyproject-pip</test_depend>
<test_depend>python3-flake8-quotes</test_depend>
<test_depend>python3-pytest</test_depend>

<export>
Expand Down
3 changes: 3 additions & 0 deletions tf2_pykdl_ros/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ line-length = 120

[tool.flake8]
max-line-length = 120
docstring-quotes = '"""'
inline-quotes = '"'
multiline-quotes = '"""'

[tool.isort]
combine_as_imports = true
Expand Down
2 changes: 1 addition & 1 deletion tf2_pykdl_ros/test/test_flake8.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
@pytest.mark.flake8
@pytest.mark.linter
def test_flake8() -> None:
rc, errors = main_with_errors(argv=["--linelength", "120"])
rc, errors = main_with_errors(argv=["--docstring-quotes", '"""', "--inline-quotes", '"', "--linelength", "120", "--multiline-quotes", '"""'])
assert rc == 0, "Found %d code style errors / warnings:\n" % len(errors) + "\n".join(errors)

0 comments on commit edb0c20

Please sign in to comment.