Skip to content

Commit 1a6ee55

Browse files
committed
move pydocstyle and isort configs to pyproject.toml
1 parent 0739500 commit 1a6ee55

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,15 @@ python_files = [
1212
addopts = "-ra --strict --doctest-glob=*.rst --tb=short"
1313
doctest_optionflags= "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ALLOW_UNICODE ALLOW_BYTES"
1414
filterwarnings = "ignore::DeprecationWarning"
15+
16+
[tool.pydocstyle]
17+
convention = "numpy"
18+
add-ignore = ["D100"]
19+
20+
[tool.isort]
21+
force_single_line = true
22+
line_length = 180
23+
known_first_party = "compas_fab"
24+
default_section = "THIRDPARTY"
25+
forced_separate = "test_compas_fab"
26+
skip = ["__init__.py"]

requirements-dev.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
attrs>=19.3.0
2-
sphinx_compas_theme>=0.9
3-
sphinx>=1.6
4-
invoke>=0.14
2+
autopep8
53
bump2version>=1.0
64
check-manifest>=0.36
75
flake8
8-
autopep8
6+
invoke>=0.14
7+
isort
98
pylint
10-
pytest>=6.0
119
pytest_mock
1210
pytest-cov
11+
pytest>=6.0
12+
sphinx_compas_theme>=0.9
13+
sphinx>=1.6
1314
sybil
14-
isort
1515
twine
1616
-e .

setup.cfg

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,5 @@ exclude =
1313
src/compas_fab/backends/vrep/remote_api/*,
1414
src/compas_fab/ghpython/path_planning.py
1515

16-
[pydocstyle]
17-
convention = numpy
18-
add-ignore = D100
19-
20-
[isort]
21-
force_single_line = True
22-
line_length = 180
23-
known_first_party = compas_fab
24-
default_section = THIRDPARTY
25-
forced_separate = test_compas_fab
26-
skip = migrations, __init__.py
27-
2816
[coverage:run]
2917
branch = True

0 commit comments

Comments
 (0)