diff options
-rw-r--r-- | .github/workflows/kit.yml | 4 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | doc/cmd.rst | 20 | ||||
-rw-r--r-- | doc/dbschema.rst | 4 | ||||
-rw-r--r-- | doc/requirements.in | 2 | ||||
-rw-r--r-- | doc/requirements.pip | 2 | ||||
-rw-r--r-- | requirements/dev.in | 1 | ||||
-rw-r--r-- | requirements/dev.pip | 4 | ||||
-rw-r--r-- | tox.ini | 6 |
9 files changed, 25 insertions, 20 deletions
diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.yml index 3aa67dde..bed90069 100644 --- a/.github/workflows/kit.yml +++ b/.github/workflows/kit.yml @@ -39,7 +39,7 @@ jobs: # To change the matrix, edit the choices, then process this file with cog: # # $ python -m pip install cogapp - # $ python -m cogapp -rP .github/workflows/kit.yml + # $ python -m cogapp -crP .github/workflows/kit.yml # # # [[[cog @@ -94,7 +94,7 @@ jobs: - {"os": "windows", "py": "cp39", "arch": "AMD64"} - {"os": "windows", "py": "cp310", "arch": "x86"} - {"os": "windows", "py": "cp310", "arch": "AMD64"} - # [[[end]]] + # [[[end]]] (checksum: dfc37c84db46011e5654945563c5ce68) fail-fast: false steps: @@ -119,7 +119,7 @@ $(DOCBIN): tox -q -e doc --notest dochtml: $(DOCBIN) ## Build the docs HTML output. - $(DOCBIN)/python -m cogapp -rP --verbosity=1 doc/*.rst + $(DOCBIN)/python -m cogapp -crP --verbosity=1 doc/*.rst $(SPHINXBUILD) -b html doc doc/_build/html docdev: dochtml ## Build docs, and auto-watch for changes. diff --git a/doc/cmd.rst b/doc/cmd.rst index 79b5967c..8c37781f 100644 --- a/doc/cmd.rst +++ b/doc/cmd.rst @@ -20,7 +20,7 @@ print(f" $ coverage {cmd} --help") print(textwrap.indent(help, " ")) .. ]]] -.. [[[end]]] +.. [[[end]]] (checksum: d41d8cd98f00b204e9800998ecf8427e) .. _cmd: @@ -152,7 +152,7 @@ There are many options: --rcfile=RCFILE Specify configuration file. By default '.coveragerc', 'setup.cfg', 'tox.ini', and 'pyproject.toml' are tried. [env: COVERAGE_RCFILE] -.. [[[end]]] +.. [[[end]]] (checksum: 869a31153b3cf401c52523ae9b52c7ab) If you want :ref:`branch coverage <branch>` measurement, use the ``--branch`` flag. Otherwise only statement coverage is measured. @@ -386,7 +386,7 @@ want to keep those files, use the ``--keep`` command-line option. --rcfile=RCFILE Specify configuration file. By default '.coveragerc', 'setup.cfg', 'tox.ini', and 'pyproject.toml' are tried. [env: COVERAGE_RCFILE] -.. [[[end]]] +.. [[[end]]] (checksum: ddd34bbd27ab1fda8dabce80e4d67795) .. _cmd_erase: @@ -410,7 +410,7 @@ To erase the collected data, use the **erase** command: --rcfile=RCFILE Specify configuration file. By default '.coveragerc', 'setup.cfg', 'tox.ini', and 'pyproject.toml' are tried. [env: COVERAGE_RCFILE] -.. [[[end]]] +.. [[[end]]] (checksum: 27f64e800a037c7e8f90289affdd5f13) If your configuration file indicates parallel data collection, **erase** will remove all of the data files. @@ -501,7 +501,7 @@ as a percentage. --rcfile=RCFILE Specify configuration file. By default '.coveragerc', 'setup.cfg', 'tox.ini', and 'pyproject.toml' are tried. [env: COVERAGE_RCFILE] -.. [[[end]]] +.. [[[end]]] (checksum: e5e77534929d2579f9d022227ef97313) The ``-m`` flag also shows the line numbers of missing statements:: @@ -615,7 +615,7 @@ Click the keyboard icon in the upper right to see the complete list. --rcfile=RCFILE Specify configuration file. By default '.coveragerc', 'setup.cfg', 'tox.ini', and 'pyproject.toml' are tried. [env: COVERAGE_RCFILE] -.. [[[end]]] +.. [[[end]]] (checksum: 75eda57d99b6c7b736f8ab2d60cc765d) The title of the report can be set with the ``title`` setting in the ``[html]`` section of the configuration file, or the ``--title`` switch on @@ -687,7 +687,7 @@ compatible with `Cobertura`_. --rcfile=RCFILE Specify configuration file. By default '.coveragerc', 'setup.cfg', 'tox.ini', and 'pyproject.toml' are tried. [env: COVERAGE_RCFILE] -.. [[[end]]] +.. [[[end]]] (checksum: 7f5bcdcacbd60e32514201f24c56c17f) You can specify the name of the output file with the ``-o`` switch. @@ -772,7 +772,7 @@ The **json** command writes coverage data to a "coverage.json" file. --rcfile=RCFILE Specify configuration file. By default '.coveragerc', 'setup.cfg', 'tox.ini', and 'pyproject.toml' are tried. [env: COVERAGE_RCFILE] -.. [[[end]]] +.. [[[end]]] (checksum: 6fbe1ca09a8f0379a5e1794d8ac14e79) You can specify the name of the output file with the ``-o`` switch. The JSON can be nicely formatted by specifying the ``--pretty-print`` switch. @@ -840,7 +840,7 @@ For example:: --rcfile=RCFILE Specify configuration file. By default '.coveragerc', 'setup.cfg', 'tox.ini', and 'pyproject.toml' are tried. [env: COVERAGE_RCFILE] -.. [[[end]]] +.. [[[end]]] (checksum: 8c3175a256f38215016d03b66de23d5b) Other common reporting options are described above in :ref:`cmd_reporting`. @@ -880,7 +880,7 @@ Three types of information are available: --rcfile=RCFILE Specify configuration file. By default '.coveragerc', 'setup.cfg', 'tox.ini', and 'pyproject.toml' are tried. [env: COVERAGE_RCFILE] -.. [[[end]]] +.. [[[end]]] (checksum: 66c36bb462796800400d588fa5a71c5f) .. _cmd_run_debug: diff --git a/doc/dbschema.rst b/doc/dbschema.rst index a2fa2f38..c6f3395e 100644 --- a/doc/dbschema.rst +++ b/doc/dbschema.rst @@ -29,7 +29,7 @@ the schema number of the database. The schema described here corresponds to: SCHEMA_VERSION = 7 -.. [[[end]]] +.. [[[end]]] (checksum: 95a75340df33237e7e9c93b02dd1814c) You can use SQLite tools such as the :mod:`sqlite3 <python:sqlite3>` module in the Python standard library to access the data. Some data is stored in a @@ -111,7 +111,7 @@ This is the database schema: foreign key (file_id) references file (id) ); -.. [[[end]]] +.. [[[end]]] (checksum: 207fbab355481686e0dce0a9d99d173c) .. _numbits: diff --git a/doc/requirements.in b/doc/requirements.in index 3a9088c7..61bcf7ac 100644 --- a/doc/requirements.in +++ b/doc/requirements.in @@ -6,7 +6,7 @@ -c ../requirements/pins.pip -cogapp +git+https://github.com/nedbat/cog.git@nedbat/check doc8 pyenchant sphinx diff --git a/doc/requirements.pip b/doc/requirements.pip index 392f502c..a020e4f8 100644 --- a/doc/requirements.pip +++ b/doc/requirements.pip @@ -12,7 +12,7 @@ certifi==2021.10.8 # via requests charset-normalizer==2.0.7 # via requests -cogapp==3.2.0 +cogapp @ git+https://github.com/nedbat/cog.git@nedbat/check # via -r doc/requirements.in colorama==0.4.4 # via sphinx-autobuild diff --git a/requirements/dev.in b/requirements/dev.in index df834108..6010f28a 100644 --- a/requirements/dev.in +++ b/requirements/dev.in @@ -12,6 +12,7 @@ tox -r pytest.pip # for linting. +git+https://github.com/nedbat/cog.git@nedbat/check greenlet pylint check-manifest diff --git a/requirements/dev.pip b/requirements/dev.pip index d3072d0a..89e97316 100644 --- a/requirements/dev.pip +++ b/requirements/dev.pip @@ -29,6 +29,8 @@ charset-normalizer==2.0.7 # via requests check-manifest==0.47 # via -r requirements/dev.in +cogapp @ git+https://github.com/nedbat/cog.git@nedbat/check + # via -r requirements/dev.in colorama==0.4.4 # via twine decorator==5.1.0 @@ -95,7 +97,7 @@ parso==0.8.2 # via jedi pep517==0.12.0 # via build -pkginfo==1.8.0 +pkginfo==1.8.1 # via twine platformdirs==2.4.0 # via @@ -64,8 +64,7 @@ deps = whitelist_externals = make commands = - make cmd_help - python -m cogapp -rP --verbosity=1 doc/*.rst + python -m cogapp -cP --check --verbosity=1 doc/*.rst doc8 -q --ignore-path 'doc/_*' doc CHANGES.rst README.rst sphinx-build -b html -aEnqW doc doc/_build/html rst2html.py --strict README.rst doc/_build/trash @@ -83,6 +82,9 @@ setenv = commands = python -m tabnanny {env:LINTABLE} python igor.py check_eol + python -m cogapp -cP --check --verbosity=1 doc/*.rst + python -m cogapp -cP --check --verbosity=1 .github/workflows/*.yml + doc8 -q --ignore-path 'doc/_*' doc CHANGES.rst README.rst # If 'build -q' becomes a thing (https://github.com/pypa/build/issues/188), # this can be simplifed: python igor.py quietly "python -m build" |