File: //home/arjun/projects/env/lib/python3.10/site-packages/coverage/__pycache__/cmdline.cpython-310.pyc
o
!we{� � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlmZm
Z
mZmZmZmZ ddlZddlmZ ddlmZ ddlmZ ddlmZ dd lmZ dd
lmZmZ ddlmZm Z m!Z! ddl"m#Z#m$Z$m%Z% dd
l&m'Z' ddl(m)Z)m*Z* ddl+m,Z, G dd� d�Z-G dd� dej.�Z/G dd� de/�Z0G dd� de/�Z1e-j2e-j3e-j4gZ5e1de-j6e-j7e-j8e-j9e-j:ge5 ddd�e1de-j;e-j<e-j=e-j>ge5 ddd�e1de5d d!d�e1d"e-j<ge5 d#d$�e1d%e5d&d'd�e1d(e-j?e-j6e-j7e-j@e-j8e-j9e-j:e-jAe-j>e-jBe-jCe-jDe-jEe-jFge5 dd)d�e1d*e-j?e-j7e-j@e-j8e-j9e-j:e-jGe-jHe-j>e-jBg
e5 dd+d�e1d,e-j7e-j@e-j8e-j9e-jIe-j:e-j>ge5 dd-d�e1d.e-j?e-j7e-j@e-jJe-j8e-j9e-j:e-jAe-jKe-jLe-jCe-jDe-jEg
e5 dd/d�e1d0e-j;e-jMe-jNe-jOe-jPe-j9e-jQe-j:e-jRe-jSe-jTe-jUge5 d1d2d�e1d3e-j7e-j@e-j8e-j9e-j:e-jVe-j>e-jEge5 dd4d�d5�ZW dWdXd=d>�ZXd?\ZYZZZ[G d@dA� dA�Z\dYdEdF�Z]dZdIdJ�Z^dKdLdMdN�Z_d[d\dQdR�Z`eja�bdSdT�Zcec�r�ddUldmeZe e`Zf d[d\dVdR�Z`dS dS )]z%Command-line support for coverage.py.� )�annotationsN)�cast�Any�List�NoReturn�Optional�Tuple)�Coverage)�env)�HAS_CTRACER)�CoverageConfig)�DEFAULT_DATAFILE)�combinable_files�debug_data_file)�info_header�short_stack�write_formatted_info)�_BaseCoverageException�_ExceptionDuringRun�NoSource)�PyRunner)�Numbers�should_fail_under)�__url__c @ s� e Zd ZdZejddddd�Zejdddd d�Zejdd
ddd�Zejddd
dd� d�
eej
���d�Zejddd
ddd�Zejddd
ddd�Zejddd
ddd�Zejddd
ddd�Zejddd
ddd�Zejddd
d d!d�Zejd"d#d
d$d%d�Zejdd&d
d'd(d)d*�Zejdd+d
d,d-d�Z ejd.d/dd0d�Zejd1d2dd3d�Zejdd4d
d5d6d�Zejd7d8dd9d�Zejd:d;dd<d�Zejd:d=dd>d�Zejdd?d
d5d@d�ZejdAdd
dBddCdD�ZejdAdd
dBddEdD�ZejdAdd
dBddFdD�Z ejddGddHd�Z!ejdIdJddKd�Z"ejddLd
dMe#dNd*�Z$ejdOdPddQd�Z%ejddRd
dSd�Z&ejdTddUd�Z'ejdVddWd�Z(ejdXdYdZd[d\�Z)ejd]dd^d�Z*ejd_d
d`dad�Z+ejddbd
dcddd�Z,ejddeddfd�Z-ejddgd
dhdid�Z.ejddjddkd�Z/dlS )m�OptszBA namespace class for individual options we'll build parsers from.z-az--append�
store_truezGAppend coverage data to .coverage, otherwise it starts clean each time.)�action�help� z--keepz9Keep original coverage files, otherwise they are deleted.z--branchz:Measure branch coverage in addition to statement coverage.z
--concurrency�store�LIBSzaProperly measure code using a concurrency library. Valid values are: {}, or a comma-list of them.z, )r �metavarr z --context�LABELz2The context label to record for this coverage run.z
--contextszREGEX1,REGEX2,...ziOnly display data from lines covered in the given contexts. Accepts Python regexes, which must be quoted.z--data-file�DATAFILEzXBase name of the data files to operate on. Defaults to '.coverage'. [env: COVERAGE_FILE]�INFILEzfRead coverage data for report generation from this file. Defaults to '.coverage'. [env: COVERAGE_FILE]�OUTFILEz\Write the recorded coverage data to this file. Defaults to '.coverage'. [env: COVERAGE_FILE]z--debug�OPTSz9Debug options, separated by commas. [env: COVERAGE_DEBUG]z-dz--directory�DIRzWrite the output files to DIR.z--fail-under�MIN�floatz?Exit with a status of 2 if the total coverage is less than MIN.)r r! �typer z--format�FORMATz9Output format, either text (default), markdown, or total.z-hz--helpzGet help on this command.z-iz--ignore-errorsz)Ignore errors while reading source files.z --includez
PAT1,PAT2,...zpInclude only files whose paths match one of these patterns. Accepts shell-style wildcards, which must be quoted.z-Lz--pylibzWMeasure coverage even inside the Python installed library, which isn't done by default.�-mz--show-missingzEShow line numbers of statements in each module that weren't executed.�--modulezb<pyfile> is an importable Python module, not a script path, to be run as 'python -m' would run it.z--omitzhOmit files whose paths match one of these patterns. Accepts shell-style wildcards, which must be quoted.z-o�outfilez=Write the XML report to this file. Defaults to 'coverage.xml')r �destr! r z?Write the JSON report to this file. Defaults to 'coverage.json'z?Write the LCOV report to this file. Defaults to 'coverage.lcov'z--pretty-printz"Format the JSON for human readers.z-pz--parallel-modez|Append the machine name, process id and random number to the data file name to simplify collecting data from many processes.z--precision�NzVNumber of digits after the decimal point to display for reported coverage percentages.z-qz--quietz-Don't print messages about what is happening.z--rcfilez�Specify configuration file. By default '.coveragerc', 'setup.cfg', 'tox.ini', and 'pyproject.toml' are tried. [env: COVERAGE_RCFILE]z--show-contextsz Show contexts for covered lines.z--skip-coveredzSkip files with 100% coverage.z--no-skip-covered�store_false�skip_coveredzDisable --skip-covered.)r r/ r z--skip-emptyzSkip files with no code.z--sort�COLUMNzbSort the report by the named column: name, stmts, miss, branch, brpart, or cover. Default is name.z--sourcez
SRC1,SRC2,...z=A list of directories or importable names of code to measure.z--timidzXUse a simpler but slower trace method. Try this if you get seemingly impossible results!z--title�TITLEz.A text string to use as the title on the HTML.z --versionz%Display version information and exit.N)0�__name__�
__module__�__qualname__�__doc__�optparse�make_option�append�keep�branch�format�join�sortedr �CONCURRENCY_CHOICES�concurrency�context�contexts�combine_datafile�input_datafile�output_datafile�debug� directory�
fail_underr �
ignore_errors�include�pylib�show_missing�module�omit�
output_xml�output_json�output_lcov�json_pretty_print�
parallel_mode�int� precision�quiet�rcfile�
show_contextsr2 �no_skip_covered�
skip_empty�sort�source�timid�title�version� rb rb �I/home/arjun/projects/env/lib/python3.10/site-packages/coverage/cmdline.pyr # s. �����������
���������
�
�
���
�����������
�r c sJ e Zd ZdZd� fdd�ZG d d
� d
e�Zd� fd
d�Zddd�Z� Z S )�CoverageOptionParserz|Base OptionParser for coverage.py.
Problems don't exit the program.
Defaults are initialized for all options.
�argsr �kwargs�return�Nonec s� d|d<