Skip to main content

dup_hawk

🦅 A bot the looks for duplicate issues on a GitHub repo, created especially for competitive security reviews.

dup-hawk

Getting Started

Requirements

  • git
    • You'll know you did it right if you can run git --version and you see a response like git version x.x.x
  • Python
    • You'll know you've installed python right if you can run:
      • python --version or python3 --version and get an output like: Python x.x.x
  • pipx
    • pipx is 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 --version and see something like x.x.x.x
  • poetry
    • You'll know you've installed it right if you can run poetry --version and get an output like Poetry (version 1.4.2)

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.

Metadata

Release files for dup-hawk 0.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dup-hawk 0.0.12
File Size Uploaded
dup_hawk-0.0.12.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dup-hawk 0.0.12
File Interpreter ABI Platform
dup_hawk-0.0.12-py3-none-any.whl Python 3 none any Details

Total release size: 11.9 kB

Release files / dup_hawk-0.0.12.tar.gz

Download URL dup_hawk-0.0.12.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
98b22be224eb03b286a089dd711df2e3dcdae8c66fb7d85dcbc79cbfd0fcaf8f
BLAKE2b-256 checksum
How to use checksums
edcaf7c5b17c6f89912433170cc82f1ca1a6f9ae17fbfa4c32b1adeb6193e4f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1042-azure

Release files / dup_hawk-0.0.12-py3-none-any.whl

Download URL dup_hawk-0.0.12-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a6db4f6cc0204ab291632605dd0d0ed7e7d0af1d09aad0a01b275625454a4a2
BLAKE2b-256 checksum
How to use checksums
4806a59482ea5165a95a8811030c7ae1901265cf749c38a534bb9ec7200408a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1042-azure

Release history Release notifications | RSS feed

This release

0.0.12 This release

2 release files

0.0.9

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page