src_prepare-overlay/dev-python/sphinx-py3doc-enhanced-theme/files/backport-for-setupcfg.patch
Alfred Wingate a78d33721f
dev-python/sphinx-py3doc-enhanced-theme: add for pytest-benchmark
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2021-05-22 12:35:04 +03:00

76 lines
1.8 KiB
Diff

From a013b01a0bb99807b016f907b07564bf32925fda Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= <contact@ionelmc.ro>
Date: Tue, 4 May 2021 15:57:39 +0300
Subject: [PATCH] Update skel.
---
setup.cfg | 40 ++++++++++++++++++----------------------
1 file changed, 18 insertions(+), 22 deletions(-)
diff --git a/setup.cfg b/setup.cfg
index 33f1bea..65215db 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,39 +1,35 @@
[bdist_wheel]
universal = 1
-[aliases]
-release = register clean --all sdist bdist_wheel
-
[flake8]
max-line-length = 140
-exclude = tests/*,*/migrations/*,*/south_migrations/*
+exclude = .tox,.eggs,ci/templates,build,dist
-[pytest]
+[tool:pytest]
+# If a pytest section is found in one of the possible config files
+# (pytest.ini, tox.ini or setup.cfg), then pytest will not look for any others,
+# so if you add a pytest config section elsewhere,
+# you will need to delete this section from setup.cfg.
norecursedirs =
- .git
- .tox
- .env
- dist
- build
- south_migrations
migrations
+
python_files =
test_*.py
*_test.py
tests.py
addopts =
- -rxEfs
- --strict
- --ignore=docs/conf.py
- --ignore=setup.py
- --ignore=ci
+ -ra
+ --strict-markers
--doctest-modules
--doctest-glob=\*.rst
--tb=short
+testpaths =
+ tests
-[isort]
-force_single_line=True
-line_length=120
-known_first_party=sphinx_py3doc_enhanced_theme
-default_section=THIRDPARTY
-forced_separate=test_sphinx_py3doc_enhanced_theme
\ No newline at end of file
+[tool:isort]
+force_single_line = True
+line_length = 120
+known_first_party = sphinx_py3doc_enhanced_theme
+default_section = THIRDPARTY
+forced_separate = test_sphinx_py3doc_enhanced_theme
+skip = .tox,.eggs,ci/templates,build,dist
--
2.26.3