mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-06 14:59:11 +08:00
Lint SDK package (#65)
This commit is contained in:

committed by
GitHub

parent
c150fb8c17
commit
b6b1bc9a71
@ -1,2 +1,4 @@
|
|||||||
[settings]
|
[settings]
|
||||||
|
force_single_line=True
|
||||||
|
from_first=True
|
||||||
from_first=True
|
from_first=True
|
||||||
|
@ -63,6 +63,8 @@ confidence=
|
|||||||
disable=missing-docstring,
|
disable=missing-docstring,
|
||||||
fixme, # Warns about FIXME, TODO, etc. comments.
|
fixme, # Warns about FIXME, TODO, etc. comments.
|
||||||
too-few-public-methods, # Might be good to re-enable this later.
|
too-few-public-methods, # Might be good to re-enable this later.
|
||||||
|
too-many-instance-attributes,
|
||||||
|
too-many-arguments
|
||||||
|
|
||||||
# Enable the message, report, category or checker with the given id(s). You can
|
# Enable the message, report, category or checker with the given id(s). You can
|
||||||
# either give multiple identifier separated by comma (,) or put this option
|
# either give multiple identifier separated by comma (,) or put this option
|
||||||
|
7
tox.ini
7
tox.ini
@ -36,13 +36,14 @@ deps =
|
|||||||
|
|
||||||
commands_pre =
|
commands_pre =
|
||||||
pip install -e {toxinidir}/opentelemetry-api
|
pip install -e {toxinidir}/opentelemetry-api
|
||||||
|
pip install -e {toxinidir}/opentelemetry-sdk
|
||||||
|
|
||||||
commands =
|
commands =
|
||||||
; Prefer putting everything in one pylint command to profit from duplication
|
; Prefer putting everything in one pylint command to profit from duplication
|
||||||
; warnings.
|
; warnings.
|
||||||
pylint opentelemetry-api/src/opentelemetry/ opentelemetry-api/tests/
|
pylint opentelemetry-api/src/opentelemetry/ opentelemetry-api/tests/ opentelemetry-sdk/src/opentelemetry/ opentelemetry-sdk/tests/
|
||||||
flake8 opentelemetry-api/src/opentelemetry/ opentelemetry-api/tests/
|
flake8 opentelemetry-api/src/opentelemetry/ opentelemetry-api/tests/ opentelemetry-sdk/src/opentelemetry/ opentelemetry-sdk/tests/
|
||||||
isort --check-only --recursive opentelemetry-api/src
|
isort --check-only --recursive opentelemetry-api/src opentelemetry-sdk/src
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
deps =
|
deps =
|
||||||
|
Reference in New Issue
Block a user