Skip to content

Commit 18e5788

Browse files
committed
Add configuration files
1 parent 7d23d53 commit 18e5788

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

.pylintrc

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[TYPECHECK]
2+
# Without this, pylint will complain that torch does not contain some methods
3+
# https://github.com/pytorch/pytorch/issues/701
4+
generated-members=numpy.*,torch.*
5+
6+
[MESSAGES CONTROL]
7+
disable=
8+
abstract-method,
9+
arguments-differ,
10+
attribute-defined-outside-init,
11+
duplicate-code,
12+
invalid-name,
13+
fixme,
14+
missing-function-docstring,
15+
missing-module-docstring,
16+
too-few-public-methods
17+
18+
[FORMAT]
19+
max-line-length = 120
20+
21+
[DESIGN]
22+
max-attributes = 18
23+
max-args = 8
24+
max-locals = 16

pyproject.toml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[tool.black]
2+
line-length = 120
3+
target-version = ['py38']
4+
5+
[tool.isort]
6+
profile = "black"
7+
multi_line_output = 3
8+
include_trailing_comma = true
9+
use_parentheses = true
10+
11+
[tool.pytest.ini_options]
12+
minversion = "6.0"
13+
filterwarnings = "ignore::DeprecationWarning"
14+
testpaths = ["tests"]
15+
addopts = ["--numprocesses=auto", "--doctest-modules"]

setup.cfg

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[pycodestyle]
2+
max-line-length = 120
3+
ignore = E203,E402,E501,W503
4+
5+
[pydocstyle]
6+
convention = numpy
7+
add-ignore = D100,D102,D103,D104,D105,D200,D205,D400
8+
9+
[mypy]
10+
ignore_missing_imports = True

0 commit comments

Comments
 (0)