summaryrefslogtreecommitdiffstatshomepage
path: root/src (follow)
Commit message (Collapse)AuthorAgeLines
* backend/scraper: Have collect() ignore None resultsWolfgang Müller4 days-3/+6
| | | | | | If a parser function returned None we yield it regardless, even though it won't have any impact further down the line. Instead clean up the collect() stream as early as possible.
* backend/tests: Add test for open_archive_fileWolfgang Müller4 days-1/+1
|
* backend/plugins: Use "no cover" pragma for consistencyWolfgang Müller4 days-1/+1
|
* backend/plugins: Fix MangaDex scraper title formattingWolfgang Müller4 days-1/+1
|
* backend/scraper: Add parser methods for LanguageWolfgang Müller4 days-0/+32
| | | | | | We can expect a number of scraper sources to either give languages as ISO 639-3 or as their English name, so it makes sense to implement a simple parser method on our side.
* backend/lint: Ignore B027 in api/inputs.pyWolfgang Müller4 days-1/+1
| | | | | | | Even though our base class here is abstract, this method is not, so we can ignore B027 [1]. [1] https://docs.astral.sh/ruff/rules/empty-method-without-abstract-decorator/
* backend/lint: Properly chain exceptionsWolfgang Müller4 days-6/+6
| | | | | | This fixes flake8-bugbear's B904 [1]. [1] https://docs.astral.sh/ruff/rules/raise-without-from-inside-except/
* backend/plugins: Have anchira scraper use parse_dict from scraper utilsWolfgang Müller4 days-11/+2
| | | | | | This cuts down on code duplication and also fixes B023 [1]. [1] https://docs.astral.sh/ruff/rules/function-uses-loop-variable/#function-uses-loop-variable-b023
* backend/lint: Stop using mutable objects as function argument defaultsWolfgang Müller4 days-3/+12
| | | | See https://docs.astral.sh/ruff/rules/mutable-argument-default/
* backend/lint: Implement pyupgrade suggestionsWolfgang Müller4 days-1/+1
|
* backend/lint: Implement flake8-simplify suggestionsWolfgang Müller4 days-19/+17
|
* backend/scraper: Bind loop variables correctlyWolfgang Müller4 days-2/+2
| | | | | This was uncovered by bugbear, but did not seem to have tripped our test. Fix it anyway.
* backend/lint: Fix import formattingWolfgang Müller4 days-1/+2
|
* backend: Report Archive size as floatWolfgang Müller2024-03-25-1/+1
| | | | | | | | | GraphQL integers are 32-bit as per spec [1] [2]. Implementations may therefore error on large numbers. Since an archive's size can reasonably exceed this value, make sure to report it as a float instead. [1] https://graphql.org/learn/schema/ [2] https://github.com/graphql/graphql-js/issues/292#issuecomment-186702763
* Initial commit0.1.0Wolfgang Müller2024-03-05-0/+4821