Skip to content

Commit

Permalink
✨ fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Guerteltier committed Mar 1, 2025
1 parent b296fb4 commit 80a5082
Show file tree
Hide file tree
Showing 15 changed files with 495 additions and 467 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ jobs:
fail-fast: false
matrix:
python-version:
- 3.12 # EL10
- 3.12.7 # EL10
- 3.13
- 3.14 # π
- 3.14 # π
steps:
- name: Setup Python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -81,9 +81,9 @@ jobs:
fail-fast: false
matrix:
python-version:
- 3.12 # EL10
- 3.12.7 # EL10
- 3.13
- 3.14 # π
- 3.14 # π
#license:
#- basic
#- trial
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ jobs:
fail-fast: false
matrix:
python-version:
- 3.12 # EL10
- 3.12.7 # EL10
- 3.13
- 3.14 # π
- 3.14 # π
steps:
- name: Setup Python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -90,9 +90,9 @@ jobs:
fail-fast: false
matrix:
python-version:
- 3.12 # EL10
- 3.12.7 # EL10
- 3.13
- 3.14 # π
- 3.14 # π
#license:
#- basic
#- trial
Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
hoist = false

auto-install-peers = false
node-version = 18.20.6
node-version = 18.20.7
engine-strict = true

@jsr:registry = https://npm.jsr.io
1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ extension-pkg-allow-list=
lxml,
orjson,
pycurl,
zstd,
recursive=yes
py-version=3.12
# temporary bugfix
Expand Down
596 changes: 306 additions & 290 deletions Pipfile.lock

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions an_website/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

LOGGER: Final = logging.getLogger(__name__)

