python-utility-scripts 1.0.15__tar.gz → 1.0.17__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. python_utility_scripts-1.0.17/.gitignore +161 -0
  2. python_utility_scripts-1.0.17/PKG-INFO +79 -0
  3. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/README.md +21 -21
  4. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/apps/unused_code/README.md +15 -3
  5. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/apps/unused_code/unused_code.py +7 -2
  6. python_utility_scripts-1.0.17/pyproject.toml +85 -0
  7. python_utility_scripts-1.0.15/PKG-INFO +0 -85
  8. python_utility_scripts-1.0.15/pyproject.toml +0 -84
  9. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/LICENSE +0 -0
  10. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/apps/__init__.py +0 -0
  11. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/apps/jira_utils/README.md +0 -0
  12. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/apps/jira_utils/__init__.py +0 -0
  13. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/apps/jira_utils/jira_information.py +0 -0
  14. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/apps/polarion/README.md +0 -0
  15. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/apps/polarion/__init__.py +0 -0
  16. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/apps/polarion/polarion_set_automated.py +0 -0
  17. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/apps/polarion/polarion_utils.py +0 -0
  18. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/apps/polarion/polarion_verify_tc_requirements.py +0 -0
  19. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/apps/unused_code/__init__.py +0 -0
  20. {python_utility_scripts-1.0.15 → python_utility_scripts-1.0.17}/apps/utils.py +0 -0
