summaryrefslogtreecommitdiffstatshomepage
path: root/src (unfollow)
Commit message (Collapse)AuthorLines
4 daysbackend/lint: Properly chain exceptionsWolfgang Müller-6/+6
This fixes flake8-bugbear's B904 [1]. [1] https://docs.astral.sh/ruff/rules/raise-without-from-inside-except/
4 daysbackend/plugins: Have anchira scraper use parse_dict from scraper utilsWolfgang Müller-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
4 daysbackend/lint: Stop using mutable objects as function argument defaultsWolfgang Müller-3/+12
See https://docs.astral.sh/ruff/rules/mutable-argument-default/
4 daysbackend/lint: Implement pyupgrade suggestionsWolfgang Müller-1/+1
4 daysbackend/lint: Implement flake8-simplify suggestionsWolfgang Müller-19/+17
4 daysbackend/scraper: Bind loop variables correctlyWolfgang Müller-2/+2
This was uncovered by bugbear, but did not seem to have tripped our test. Fix it anyway.
4 daysbackend/lint: Fix import formattingWolfgang Müller-1/+2
2024-03-25backend: Report Archive size as floatWolfgang Müller-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