Gitlab issue cross checker. Checks for gitlab tickets to appear in the source and vice versa.
Project description
Ticket Cross Checker
Take gitlab issues and find them in code and vice versa. Create a mapping table to see what's covered, missing or wrong.
An example are the Gitlab Pages for this project.
Usage
start the cross checker in your CI pipeline
pages:
stage: test
script:
- pdm run discover ticket_cross_check spec
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == "main"
Add to existing gitlab pages
- caches existing
publicdirectories and creates a sub-dirtcc
cache:
paths:
- public
discover_issues:
image: python:latest
stage: build
script:
- python -m pip install --upgrade pip
- pip install ticket_cross_check
- discover code doc spec test -o public/tcc
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == "main"
Avoid logging
- we use loguru,
you can disable loguru auto init by setting
LOGURU_AUTOINITtoFalsein your environment
Development
Requirements
-
We use
pdmfor packaging (not pip, poetry or alinke) -
pdm installshall be run before you do anything (esp. in PyCharm), after that you find a.venvin the project root -
pdm add [-d] <package>to add more deps (fount in pyproject.toml)
How to install pdm
- See pdm homepage
- Usually you run
curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3 -
Run gitlab-runner locally for single target
- download/install the gitlab-runner for your system
- install docker
- run
gitlab-runner exec docker <target>targetcomes from .gitlab-ci.yml - done :)
- btw caching only works with an S3 backend, see docs
Testing with pytest
- we use pytest
Code style with flake8
- config is in .flake8
- details can be found in the flake8 docs
Local installation and experiements
pdm installalso installs the cli scripts, defined in ticket_cross_check/init.py or pyproject.toml- you can run
discover <dir> [<dir> [<dir>]]to cross-check the given directories
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ticket-cross-check-0.10.1.tar.gz.
File metadata
- Download URL: ticket-cross-check-0.10.1.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.7.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba19416fd4db7d642392d455e7400eb05b1bc7fb6c3d38042c069727b3cb68df
|
|
| MD5 |
84a26f71ecc806ab7e91fc4d439e9231
|
|
| BLAKE2b-256 |
b9eeb2a10a6a13806eda6e2593760ad98cf830c410fe98212e862e91beaa8979
|
File details
Details for the file ticket_cross_check-0.10.1-py3-none-any.whl.
File metadata
- Download URL: ticket_cross_check-0.10.1-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.7.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a74eff8262f5f90672c4b5640257327b3fc2f058611fe7a658d2a2c65804a40
|
|
| MD5 |
6cbada573c7b1b4461c1c1409d36c3aa
|
|
| BLAKE2b-256 |
09a26a53b615ae751512c16965c153a53c5769e3d12a88e28cef288261dd93b0
|