@@ -0,0 +1,161 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+ .tests_coverage/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ #Pipfile.lock
97
+
98
+ # poetry
99
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
103
+ #poetry.lock
104
+
105
+ # pdm
106
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
107
+ #pdm.lock
108
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
109
+ # in version control.
110
+ # https://pdm.fming.dev/#use-with-ide
111
+ .pdm.toml
112
+
113
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
114
+ __pypackages__/
115
+
116
+ # Celery stuff
117
+ celerybeat-schedule
118
+ celerybeat.pid
119
+
120
+ # SageMath parsed files
121
+ *.sage.py
122
+
123
+ # Environments
124
+ .env
125
+ .venv
126
+ env/
127
+ venv/
128
+ ENV/
129
+ env.bak/
130
+ venv.bak/
131
+
132
+ # Spyder project settings
133
+ .spyderproject
134
+ .spyproject
135
+
136
+ # Rope project settings
137
+ .ropeproject
138
+
139
+ # mkdocs documentation
140
+ /site
141
+
142
+ # mypy
143
+ .mypy_cache/
144
+ .dmypy.json
145
+ dmypy.json
146
+
147
+ # Pyre type checker
148
+ .pyre/
149
+
150
+ # pytype static type analyzer
151
+ .pytype/
152
+
153
+ # Cython debug symbols
154
+ cython_debug/
155
+
156
+ # PyCharm
157
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
158
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
159
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
160
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
161
+ .idea/
@@ -0,0 +1,79 @@
1
+ Metadata-Version: 2.4
2
+ Name: python-utility-scripts
3
+ Version: 1.0.17
4
+ Summary: Python utility scripts
5
+ Project-URL: Homepage, https://github.com/RedHatQE/python-utility-scripts
6
+ Project-URL: Repository, https://github.com/RedHatQE/python-utility-scripts
7
+ Project-URL: Documentation, https://github.com/RedHatQE/python-utility-scripts/blob/main/README.md
8
+ Author-email: dbasunag <dbasunag@redhat.com>
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3
13
+ Requires-Python: ~=3.9
14
+ Requires-Dist: ast-comments>=1.2.2
15
+ Requires-Dist: jira<4,>=3.6.0
16
+ Requires-Dist: pyhelper-utils<2,>=1.0.1
17
+ Requires-Dist: pylero<0.2,>=0.1.0
18
+ Requires-Dist: pytest-mock<4,>=3.14.0
19
+ Requires-Dist: python-simple-logger<3,>=2.0.0
20
+ Requires-Dist: pyyaml<7,>=6.0.1
21
+ Requires-Dist: tenacity<10,>=9.0.0
22
+ Description-Content-Type: text/markdown
23
+
24
+ # python-utility-scripts
25
+
26
+ Repository for various python utility scripts
27
+
28
+ - [pyutils-unusedcode](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/unused_code/README.md)
29
+ - [pyutils-polarion-verify-tc-requirements](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/polarion/README.md)
30
+ - [pyutils-jira](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/jira_utils/README.md)
31
+ - [pyutils-polarion-set-automated](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/polarion/README.md)
32
+
33
+ ## Installation
34
+
35
+ using [uv](https://github.com/astral-sh/uv)
36
+
37
+ ```bash
38
+ uv tool install python-utility-scripts
39
+ ```
40
+
41
+ ## Local run
42
+
43
+ - Clone the [repository](https://github.com/RedHatQE/python-utility-scripts.git)
44
+
45
+ ## Config file
46
+
47
+ A config yaml file for various utilities of this repository should be added to
48
+ `~/.config/python-utility-scripts/config.yaml`. Script specific config section details can be found in associated script README.md
49
+
50
+ ## Release new version
51
+
52
+ ### requirements
53
+
54
+ - Export GitHub token
55
+
56
+ ```bash
57
+ export GITHUB_TOKEN=<your_github_token>
58
+ ```
59
+
60
+ - [release-it](https://github.com/release-it/release-it)
61
+
62
+ - Run the following once (execute outside repository dir for example `~/`):
63
+
64
+ ```bash
65
+ sudo npm install --global release-it
66
+ npm install --save-dev @j-ulrich/release-it-regex-bumper
67
+ rm -f package.json package-lock.json
68
+ ```
69
+
70
+ ### usage
71
+
72
+ - Create a release, run from the relevant branch.
73
+ To create a new release, run:
74
+
75
+ ```bash
76
+ git checkout main
77
+ git pull
78
+ release-it # Follow the instructions
79
+ ```
@@ -1,43 +1,42 @@
1
1
  # python-utility-scripts
2
+
2
3
  Repository for various python utility scripts
3
- * [pyutils-unusedcode](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/unused_code/README.md)
4
- * [pyutils-polarion-verify-tc-requirements](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/polarion/README.md)
5
4
 
6
- ## Installation
5
+ - [pyutils-unusedcode](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/unused_code/README.md)
6
+ - [pyutils-polarion-verify-tc-requirements](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/polarion/README.md)
7
+ - [pyutils-jira](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/jira_utils/README.md)
8
+ - [pyutils-polarion-set-automated](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/polarion/README.md)
7
9
 
8
- ```bash
9
- pip3 install python-utility-scripts --user
10
- ```
10
+ ## Installation
11
11
 
12
- ## Local run
13
- * Clone the [repository](https://github.com/RedHatQE/python-utility-scripts.git)
12
+ using [uv](https://github.com/astral-sh/uv)
14
13
 
15
14
  ```bash
16
- git clone https://github.com/RedHatQE/python-utility-scripts.git
15
+ uv tool install python-utility-scripts
17
16
  ```
18
17
 
19
- * Install [poetry](https://github.com/python-poetry/poetry)
18
+ ## Local run
20
19
 
21
- ```bash
22
- poetry install
23
- ```
20
+ - Clone the [repository](https://github.com/RedHatQE/python-utility-scripts.git)
24
21
 
25
22
  ## Config file
23
+
26
24
  A config yaml file for various utilities of this repository should be added to
27
25
  `~/.config/python-utility-scripts/config.yaml`. Script specific config section details can be found in associated script README.md
28
26
 
29
-
30
27
  ## Release new version
31
- ### requirements:
32
- * Export GitHub token
28
+
29
+ ### requirements
30
+
31
+ - Export GitHub token
33
32
 
34
33
  ```bash
35
34
  export GITHUB_TOKEN=<your_github_token>
36
35
  ```
37
36
 
38
- * [release-it](https://github.com/release-it/release-it)
37
+ - [release-it](https://github.com/release-it/release-it)
39
38
 
40
- * Run the following once (execute outside repository dir for example `~/`):
39
+ - Run the following once (execute outside repository dir for example `~/`):
41
40
 
42
41
  ```bash
43
42
  sudo npm install --global release-it
@@ -45,9 +44,10 @@ npm install --save-dev @j-ulrich/release-it-regex-bumper
45
44
  rm -f package.json package-lock.json
46
45
  ```
47
46
 
48
- ### usage:
49
- * Create a release, run from the relevant branch.
50
- To create a new release, run:
47
+ ### usage
48
+
49
+ - Create a release, run from the relevant branch.
50
+ To create a new release, run:
51
51
 
52
52
  ```bash
53
53
  git checkout main
@@ -1,4 +1,5 @@
1
1
  # pyutils-unusedcode
2
+
2
3
  Helper to identify unused code in a pytest repository. It should be run from inside the test repository using this tool.
3
4
 
4
5
  ## Usage
@@ -9,18 +10,20 @@ pyutils-unusedcode --help
9
10
  ```
10
11
 
11
12
  ## Config file
13
+
12
14
  To skip unused code check on specific files or functions of a repository, a config file with the list of names of such files and function prefixes should be added to
13
15
  `~/.config/python-utility-scripts/config.yaml`
14
16
 
15
- ### Example:
17
+ ### Example
16
18
 
17
19
  ```yaml
18
20
  pyutils-unusedcode:
19
21
  exclude_files:
20
- - "my_exclude_file.py"
22
+ - "my_exclude_file.py"
21
23
  exclude_function_prefix:
22
- - "my_exclude_function_prefix"
24
+ - "my_exclude_function_prefix"
23
25
  ```
26
+
24
27
  This would exclude any functions with prefix my_exclude_function_prefix and file my_exclude_file.py from unused code check
25
28
 
26
29
  To run from CLI with `--exclude-function-prefixes`
@@ -34,3 +37,12 @@ To run from CLI with `--exclude-files`
34
37
  ```bash
35
38
  pyutils-unusedcode --exclude-files 'my_exclude_file1.py,my_exclude_file2.py'
36
39
  ```
40
+
41
+ ### Skip single function in file
42
+
43
+ Add `# skip-unused-code` comment in the function name list to skip it from check.
44
+
45
+ ```python
46
+ def my_function(): # skip-unused-code
47
+ pass
48
+ ```
@@ -9,6 +9,7 @@ from concurrent.futures import Future, ThreadPoolExecutor, as_completed
9
9
  from typing import Any, Iterable
10
10
 
11
11
  import click
12
+ from ast_comments import parse
12
13
  from simple_logger.logger import get_logger
13
14
 
14
15
  from apps.utils import ListParamType, all_python_files, get_util_config
@@ -58,7 +59,7 @@ def process_file(py_file: str, func_ignore_prefix: list[str], file_ignore_list:
58
59
  return ""
59
60
 
60
61
  with open(py_file) as fd:
61
- tree = ast.parse(source=fd.read())
62
+ tree = parse(source=fd.read())
62
63
 
63
64
  for func in _iter_functions(tree=tree):
64
65
  if func_ignore_prefix and is_ignore_function_list(ignore_prefix_list=func_ignore_prefix, function=func):
@@ -69,8 +70,12 @@ def process_file(py_file: str, func_ignore_prefix: list[str], file_ignore_list:
69
70
  LOGGER.debug(f"Skipping `autouse` fixture function: {func.name}")
70
71
  continue
71
72
 
73
+ if any(getattr(item, "value", None) == "# skip-unused-code" for item in func.body):
74
+ LOGGER.debug(f"Skipping function {func.name}: found `# skip-unused-code`")
75
+ continue
76
+
72
77
  used = False
73
- _func_grep_found = subprocess.check_output(["git", "grep", "-w", func.name], shell=False)
78
+ _func_grep_found = subprocess.check_output(["git", "grep", "-wE", f"{func.name}(.*)"], shell=False)
74
79
 
75
80
  for entry in _func_grep_found.decode().splitlines():
76
81
  _, _line = entry.split(":", 1)
@@ -0,0 +1,85 @@
1
+ [project]
2
+ name = "python-utility-scripts"
3
+ version = "1.0.17"
4
+ description = "Python utility scripts"
5
+ requires-python = "~=3.9"
6
+ readme = "README.md"
7
+ license = "Apache-2.0"
8
+ classifiers = [
9
+ "Programming Language :: Python :: 3",
10
+ "Operating System :: OS Independent"
11
+ ]
12
+ dependencies = [
13
+ "pylero>=0.1.0,<0.2",
14
+ "pytest-mock>=3.14.0,<4",
15
+ "pyyaml>=6.0.1,<7",
16
+ "jira>=3.6.0,<4",
17
+ "tenacity>=9.0.0,<10",
18
+ "python-simple-logger>=2.0.0,<3",
19
+ "pyhelper-utils>=1.0.1,<2",
20
+ "ast-comments>=1.2.2"
21
+ ]
22
+
23
+ [[project.authors]]
24
+ name = "dbasunag"
25
+ email = "dbasunag@redhat.com"
26
+
27
+ [project.urls]
28
+ Homepage = "https://github.com/RedHatQE/python-utility-scripts"
29
+ Repository = "https://github.com/RedHatQE/python-utility-scripts"
30
+ Documentation = "https://github.com/RedHatQE/python-utility-scripts/blob/main/README.md"
31
+
32
+ [project.scripts]
33
+ pyutils-unusedcode = "apps.unused_code.unused_code:get_unused_functions"
34
+ pyutils-polarion-verify-tc-requirements = "apps.polarion.polarion_verify_tc_requirements:has_verify"
35
+ pyutils-polarion-set-automated = "apps.polarion.polarion_set_automated:polarion_approve_automate"
36
+ pyutils-jira = "apps.jira_utils.jira_information:get_jira_mismatch"
37
+
38
+ [tool.coverage.run]
39
+ omit = [ "tests/*" ]
40
+
41
+ [tool.coverage.report]
42
+ fail_under = 65
43
+ skip_empty = true
44
+
45
+ [tool.coverage.html]
46
+ directory = ".tests_coverage"
47
+ show_contexts = true
48
+
49
+ [tool.uv]
50
+ default-groups = [ "dev", "test" ]
51
+
52
+ [tool.hatch.build.targets.sdist]
53
+ include = [ "apps" ]
54
+
55
+ [tool.hatch.build.targets.wheel]
56
+ include = [ "apps" ]
57
+
58
+ [tool.mypy]
59
+ show_error_codes = true
60
+ warn_unused_ignores = true
61
+ check_untyped_defs = true
62
+ disallow_any_generics = false
63
+ disallow_incomplete_defs = true
64
+ disallow_untyped_defs = true
65
+ no_implicit_optional = true
66
+
67
+ [tool.ruff]
68
+ preview = true
69
+ line-length = 120
70
+ fix = true
71
+ output-format = "grouped"
72
+
73
+ [tool.ruff.lint]
74
+ extend-select = [ "I" ]
75
+
76
+ [tool.ruff.format]
77
+ exclude = [ ".git", ".venv", ".mypy_cache", ".tox", "__pycache__" ]
78
+
79
+ [dependency-groups]
80
+ dev = [ "ipdb>=0.13.13,<0.14", "ipython" ]
81
+ test = [ "pytest>=8.0.0,<9", "pytest-cov>=6.0.0,<7" ]
82
+
83
+ [build-system]
84
+ requires = [ "hatchling" ]
85
+ build-backend = "hatchling.build"
@@ -1,85 +0,0 @@
1
- Metadata-Version: 2.3
2
- Name: python-utility-scripts
3
- Version: 1.0.15
4
- Summary: Python utility scripts
5
- License: Apache-2.0
6
- Author: dbasunag
7
- Author-email: dbasunag@redhat.com
8
- Requires-Python: >=3.9,<4.0
9
- Classifier: License :: OSI Approved :: Apache Software License
10
- Classifier: Operating System :: OS Independent
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.9
13
- Classifier: Programming Language :: Python :: 3.10
14
- Classifier: Programming Language :: Python :: 3.11
15
- Classifier: Programming Language :: Python :: 3.12
16
- Classifier: Programming Language :: Python :: 3.13
17
- Requires-Dist: jira (>=3.6.0,<4.0.0)
18
- Requires-Dist: pyhelper-utils (>=1.0.1,<2.0.0)
19
- Requires-Dist: pylero (>=0.1.0,<0.2.0)
20
- Requires-Dist: pytest-mock (>=3.14.0,<4.0.0)
21
- Requires-Dist: python-simple-logger (>=2.0.0,<3.0.0)
22
- Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
23
- Requires-Dist: tenacity (>=9.0.0,<10.0.0)
24
- Project-URL: Documentation, https://github.com/RedHatQE/python-utility-scripts/blob/main/README.md
25
- Project-URL: Homepage, https://github.com/RedHatQE/python-utility-scripts
26
- Project-URL: Repository, https://github.com/RedHatQE/python-utility-scripts
27
- Description-Content-Type: text/markdown
28
-
29
- # python-utility-scripts
30
- Repository for various python utility scripts
31
- * [pyutils-unusedcode](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/unused_code/README.md)
32
- * [pyutils-polarion-verify-tc-requirements](https://github.com/RedHatQE/python-utility-scripts/blob/main/apps/polarion/README.md)
33
-
34
- ## Installation
35
-
36
- ```bash
37
- pip3 install python-utility-scripts --user
38
- ```
39
-
40
- ## Local run
41
- * Clone the [repository](https://github.com/RedHatQE/python-utility-scripts.git)
42
-
43
- ```bash
44
- git clone https://github.com/RedHatQE/python-utility-scripts.git
45
- ```
46
-
47
- * Install [poetry](https://github.com/python-poetry/poetry)
48
-
49
- ```bash
50
- poetry install
51
- ```
52
-
53
- ## Config file
54
- A config yaml file for various utilities of this repository should be added to
55
- `~/.config/python-utility-scripts/config.yaml`. Script specific config section details can be found in associated script README.md
56
-
57
-
58
- ## Release new version
59
- ### requirements:
60
- * Export GitHub token
61
-
62
- ```bash
63
- export GITHUB_TOKEN=<your_github_token>
64
- ```
65
-
66
- * [release-it](https://github.com/release-it/release-it)
67
-
68
- * Run the following once (execute outside repository dir for example `~/`):
69
-
70
- ```bash
71
- sudo npm install --global release-it
72
- npm install --save-dev @j-ulrich/release-it-regex-bumper
73
- rm -f package.json package-lock.json
74
- ```
75
-
76
- ### usage:
77
- * Create a release, run from the relevant branch.
78
- To create a new release, run:
79
-
80
- ```bash
81
- git checkout main
82
- git pull
83
- release-it # Follow the instructions
84
- ```
85
-
@@ -1,84 +0,0 @@
1
- [tool.coverage.run]
2
- omit = ["tests/*"]
3
-
4
- [tool.coverage.report]
5
- fail_under = 65
6
- skip_empty = true
7
-
8
- [tool.coverage.html]
9
- directory = ".tests_coverage"
10
- show_contexts = true
11
-
12
- [tool.mypy]
13
- show_error_codes = true
14
- warn_unused_ignores = true
15
- check_untyped_defs = true
16
- disallow_any_generics = false
17
- disallow_incomplete_defs = true
18
- disallow_untyped_defs = true
19
- no_implicit_optional = true
20
-
21
- [tool.ruff]
22
- preview = true
23
- line-length = 120
24
- fix = true
25
- output-format = "grouped"
26
- lint.extend-select = ["I"]
27
-
28
- [tool.ruff.format]
29
- exclude = [".git", ".venv", ".mypy_cache", ".tox", "__pycache__"]
30
-
31
- [tool.poetry]
32
- name = "python-utility-scripts"
33
- version = "1.0.15"
34
- description = "Python utility scripts"
35
- authors = ["dbasunag <dbasunag@redhat.com>"]
36
- license = "Apache License 2.0"
37
- readme = "README.md"
38
- repository = "https://github.com/RedHatQE/python-utility-scripts"
39
- homepage = "https://github.com/RedHatQE/python-utility-scripts"
40
- documentation = "https://github.com/RedHatQE/python-utility-scripts/blob/main/README.md"
41
- classifiers = [
42
- "Programming Language :: Python :: 3",
43
- "Operating System :: OS Independent",
44
- ]
45
-
46
- packages = [{ include = "apps" }]
47
-
48
- [tool.poetry.scripts]
49
- pyutils-unusedcode = "apps.unused_code.unused_code:get_unused_functions"
50
- pyutils-polarion-verify-tc-requirements = "apps.polarion.polarion_verify_tc_requirements:has_verify"
51
- pyutils-polarion-set-automated = "apps.polarion.polarion_set_automated:polarion_approve_automate"
52
- pyutils-jira = "apps.jira_utils.jira_information:get_jira_mismatch"
53
-
54
-
55
- [tool.poetry.dependencies]
56
- python = "^3.9"
57
- pylero = "^0.1.0"
58
- pytest-mock = "^3.14.0"
59
- pyyaml = "^6.0.1"
60
- jira = "^3.6.0"
61
- tenacity = "^9.0.0"
62
- python-simple-logger = "^2.0.0"
63
- pyhelper-utils = "^1.0.1"
64
-
65
- [tool.poetry.group.dev.dependencies]
66
- ipdb = "^0.13.13"
67
- ipython = "*"
68
-
69
-
70
- [tool.poetry-dynamic-versioning]
71
- enable = false
72
- pattern = "((?P<epoch>\\d+)!)?(?P<base>\\d+(\\.\\d+)*)"
73
-
74
-
75
- [tool.poetry.group.test.dependencies]
76
- pytest = "^8.0.0"
77
- pytest-cov = "^6.0.0"
78
-
79
- [tool.poetry-dynamic-versioning.substitution]
80
- files = ["VERSION"]
81
-
82
- [build-system]
83
- requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
84
- build-backend = "poetry_dynamic_versioning.backend"