Comments (2)
As I see tox.ini in root directory I've testes tos and seems it does not work as well
[tkloczko@barrel sphinxcontrib-apidoc-0.3.0]$ tox --skip-missing-interpreters
GLOB sdist-make: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/setup.py
py27 create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/.tox/py27
SKIPPED: InterpreterNotFound: python2.7
py34 create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/.tox/py34
SKIPPED: InterpreterNotFound: python3.4
py35 create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/.tox/py35
SKIPPED: InterpreterNotFound: python3.5
py36 create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/.tox/py36
SKIPPED: InterpreterNotFound: python3.6
pypy create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/.tox/pypy
SKIPPED: InterpreterNotFound: pypy
style create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/.tox/style
style installdeps: flake8, isort, yapf, doc8
style inst: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/.tox/.tmp/package/1/sphinxcontrib-apidoc-0.3.0.zip
style installed: chardet==3.0.4,doc8==0.8.1,docutils==0.16,flake8==3.8.3,isort==5.5.2,mccabe==0.6.1,pbr==5.5.0,pycodestyle==2.6.0,pyflakes==2.2.0,Pygments==2.7.0,restructuredtext-lint==1.3.1,six==1.15.0,sphinxcontrib-apidoc==0.3.0,stevedore==3.2.2,yapf==0.30.0
style run-test-pre: PYTHONHASHSEED='498602751'
style run-test: commands[0] | isort -rc -c -df sphinxcontrib tests
ERROR: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/sphinxcontrib/apidoc/__init__.py Imports are incorrectly sorted and/or formatted.
--- /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/sphinxcontrib/apidoc/__init__.py:before 2018-10-03 18:33:13
+++ /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/sphinxcontrib/apidoc/__init__.py:after 2020-09-15 17:35:27.953983
@@ -17,6 +17,7 @@
if False:
# For type annotation
from typing import Any, Dict # noqa
+
from sphinx.application import Sphinx # noqa
/home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/.tox/style/lib/python3.8/site-packages/isort/main.py:909: UserWarning: W0502: The following deprecated single dash CLI flags were used and translated: -df!
warn(
/home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/.tox/style/lib/python3.8/site-packages/isort/main.py:914: UserWarning: W0501: The following deprecated CLI flags were used and ignored: -rc!
warn(
/home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/.tox/style/lib/python3.8/site-packages/isort/main.py:918: UserWarning: W0500: Please see the 5.0.0 Upgrade guide: https://pycqa.github.io/isort/docs/upgrade_guides/5.0.0/
warn(
ERROR: InvocationError for command /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0/.tox/style/bin/isort -rc -c -df sphinxcontrib tests (exited with code 1)
_______________________________________________________________________________________________ summary ________________________________________________________________________________________________
SKIPPED: py27: InterpreterNotFound: python2.7
SKIPPED: py34: InterpreterNotFound: python3.4
SKIPPED: py35: InterpreterNotFound: python3.5
SKIPPED: py36: InterpreterNotFound: python3.6
SKIPPED: pypy: InterpreterNotFound: pypy
ERROR: style: commands failed
from apidoc.
I've tested usimg pytest as well and pytest ois not failing and shows some warnings
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-sphinxcontrib-apidoc-0.3.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-sphinxcontrib-apidoc-0.3.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-apidoc-0.3.0
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, cov-2.11.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, cases-3.4.6, hypothesis-6.10.1, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, flaky-3.7.0, mock-3.6.0
collected 5 items
tests/test_ext.py ..... [100%]
============================================================================= warnings summary =============================================================================
../../../../../usr/lib/python3.8/site-packages/sphinx/util/rst.py:56
/usr/lib/python3.8/site-packages/sphinx/util/rst.py:56: DeprecationWarning: 'environmentfilter' is renamed to 'pass_environment', the old name will be removed in Jinja 3.1.
def heading(env: Environment, text: str, level: int = 1) -> str:
tests/test_ext.py::test_basics
/usr/lib/python3.8/site-packages/sphinx/jinja2glue.py:106: DeprecationWarning: 'contextfunction' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
def warning(context: Dict, message: str, *args: Any, **kwargs: Any) -> str:
tests/test_ext.py::test_basics
tests/test_ext.py::test_advanced
tests/test_ext.py::test_advanced_negative
tests/test_ext.py::test_missing_configuration
tests/test_ext.py::test_invalid_directory
/usr/lib/python3.8/site-packages/sphinx/jinja2glue.py:184: DeprecationWarning: 'contextfunction' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
self.environment.globals['debug'] = contextfunction(pformat)
tests/test_ext.py::test_basics
tests/test_ext.py::test_advanced
tests/test_ext.py::test_advanced_negative
tests/test_ext.py::test_missing_configuration
tests/test_ext.py::test_invalid_directory
/usr/lib/python3.8/site-packages/sphinx/jinja2glue.py:186: DeprecationWarning: 'contextfunction' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
self.environment.globals['accesskey'] = contextfunction(accesskey)
-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================================================== 5 passed, 12 warnings in 2.26s ======================================================================
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-sphinxcontrib-apidoc-0.3.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
from apidoc.
Related Issues (12)
- validate function/method params against docstrings HOT 1
- Passing multiple apidoc_module_dir's
- Cython modules that use __init__.pyx instead of __init__.py are broken HOT 1
- Cannot include private methods with apidoc_extra_args HOT 5
- warnings created from derived classes when constructor has no docstring HOT 2
- Is it possible to run example code to generate an image? HOT 1
- Add support for Python 3.12 HOT 1
- Support templating HOT 5
- WARNING: Inline literal start-string without end-string. HOT 2
- Support more config options HOT 2
- Call to `pbr.version.VersionInfo` raises exception on import HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apidoc.