Skip to content

Commit ec71e47

Browse files
committed
switch to black
1 parent 8196200 commit ec71e47

File tree

5 files changed

+33
-32
lines changed

5 files changed

+33
-32
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ insert_final_newline = true
88
indent_style = space
99
indent_size = 4
1010
charset = utf-8
11-
max_line_length = 180
11+
max_line_length = 120
1212

1313
[*.{bat,cmd,ps1}]
1414
end_of_line = crlf

pyproject.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[tool.black]
2+
line-length = 120
3+
extend-exclude = "src/roslibpy/comm/comm_cli.py"
4+
5+
[tool.pytest.ini_options]
6+
minversion = "6.0"
7+
testpaths = ["tests"]
8+
python_files = [
9+
"test_*.py",
10+
"*_test.py",
11+
"tests.py"
12+
]
13+
addopts = "-ra --strict --doctest-modules --doctest-glob=*.rst --tb=short"
14+
doctest_optionflags= "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ALLOW_UNICODE ALLOW_BYTES"
15+
filterwarnings = "ignore::DeprecationWarning"
16+
17+
[tool.isort]
18+
# These settings -including the shorter-than-the rest- line length avoid
19+
# conflicts between isort and black import formatting
20+
line_length = 88
21+
multi_line_output = 3
22+
include_trailing_comma = true
23+
force_grid_wrap = 0
24+
use_parentheses = true
25+
ensure_newline_before_comments = true
26+
known_first_party = "roslibpy"
27+
default_section = "THIRDPARTY"
28+
forced_separate = "test_roslibpy"

pytest.ini

Lines changed: 0 additions & 4 deletions
This file was deleted.

requirements-dev.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
attrs>=19.2.0
2-
autopep8
2+
black
33
bump2version >=1.0.1
44
check-manifest>=0.36
55
doc8
66
flake8
77
invoke>=0.14
8-
isort>=4.3.21
8+
isort
99
pydocstyle
10-
pytest
10+
pytest>=6.0
1111
sphinx >=3.4
1212
twine
1313
-e .

setup.cfg

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,6 @@
22
universal = 1
33

44
[flake8]
5-
max-line-length = 180
5+
max-line-length = 120
66
exclude = */migrations/*
77

8-
[tool:pytest]
9-
testpaths = tests
10-
norecursedirs =
11-
migrations
12-
13-
python_files =
14-
test_*.py
15-
*_test.py
16-
tests.py
17-
addopts =
18-
-ra
19-
--strict
20-
--doctest-modules
21-
--doctest-glob=\*.rst
22-
--tb=short
23-
24-
[isort]
25-
force_single_line = True
26-
line_length = 180
27-
known_first_party = roslibpy
28-
default_section = THIRDPARTY
29-
forced_separate = test_roslibpy
30-
skip = migrations, __init__.py

0 commit comments

Comments
 (0)