@@ -26,7 +26,7 @@ dependencies = ["deprecation", "python-dotenv"]
2626[dependency-groups ]
2727test = [" tox" ]
2828lint = [" mypy" , " ruff" ]
29- build = [" build" , " setuptools " ]
29+ build = [" build" , " twine " ]
3030dev = [
3131 { include-group = " test" },
3232 { include-group = " lint" },
@@ -44,8 +44,6 @@ packages = ["splunklib", "splunklib.modularinput", "splunklib.searchcommands"]
4444version = { attr = " splunklib.__version__" }
4545
4646# https://docs.astral.sh/ruff/configuration/
47- # [tool.ruff]
48-
4947[tool .ruff .lint ]
5048fixable = [" ALL" ]
5149select = [
@@ -61,30 +59,9 @@ select = [
6159[tool .tox ]
6260legacy_tox_ini = """
6361[tox]
64- envlist = clean, docs,py{37,39,313}
62+ envlist = docs,py{37,39,313}
6563skipsdist = {env:TOXBUILD:false}
6664
67- # TODO: Replace with ruff
68- [testenv:pep8]
69- deps = flake8
70- flake8-import-order
71- flake8-blind-except
72- flake8-builtins
73- flake8-docstrings
74- flake8-rst-docstrings
75- flake8-logging-format
76- six
77- commands = flake8
78-
79- [flake8]
80- exclude = .tox
81- # If you need to ignore some error codes in the whole source code
82- # you can write them here
83- # ignore = D100,D101
84- show-source = true
85- enable-extensions = G
86- application-import-names = splunk-sdk-python
87-
8865[testenv]
8966passenv = LANG
9067setenv = SPLUNK_HOME=/opt/splunk
@@ -95,15 +72,10 @@ deps = pytest
9572
9673distdir = build
9774commands =
98- {env:TOXBUILD:python -m pytest --junitxml=test-reports/junit-{envname}.xml --cov --cov-config=.coveragerc} {posargs}
99-
100- [testenv:clean]
101- deps = coverage
102- skip-install = true
103- commands = coverage erase
75+ {env:TOXBUILD:python -m pytest --cov --cov-config=.coveragerc} {posargs}
10476
10577[testenv:docs]
106- description = invoke sphinx-build to build the HTML docs
78+ description = Build the static HTML docs
10779basepython = python3.9
10880deps = sphinx >= 1.7.5, < 2
10981 jinja2 < 3.1.0
0 commit comments