mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
last bits of fixes
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -5,6 +5,8 @@ on:
|
||||
tags:
|
||||
- "[0-9]+.[0-9]+.[0-9]+*"
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
2
.github/workflows/pytest.yml
vendored
2
.github/workflows/pytest.yml
vendored
@@ -17,6 +17,8 @@ on:
|
||||
- "examples/*"
|
||||
- "frontend/**"
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
pytest:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
rules:
|
||||
quoted-strings:
|
||||
required: only-when-needed
|
||||
extra-allowed: ["{|}"]
|
||||
required: false
|
||||
key-duplicates: {}
|
||||
octal-values:
|
||||
forbid-implicit-octal: true
|
||||
|
||||
@@ -25,7 +25,7 @@ lint:
|
||||
- git-diff-check
|
||||
# - hadolint@2.12.0
|
||||
- isort@5.13.2
|
||||
- markdownlint@0.40.0
|
||||
# - markdownlint@0.40.0
|
||||
# - mypy@1.10.0
|
||||
- osv-scanner@1.7.3
|
||||
- oxipng@9.1.1
|
||||
@@ -38,6 +38,11 @@ lint:
|
||||
- trivy@0.51.2
|
||||
- trufflehog@3.76.3
|
||||
- yamllint@1.35.1
|
||||
ignore:
|
||||
- linters: [ALL]
|
||||
paths:
|
||||
- src/__generated__/**
|
||||
- docker/Dockerfile
|
||||
actions:
|
||||
enabled:
|
||||
- trunk-announce
|
||||
|
||||
22
backend/config/tests/fixtures/config/config.yml
vendored
22
backend/config/tests/fixtures/config/config.yml
vendored
@@ -3,29 +3,29 @@
|
||||
|
||||
exclude:
|
||||
platforms:
|
||||
- romm
|
||||
- "romm"
|
||||
roms:
|
||||
single_file:
|
||||
names:
|
||||
- info.txt
|
||||
- "info.txt"
|
||||
extensions:
|
||||
- xml
|
||||
- "xml"
|
||||
|
||||
multi_file:
|
||||
names:
|
||||
- my_multi_file_game
|
||||
- DLC
|
||||
- "my_multi_file_game"
|
||||
- "DLC"
|
||||
parts:
|
||||
names:
|
||||
- data.xml
|
||||
- "data.xml"
|
||||
extensions:
|
||||
- txt
|
||||
- "txt"
|
||||
system:
|
||||
platforms:
|
||||
gc: ngc
|
||||
gc: "ngc"
|
||||
versions:
|
||||
naomi: arcade
|
||||
naomi: "arcade"
|
||||
|
||||
filesystem:
|
||||
roms_folder: ROMS
|
||||
firmware_folder: BIOS
|
||||
roms_folder: "ROMS"
|
||||
firmware_folder: "BIOS"
|
||||
|
||||
@@ -134,8 +134,8 @@ async def token(form_data: Annotated[OAuth2RequestForm, Depends()]) -> TokenResp
|
||||
|
||||
@router.post("/login")
|
||||
def login(
|
||||
request: Request, credentials=Depends(HTTPBasic())
|
||||
) -> MessageResponse: # nosec B008
|
||||
request: Request, credentials=Depends(HTTPBasic()) # noqa
|
||||
) -> MessageResponse:
|
||||
"""Session login endpoint
|
||||
|
||||
Args:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
exclude:
|
||||
# Exclude platforms to be scanned
|
||||
platforms:
|
||||
- romm
|
||||
- "romm"
|
||||
|
||||
# Exclude roms or parts of roms to be scanned
|
||||
roms:
|
||||
@@ -10,11 +10,11 @@ exclude:
|
||||
single_file:
|
||||
# Exclude all files with certain extensions to be scanned
|
||||
extensions:
|
||||
- xml
|
||||
- "xml"
|
||||
# Exclude matched file names to be scanned
|
||||
names:
|
||||
- info.txt
|
||||
- ._* # Supports unix filename pattern matching
|
||||
- "info.txt"
|
||||
- "._*" # Supports unix filename pattern matching
|
||||
- "*.nfo" # Can also exclude files by extension
|
||||
|
||||
## Multi files games section
|
||||
@@ -22,30 +22,30 @@ exclude:
|
||||
multi_file:
|
||||
# Exclude matched 'folder' names to be scanned (RomM identifies folders as multi file games)
|
||||
names:
|
||||
- my_multi_file_game
|
||||
- DLC
|
||||
- "my_multi_file_game"
|
||||
- "DLC"
|
||||
# Exclude files within sub-folders.
|
||||
parts:
|
||||
# Exclude matched file names to be scanned from multi file roms
|
||||
# Keep in mind that RomM doesn't scan folders inside multi files games,
|
||||
# so there is no need to exclude folders from inside of multi files games.
|
||||
names:
|
||||
- data.xml
|
||||
- ._* # Supports unix filename pattern matching
|
||||
- "data.xml"
|
||||
- "._*" # Supports unix filename pattern matching
|
||||
# Exclude all files with certain extensions to be scanned from multi file roms
|
||||
extensions:
|
||||
- txt
|
||||
- "txt"
|
||||
|
||||
system:
|
||||
# Asociate different platform names to your current file system platform names
|
||||
platforms:
|
||||
# [your custom platform folder name]: [RomM platform name]
|
||||
gc: ngc # In this example if you have a 'gc' folder, RomM will treat it like the 'ngc' folder
|
||||
psx: ps
|
||||
gc: "ngc" # In this example if you have a 'gc' folder, RomM will treat it like the 'ngc' folder
|
||||
psx: "ps"
|
||||
# Asociate one platform to it's main version
|
||||
versions:
|
||||
naomi: arcade
|
||||
naomi: "arcade"
|
||||
|
||||
filesystem:
|
||||
# The folder name where your roms are located
|
||||
roms_folder: roms # For example if your folder structure is /home/user/library/roms_folder
|
||||
roms_folder: "roms" # For example if your folder structure is /home/user/library/roms_folder
|
||||
|
||||
10
poetry.lock
generated
10
poetry.lock
generated
@@ -1729,13 +1729,13 @@ ocsp = ["cryptography (>=36.0.1)", "pyopenssl (==20.0.1)", "requests (>=2.26.0)"
|
||||
|
||||
[[package]]
|
||||
name = "requests"
|
||||
version = "2.31.0"
|
||||
version = "2.32.2"
|
||||
description = "Python HTTP for Humans."
|
||||
optional = false
|
||||
python-versions = ">=3.7"
|
||||
python-versions = ">=3.8"
|
||||
files = [
|
||||
{file = "requests-2.31.0-py3-none-any.whl", hash = "sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f"},
|
||||
{file = "requests-2.31.0.tar.gz", hash = "sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1"},
|
||||
{file = "requests-2.32.2-py3-none-any.whl", hash = "sha256:fc06670dd0ed212426dfeb94fc1b983d917c4f9847c863f313c9dfaaffb7c23c"},
|
||||
{file = "requests-2.32.2.tar.gz", hash = "sha256:dd951ff5ecf3e3b3aa26b40703ba77495dab41da839ae72ef3c8e5d8e2433289"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
@@ -2489,4 +2489,4 @@ multidict = ">=4.0"
|
||||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = "^3.11"
|
||||
content-hash = "54f6d99a45e4d81716daf144fa59a6e5c269519c9939f4c76fab4b28f15e1fc7"
|
||||
content-hash = "323b1951650e0387f1bcdd50dc86745576cc90651e9ab43bd29431aacc59c667"
|
||||
|
||||
@@ -12,7 +12,7 @@ authors = [
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.11"
|
||||
requests = "2.31.0"
|
||||
requests = "^2.32.2"
|
||||
fastapi = "0.110.0"
|
||||
uvicorn = "0.29.0"
|
||||
gunicorn = "22.0.0"
|
||||
|
||||
Reference in New Issue
Block a user