dup_hawk
🦅 A bot the looks for duplicate issues on a GitHub repo, created especially for competitive security reviews.
Getting Started
Requirements
- git
- You'll know you did it right if you can run
git --versionand you see a response likegit version x.x.x
- You'll know you did it right if you can run
- Python
- You'll know you've installed python right if you can run:
python --versionorpython3 --versionand get an output like:Python x.x.x
- You'll know you've installed python right if you can run:
- pipx
pipxis different from pip- You may have to close and re-open your terminal
- You'll know you've installed it right if you can run:
pipx --versionand see something likex.x.x.x
- poetry
- You'll know you've installed it right if you can run
poetry --versionand get an output likePoetry (version 1.4.2)
- You'll know you've installed it right if you can run
Installation
pipx
pipx install dup_hawk
From Source
git clone https://github.com/Cyfrin/dup-hawk
cd dup-hawk
pip install . -e
Quickstart
dup-hawk --help
To run the duplicate checker, run:
dup-hawk --git-repo-url {URL} --git-pat-token {PAT_TOKEN}
And you will have marked the issues on your github repo!
Tests
poetry run pytest
Integration tests
poetry run pytest -m ""
Specific tests with pdb and stdout
poetry run pytest -k "test_mark_duplicates_from_dfs" --pdb -s
Big TODO
Add mocking unit tests.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dup_hawk-0.0.12.tar.gz
(5.3 kB
view details)
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 dup_hawk-0.0.12.tar.gz.
File metadata
- Download URL: dup_hawk-0.0.12.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1042-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98b22be224eb03b286a089dd711df2e3dcdae8c66fb7d85dcbc79cbfd0fcaf8f
|
|
| MD5 |
abdab152377430f5c9ea06408164ad70
|
|
| BLAKE2b-256 |
edcaf7c5b17c6f89912433170cc82f1ca1a6f9ae17fbfa4c32b1adeb6193e4f6
|
File details
Details for the file dup_hawk-0.0.12-py3-none-any.whl.
File metadata
- Download URL: dup_hawk-0.0.12-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1042-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a6db4f6cc0204ab291632605dd0d0ed7e7d0af1d09aad0a01b275625454a4a2
|
|
| MD5 |
9ee48a45e9fe8fd45895ec47072a322b
|
|
| BLAKE2b-256 |
4806a59482ea5165a95a8811030c7ae1901265cf749c38a534bb9ec7200408a2
|