Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
runs-on: windows-latest
strategy:
fail-fast: false
# Ruff is version and platform sensible
# Ruff is version sensible
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
fail-fast: false
# Only the Python version we plan on shipping matters.
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.11"]
steps:
- name: Checkout ${{ github.repository }}/${{ github.ref }}
uses: actions/checkout@v3
Expand Down
20 changes: 17 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@
},
"[python]": {
// Ruff is not yet a formatter: https://github.com/charliermarsh/ruff/issues/1904
// Cannot use autotpep8 until https://github.com/microsoft/vscode-autopep8/issues/32 is fixed
"editor.defaultFormatter": "ms-python.python",
"editor.defaultFormatter": "ms-python.autopep8",
"editor.tabSize": 4,
"editor.rulers": [
72, // PEP8-17 docstrings
Expand All @@ -73,7 +72,6 @@
// Important to follow the config in pyrightconfig.json
"python.analysis.useLibraryCodeForTypes": false,
"python.analysis.diagnosticMode": "workspace",
"python.formatting.provider": "autopep8",
"python.linting.enabled": true,
"ruff.importStrategy": "fromEnvironment",
// Use the Ruff extension instead
Expand All @@ -84,6 +82,8 @@
"python.linting.pycodestyleEnabled": false,
"python.linting.pylamaEnabled": false,
"python.linting.pylintEnabled": false,
// Use the autopep8 extension instead
"python.formatting.provider": "none",
// Use Pyright/Pylance instead
"python.linting.mypyEnabled": false,
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationForFirstPipeline",
Expand All @@ -96,4 +96,18 @@
"terminal.integrated.defaultProfile.windows": "PowerShell",
"xml.codeLens.enabled": true,
"xml.format.spaceBeforeEmptyCloseTag": false,
"xml.format.preserveSpace": [
// Default
"xsl:text",
"xsl:comment",
"xsl:processing-instruction",
"literallayout",
"programlisting",
"screen",
"synopsis",
"pre",
"xd:pre",
// Custom
"string"
]
}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Refer to the [build instructions](build%20instructions.md) if you'd like to buil
- Perceptual Hash: An explanation on pHash comparison can be found [here](http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html). It is highly recommended to NOT use pHash if you use masked images, or it'll be very inaccurate.

#### Capture Method
<!-- Keep all descriptions in sync with in-code descriptions in src/capture_method/*CaptureMethod.py-->

- **Windows Graphics Capture** (fast, most compatible, capped at 60fps)
Only available in Windows 10.0.17134 and up.
Expand All @@ -94,7 +95,8 @@ Refer to the [build instructions](build%20instructions.md) if you'd like to buil

#### Capture Device

Select the Video Capture Device that you wanna use if selecting the `Video Capture Device` Capture Method. <!-- Will show `[occupied]` if a device is detected but can't be started. (currently disabled because poking at devices to turn turn them off freezes some like the GV-USB2)-->
Select the Video Capture Device that you wanna use if selecting the `Video Capture Device` Capture Method.
<!-- Will show `[occupied]` if a device is detected but can't be started. (feature currently disabled because poking at devices to turn turn them off freezes some like the GV-USB2)-->

#### Show Live Similarity

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ max-branches = 15
# https://github.com/hhatto/autopep8#more-advanced-usage
[tool.autopep8]
max_line_length = 120
recursive = true
aggressive = 3
ignore = [
"E124", # Closing bracket may not match multi-line method invocation style (enforced by add-trailing-comma)
Expand Down
6 changes: 2 additions & 4 deletions res/about.ui
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
</property>
<property name="windowIcon">
<iconset resource="resources.qrc">
<normaloff>:/resources/icon.ico</normaloff>
:/resources/icon.ico
</iconset>
<normaloff>:/resources/icon.ico</normaloff>:/resources/icon.ico</iconset>
</property>
<widget class="QPushButton" name="ok_button">
<property name="geometry">
Expand Down Expand Up @@ -115,7 +113,7 @@ Thank you!</string>
<widget class="QLabel" name="icon_label">
<property name="geometry">
<rect>
<x>181</x>
<x>190</x>
<y>17</y>
<width>64</width>
<height>64</height>
Expand Down
Loading