Skip to content

Commit 26ce251

Browse files
authored
Decluttarr V2 | Dev now holding latest code base
Decluttarr V2 | Dev now holding latest code base
2 parents 2041337 + 82306a3 commit 26ce251

File tree

86 files changed

+5595
-3143
lines changed

Some content is hidden

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

86 files changed

+5595
-3143
lines changed

.dockerignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
__pycache__/
22
.pytest_cache/
3-
config/config.conf
43
test*.py
54
ToDo
65
.vscode
7-
snip*.py
6+
.notebooks
7+
logs/*

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
__pycache__/
22
.pytest_cache/
33
config/config.conf
4+
config/config.yaml
45
ToDo
56
snip*.py
67
venv
7-
testMagnets.txt
8+
.venv
9+
temp
10+
.notebooks
11+
**/old/
12+
logs/*
13+
.idea/*

.pre-commit-config.yaml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,34 @@
11
repos:
2-
- repo: local
3-
hooks:
4-
- id: black
5-
name: black
6-
entry: venv/bin/black
7-
language: system
8-
types: [python]
2+
- repo: local
3+
hooks:
4+
- id: black
5+
name: black
6+
entry: |
7+
bash -c 'BIN=".venv/bin/black";
8+
[ ! -f "$BIN" ] && BIN=".venv/Scripts/black";
9+
$BIN .'
10+
language: system
911

12+
- id: autoflake
13+
name: autoflake
14+
entry: |
15+
bash -c 'BIN=".venv/bin/autoflake";
16+
[ ! -f "$BIN" ] && BIN=".venv/Scripts/autoflake";
17+
$BIN --in-place --remove-all-unused-imports --remove-unused-variables --recursive --exclude .venv .'
18+
language: system
1019

20+
- id: isort
21+
name: isort
22+
entry: |
23+
bash -c 'BIN=".venv/bin/isort";
24+
[ ! -f "$BIN" ] && BIN=".venv/Scripts/isort";
25+
$BIN -rc .'
26+
language: system
27+
28+
- id: pylint
29+
name: pylint
30+
entry: |
31+
bash -c 'BIN=".venv/bin/pylint";
32+
[ ! -f "$BIN" ] && BIN=".venv/Scripts/pylint";
33+
$BIN .'
34+
language: system

.pytest.ini

Lines changed: 0 additions & 8 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"ms-python.python",
4+
"ms-python.pylint",
5+
"ms-python.black-formatter",
6+
"ms-python.isort",
7+
"ms-toolsai.jupyter"
8+
]
9+
}

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Python: Main from Root",
6+
"type": "python",
7+
"request": "launch",
8+
"program": "${workspaceFolder}/main.py",
9+
"cwd": "${workspaceFolder}",
10+
"env": {
11+
"PYTHONPATH": "${workspaceFolder}"
12+
}
13+
}
14+
]
15+
}

.vscode/settings.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
{
22
"editor.formatOnSave": true,
3-
"editor.defaultFormatter": "ms-python.black-formatter"
3+
"editor.defaultFormatter": "ms-python.black-formatter",
4+
"python.terminal.activateEnvironment": true,
5+
"python.testing.pytestArgs": [
6+
"tests"
7+
],
8+
"python.testing.unittestEnabled": false,
9+
"python.testing.pytestEnabled": true
410
}

CONTRIBUTING.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Table of contents
44
- [Overview](#overview)
5-
- [Feature Requests](#feature--requests)
6-
- [Bug Reports](#bug--reports)
7-
- [Code Contributions](#code--contributions)
5+
- [Feature Requests](#feature-requests)
6+
- [Bug Reports](#bug-reports)
7+
- [Code Contributions](#code-contributions)
88

99
## Overview
1010
Thank you for wanting to contribute to this project.
@@ -27,9 +27,9 @@ Please go follow these steps to submit a bug:
2727
- Create meaningful logs by:
2828
1) Switch decluttarr to debug mode (setting LOG_LEVEL: DEBUG)
2929
2) Turn off all remove functions but one where you expect a removal (example: REMOVE_STALLED: True and the rest on False)
30-
3) Let it run until the supposed remove should be trigged
30+
3) Let it run until the supposed remove should be triggered
3131
4) Paste the full logs to a pastebin
32-
5) Share your settings (docker-compose or config.conf)
32+
5) Share your settings (docker-compose or config.yaml)
3333
6) Optional: If helpful, share screenshots showing the problem (from your arr-app or qbit)
3434
7) Be responsive and provide more details if asked for them, and help testing the bug fix
3535

@@ -40,23 +40,23 @@ Code contributions are very welcome - thanks for helping improve this app!
4040
3) Only commit code that you have written yourself and is not owned by anybody else
4141
4) Create a PR against the "dev" branch
4242
5) Be responsive to code review
43-
5) Once the code is reviewed and OK, it will be merged to dev branch, which will create the "dev"-docker image
44-
6) Help testing that the dev image works
45-
7= Finally, we will then commit the change to the main branch, which will create the "latest"-docker image
43+
6) Once the code is reviewed and OK, it will be merged to dev branch, which will create the "dev"-docker image
44+
7) Help testing that the dev image works
45+
8) Finally, we will then commit the change to the main branch, which will create the "latest"-docker image
4646

4747
You do not need to know about how to create docker images to contribute here.
4848
To get started:
4949
1) Create a fork of decluttarr
5050
2) Clone the git repository from the dev branch to your local machine `git clone -b dev https://github.com/yourName/decluttarr`
51-
2) Create a virtual python environment (`python3 -m venv venv`)
52-
3) Activate the virtual environment (`source venv/bin/activate`)
53-
4) Install python libraries (`pip install -r docker/requirements.txt`)
54-
5) Adjust the config/config.conf to your needs
55-
6) Adjust the code in the files as needed
56-
7) Run the script (`python3 main.py`)
57-
8) Push your changes to your own git repo and use a descriptive name for the branch name (e.g. add-feature-to-xyz; bugfix-xyz)
58-
9) Test the dev-image it creates automatically
59-
10) Create the PR from your repo to ManiMatter/decluttarr (dev branch)
60-
11) Make sure all checks pass
61-
12) Squash your commits
62-
13) Test that the docker image works that was created when you pushed to your fork
51+
3) Create a virtual python environment (`python3 -m venv venv`)
52+
4) Activate the virtual environment (`source venv/bin/activate`)
53+
5) Install python libraries (`pip install -r docker/requirements.txt`)
54+
6) Adjust the config/config.conf to your needs
55+
7) Adjust the code in the files as needed
56+
8) Run the script (`python3 main.py`)
57+
9) Push your changes to your own git repo and use a descriptive name for the branch name (e.g. add-feature-to-xyz; bugfix-xyz)
58+
10) Test the dev-image it creates automatically
59+
11) Create the PR from your repo to ManiMatter/decluttarr (dev branch)
60+
12) Make sure all checks pass
61+
13) Squash your commits
62+
14) Test that the docker image works that was created when you pushed to your fork

0 commit comments

Comments
 (0)