# pylint: disable=consider-alternative-union-syntax
# pylint: disable-next=consider-alternative-union-syntax
type Handler = Union[
tuple[str, type[RequestHandler]],
tuple[str, type[RequestHandler], dict[str, Any]],
Expand Down Expand Up @@ -256,7 +256,8 @@ def anonymize_ip[ # noqa: D103


def apm_anonymization_processor(
client: elasticapm.Client, # pylint: disable=unused-argument
# pylint: disable-next=unused-argument
client: elasticapm.Client,
event: dict[str, Any],
) -> dict[str, Any]:
"""Anonymize an APM event."""
Expand Down Expand Up @@ -383,7 +384,8 @@ async def geoip(
if not ip:
return None

cache = caches.get(ip, {}) # pylint: disable=redefined-outer-name
# pylint: disable-next=redefined-outer-name
cache = caches.get(ip, {})
if database not in cache:
if not elasticsearch:
if allow_fallback and database in {
Expand Down Expand Up @@ -647,7 +649,8 @@ def parse_openmoji_arg(value: str, default: OpenMojiValue) -> OpenMojiValue:
return default


async def ratelimit( # pylint: disable=too-many-arguments
# pylint: disable-next=too-many-arguments
async def ratelimit(
redis: Redis[str],
redis_prefix: str,
remote_ip: str,
Expand Down Expand Up @@ -808,7 +811,8 @@ def strangle(string: str) -> float:


def time_function[ # noqa: D103
T, **P # pylint: disable=invalid-name
# pylint: disable-next=invalid-name
T, **P # fmt: skip
](function: Callable[P, T], *args: P.args, **kwargs: P.kwargs) -> tuple[
T, float
]:
Expand Down
68 changes: 34 additions & 34 deletions bun.lock

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"@types/eslint__eslintrc": "^2.1.2",
"@types/eslint__js": "^8.42.3",
"@types/node": "^18.19.76",
"@typescript-eslint/eslint-plugin": "^8.24.0",
"@typescript-eslint/parser": "^8.24.0",
"@typescript-eslint/eslint-plugin": "^8.24.1",
"@typescript-eslint/parser": "^8.24.1",
"browserslist": "4.24.4",
"browserslist-to-esbuild": "^2.1.1",
"caniuse-lite": "1.0.30001690",
Expand All @@ -30,20 +30,20 @@
"eslint-plugin-compat": "^6.0.2",
"eslint-plugin-deprecation": "^3.0.0",
"gzip-size": "^7.0.0",
"postcss": "^8.5.2",
"postcss": "^8.5.3",
"prettier": "^3.5.1",
"stylelint": "^16.14.1",
"stylelint-config-idiomatic-order": "^10.0.0",
"stylelint-config-standard-scss": "^14.0.0",
"stylelint-no-unsupported-browser-features": "^8.0.4",
"stylelint-prettier": "^5.0.3",
"ts-node": "https://asozial.beer/ts-node-241116.tgz",
"type-fest": "^4.34.1",
"type-fest": "^4.35.0",
"typescript": "5.8.0-beta",
"typescript-eslint": "^8.24.0",
"typescript-eslint": "^8.24.1",
"typescript-eslint-language-service": "^5.0.5"
},
"packageManager": "[email protected].0+sha512.6b849d0787d97f8f4e1f03a9b8ff8f038e79e153d6f11ae539ae7c435ff9e796df6a862c991502695c7f9e8fac8aeafc1ac5a8dab47e36148d183832d886dd52",
"packageManager": "[email protected].1+sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af",
"engines": {
"npm": "0",
"yarn": "0"
Expand Down
14 changes: 7 additions & 7 deletions pip-constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ flake8-scream==0.1.0
flake8-simplify==0.21.0
html5lib==1.1
id==1.5.0
identify==2.6.7
identify==2.6.8
idna==3.10
iniconfig==2.0.0
isort==6.0.0
isort==6.0.1
jaraco.classes==3.4.0
jaraco.context==6.0.1
jaraco.functools==4.1.0
jeepney==0.8.0
jeepney==0.9.0
keyring==25.6.0
markdown-it-py==3.0.0
mccabe==0.7.0
mdurl==0.1.2
more-itertools==10.6.0
mypy@ git+https://github.com/python/mypy.git@a49d99139ace6627143fd8a913f04252c0f29e1e
mypy-extensions==1.0.0
nh3==0.2.20
nh3==0.2.21
nodeenv==1.9.1
numpy==1.26.4
packaging==24.2
Expand Down Expand Up @@ -106,7 +106,7 @@ webencodings==0.5.1
accept-types==0.4.1
aiodns==3.2.0
aiohappyeyeballs==2.4.6
aiohttp==3.11.12
aiohttp==3.11.13
aiosignal==1.3.2
ansi2html==1.9.2
beautifulsoup4==4.13.3
Expand Down Expand Up @@ -136,7 +136,7 @@ openmoji-dist==15.1.0
orjson==3.10.15
pillow==11.1.0
pillow-jxl-plugin==1.3.2
propcache==0.2.1
propcache==0.3.0
pycares==4.5.0
pycryptodome==3.21.0
pycurl==7.45.2
Expand All @@ -148,7 +148,7 @@ pytz==2025.1
rapidfuzz==3.12.1
redis==5.2.1
regex==2024.11.6
setproctitle==1.3.4
setproctitle==1.3.5
soupsieve==2.6
typed-stream==0.150.1
tzdata==2025.1
Expand Down
14 changes: 7 additions & 7 deletions pip-dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ flake8-scream==0.1.0; python_full_version >= '3.6.1'
flake8-simplify==0.21.0; python_full_version >= '3.6.1'
html5lib==1.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
id==1.5.0; python_version >= '3.8'
identify==2.6.7; python_version >= '3.9'
identify==2.6.8; python_version >= '3.9'
idna==3.10; python_version >= '3.6'
iniconfig==2.0.0; python_version >= '3.7'
isort==6.0.0; python_full_version >= '3.9.0'
isort==6.0.1; python_full_version >= '3.9.0'
jaraco.classes==3.4.0; python_version >= '3.8'
jaraco.context==6.0.1; python_version >= '3.8'
jaraco.functools==4.1.0; python_version >= '3.8'
jeepney==0.8.0; sys_platform == 'linux'
jeepney==0.9.0; sys_platform == 'linux'
keyring==25.6.0; platform_machine != 'ppc64le' and platform_machine != 's390x'
markdown-it-py==3.0.0; python_version >= '3.8'
mccabe==0.7.0; python_version >= '3.6'
mdurl==0.1.2; python_version >= '3.7'
more-itertools==10.6.0; python_version >= '3.9'
mypy@ git+https://github.com/python/mypy.git@a49d99139ace6627143fd8a913f04252c0f29e1e
mypy-extensions==1.0.0; python_version >= '3.5'
nh3==0.2.20; python_version >= '3.8'
nh3==0.2.21; python_version >= '3.8'
nodeenv==1.9.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6'
numpy==1.26.4; python_version >= '3.9'
packaging==24.2; python_version >= '3.8'
Expand Down Expand Up @@ -106,7 +106,7 @@ webencodings==0.5.1
accept-types==0.4.1
aiodns==3.2.0
aiohappyeyeballs==2.4.6; python_version >= '3.9'
aiohttp[speedups]==3.11.12; python_version >= '3.9'
aiohttp[speedups]==3.11.13; python_version >= '3.9'
aiosignal==1.3.2; python_version >= '3.9'
ansi2html==1.9.2; python_version >= '3.7'
beautifulsoup4==4.13.3; python_full_version >= '3.7.0'
Expand Down Expand Up @@ -136,7 +136,7 @@ openmoji-dist==15.1.0
orjson==3.10.15; python_version >= '3.8'
pillow==11.1.0; python_version >= '3.9'
pillow-jxl-plugin==1.3.2; python_version >= '3.9'
propcache==0.2.1; python_version >= '3.9'
propcache==0.3.0; python_version >= '3.9'
pycares==4.5.0; python_version >= '3.9'
pycryptodome==3.21.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
pycurl==7.45.2; python_version >= '3.5'
Expand All @@ -148,7 +148,7 @@ pytz==2025.1
rapidfuzz==3.12.1; python_version >= '3.9'
redis[hiredis]==5.2.1; python_version >= '3.8'
regex==2024.11.6; python_version >= '3.8'
setproctitle==1.3.4; python_version >= '3.8'
setproctitle==1.3.5; python_version >= '3.8'
soupsieve==2.6; python_version >= '3.8'
typed-stream==0.150.1; python_version >= '3.10'
tzdata==2025.1; python_version >= '2'
Expand Down
6 changes: 3 additions & 3 deletions pip-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
accept-types==0.4.1
aiodns==3.2.0
aiohappyeyeballs==2.4.6; python_version >= '3.9'
aiohttp[speedups]==3.11.12; python_version >= '3.9'
aiohttp[speedups]==3.11.13; python_version >= '3.9'
aiosignal==1.3.2; python_version >= '3.9'
ansi2html==1.9.2; python_version >= '3.7'
attrs==25.1.0; python_version >= '3.8'
Expand Down Expand Up @@ -37,7 +37,7 @@ orjson==3.10.15; python_version >= '3.8'
packaging==24.2; python_version >= '3.8'
pillow==11.1.0; python_version >= '3.9'
pillow-jxl-plugin==1.3.2; python_version >= '3.9'
propcache==0.2.1; python_version >= '3.9'
propcache==0.3.0; python_version >= '3.9'
pycares==4.5.0; python_version >= '3.9'
pycparser==2.22; python_version >= '3.8'
pycryptodome==3.21.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
Expand All @@ -52,7 +52,7 @@ pyyaml==6.0.2; python_version >= '3.8'
rapidfuzz==3.12.1; python_version >= '3.9'
redis[hiredis]==5.2.1; python_version >= '3.8'
regex==2024.11.6; python_version >= '3.8'
setproctitle==1.3.4; python_version >= '3.8'
setproctitle==1.3.5; python_version >= '3.8'
six==1.17.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
soupsieve==2.6; python_version >= '3.8'
tornado==6.4.2; python_version >= '3.8'
Expand Down
Loading

0 comments on commit 80a5082

Please sign in to comment.