Skip to content

Commit 90f71ca

Browse files
committed
Initial commit.
0 parents  commit 90f71ca

File tree

132 files changed

+32781
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+32781
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
name: Bug report
3+
about: Your detailed bug reports are pivotal in elevating this project's quality.
4+
Your expertise in identifying issues is deeply valued and appreciated.
5+
title: "[ISSUE] Problem Encountered"
6+
labels: bug
7+
assignees: franckferman
8+
9+
---
10+
11+
## Problem Summary
12+
_Provide a clear and concise summary of the encountered issue._
13+
14+
## Steps to Reproduce
15+
Provide a step-by-step description on how to reproduce the anomaly:
16+
17+
1. Command initiated: `...`
18+
2. During the process: `....`
19+
3. Observed issue: `....`
20+
4. Output/response anomaly: `...`
21+
22+
## Expected Outcome
23+
_Describe the anticipated result after executing the provided steps._
24+
25+
## Visual Evidence
26+
If possible, attach screenshots to support your description.
27+
28+
## Technical Details
29+
30+
### Operating System
31+
32+
- **Linux:** [e.g. Linux root 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64 GNU/Linux]
33+
*Retrieval:* `uname -a`
34+
35+
- **Windows:** [e.g. Microsoft Windows 10 Pro DevBox 10.0.15063 Multiprocessor Free 64-bit]
36+
*Retrieval:*
37+
```powershell
38+
$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture'
39+
Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize
40+
```
41+
42+
### Software Versions
43+
44+
- **Python**: [e.g. Python 3.11.4]
45+
*Retrieval:* `python3 -V`
46+
47+
- **Exiftool**: [e.g. 12.56]
48+
*Retrieval:* `exiftool -ver`
49+
50+
- **MetaDetective**: [e.g. 1.0.8]
51+
52+
### Docker (if used)
53+
54+
- **Image Version**: [e.g. "1.0.1"]
55+
56+
## Additional Information
57+
58+
Provide any other pertinent details or context regarding the issue.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Feature request
3+
about: Clearly outline the primary goal of this feature request.
4+
title: "[FEATURE]"
5+
labels: enhancement
6+
assignees: franckferman
7+
8+
---
9+
10+
**Problem Nexus:**
11+
_Can you link this feature request to an existing problem or limitation?_
12+
Provide a precise and thorough depiction of the issue. For instance, "The current workflow requires manual data entry, leading to inefficiencies and potential for error."
13+
14+
**Envisioned Solution:**
15+
_Detail the desired feature or enhancement._
16+
Expound upon how you imagine this feature will function, how it will address the problem, and the advantages it will introduce.
17+
18+
**Alternative Strategies Assessed:**
19+
_Have you thought of other potential solutions?_
20+
List and briefly explain other solutions or functionalities you've considered. Highlight why they might be less optimal than your proposed solution.
21+
22+
**Implications and Integration:**
23+
_How will this feature fit into the current system?_
24+
Discuss any potential interactions with existing features, how it aligns with the project's goals, or any other relevant integrations.
25+
26+
**Visual Demonstrations (if applicable):**
27+
_Do you have visual aids or mock-ups?_
28+
Embed any diagrams, wireframes, or screenshots that can provide clarity on the desired feature's function and integration.

.github/workflows/bandit.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: bandit
2+
3+
on:
4+
push:
5+
branches: [ "stable" ]
6+
paths:
7+
- 'src/MetaDetective/MetaDetective.py'
8+
pull_request:
9+
branches: [ "stable" ]
10+
paths:
11+
- 'src/MetaDetective/MetaDetective.py'
12+
13+
jobs:
14+
security-check:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout Repository
19+
uses: actions/checkout@v2
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: 3.11
25+
26+
- name: Install Bandit
27+
run: pip install bandit
28+
29+
- name: Run Bandit
30+
run: bandit ./src/MetaDetective/MetaDetective.py -s B404,B607,B603,B310
31+

.github/workflows/docker-image.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: docker-image
2+
3+
on:
4+
push:
5+
branches: [ "stable" ]
6+
paths:
7+
- 'docker/Dockerfile'
8+
pull_request:
9+
branches: [ "stable" ]
10+
paths:
11+
- 'docker/Dockerfile'
12+
13+
jobs:
14+
15+
build_and_push:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Build the Docker image
23+
run: docker build . --file docker/Dockerfile --tag franckferman/metadetective:1.0.9-df.2
24+
25+
- name: Login to Docker Hub
26+
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
27+
- name: Push Docker Image
28+
run: docker push franckferman/metadetective:1.0.9-df.2

.github/workflows/pep8.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: pep8
2+
3+
on:
4+
push:
5+
branches: [ "stable" ]
6+
paths:
7+
- 'tests/test_MetaDetective.py'
8+
- 'src/MetaDetective/MetaDetective.py'
9+
pull_request:
10+
branches: [ "stable" ]
11+
paths:
12+
- 'tests/test_MetaDetective.py'
13+
- 'src/MetaDetective/MetaDetective.py'
14+
15+
jobs:
16+
flake8:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout Repository
21+
uses: actions/checkout@v2
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: 3.11
27+
28+
- name: Install flake8
29+
run: pip install flake8
30+
31+
- name: Check PEP8 compliance
32+
run: flake8 . --count --ignore=E501
33+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: python-publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
deploy:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: '3.x'
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install build
25+
- name: Build package
26+
run: python -m build
27+
- name: Publish package
28+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
29+
with:
30+
user: __token__
31+
password: ${{ secrets.PYPI_API_TOKEN }}
32+

.github/workflows/static.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: static
2+
3+
on:
4+
push:
5+
branches: [ "stable" ]
6+
paths:
7+
- 'docs/website/**'
8+
pull_request:
9+
branches: [ "stable" ]
10+
paths:
11+
- 'docs/website/**'
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
17+
permissions:
18+
contents: read
19+
pages: write
20+
id-token: write
21+
22+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
23+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
24+
concurrency:
25+
group: "pages"
26+
cancel-in-progress: false
27+
28+
jobs:
29+
# Single deploy job since we're just deploying
30+
deploy:
31+
environment:
32+
name: github-pages
33+
url: ${{ steps.deployment.outputs.page_url }}
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v3
38+
- name: Setup Pages
39+
uses: actions/configure-pages@v3
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v2
42+
with:
43+
# Upload entire repository
44+
path: './docs/website'
45+
- name: Deploy to GitHub Pages
46+
id: deployment
47+
uses: actions/deploy-pages@v2

.github/workflows/unittest.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: unittest
2+
3+
on:
4+
push:
5+
branches: [ "stable" ]
6+
paths:
7+
- 'tests/test_MetaDetective.py'
8+
- 'src/MetaDetective/MetaDetective.py'
9+
pull_request:
10+
branches: [ "stable" ]
11+
paths:
12+
- 'tests/test_MetaDetective.py'
13+
- 'src/MetaDetective/MetaDetective.py'
14+
15+
jobs:
16+
unittest:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout Repository
21+
uses: actions/checkout@v2
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: 3.11
27+
28+
- name: Run Unit Tests
29+
run: python -m unittest discover tests -p '*test*.py'

0 commit comments

Comments
 (0)