Skip to content

Commit

Permalink
✨ fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Guerteltier committed Nov 15, 2024
1 parent 7871930 commit 078134f
Show file tree
Hide file tree
Showing 22 changed files with 100 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
>=0.1% and supports es6-module
Chrome 120
Firefox ESR
Firefox 115
Safari 15.6
8 changes: 6 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: 1.40.5
deno-version: 2.0.3
- name: Install required stuff
run: |
sudo apt-get update
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Run Black
run: black .
- name: Install dprint
run: curl -sSf https://dprint.dev/install.sh | sh -s 0.47.2
run: curl -sSf https://dprint.dev/install.sh | sh -s 0.47.5
- name: Run dprint
run: ~/.dprint/bin/dprint fmt --diff
- name: Install dart-sass
Expand Down Expand Up @@ -188,6 +188,8 @@ jobs:
with:
node-version: "18.20"
cache: pnpm
- name: Enable corepack
run: corepack enable
- name: Cache
uses: pat-s/always-upload-cache@v3
with:
Expand All @@ -214,6 +216,8 @@ jobs:
with:
node-version: "18.20"
cache: pnpm
- name: Enable corepack
run: corepack enable
- name: Install tsc
run: pnpm install
- name: Run tsc
Expand Down
3 changes: 1 addition & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
hoist-pattern[] =
public-hoist-pattern[] =
hoist = false

use-node-version = 18.20.4
auto-install-peers = false
Expand Down
6 changes: 3 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ ansi2html = "==1.*"
beautifulsoup4 = "==4.*"
# big = {version = "<2", extras = ["time"]}
blake3 = "<2"
certifi = "==2023.11.17"
certifi = "==2024.8.30"
# cryptography = "==42.*"
defity = "<2"
defusedxml = "<2"
dill = "<2"
ecs-logging = "==2.*"
elastic-apm = "==6.*"
elastic-enterprise-search = "<8.13"
elastic-enterprise-search = "<8.16"
elasticsearch = {version = "==8.15.*", extras = ["async"]}
emoji = "<3"
# frozendict = "==2.*"
Expand Down Expand Up @@ -85,7 +85,7 @@ pytest-tornasync = "<2"
# ruff = "<2"
setuptools = "==69.*"
time-machine = "==2.*"
trove-classifiers = "==2024.7.1"
trove-classifiers = "==2024.10.16"
twine = "==5.*"
types-beautifulsoup4 = "==4.*"
types-emoji = "==2.*"
Expand Down
20 changes: 10 additions & 10 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions an_website/backdoor_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,6 @@ def _run_and_print( # type: ignore[no-any-unimported]
)
traceback.print_exc()

# pylint: disable=redefined-variable-type

# patch the reader console to use our function
rc_execute = ReaderConsole.execute
ReaderConsole.execute = _run_and_print
Expand Down
7 changes: 6 additions & 1 deletion an_website/utils/base_request_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,12 @@ def set_default_headers(self) -> None:
self.set_header("Cross-Origin-Resource-Policy", "cross-origin")
self.set_header(
"Permissions-Policy",
"browsing-topics=(),identity-credentials-get=(),join-ad-interest-group=(),private-state-token-issuance=(),private-state-token-redemption=(),run-ad-auction=()",
"browsing-topics=(),"
"identity-credentials-get=(),"
"join-ad-interest-group=(),"
"private-state-token-issuance=(),"
"private-state-token-redemption=(),"
"run-ad-auction=()",
)
self.set_header("Referrer-Policy", "same-origin")
self.set_header(
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"esbuild": "https://deno.land/x/[email protected]/wasm.js",
"std/": "https://deno.land/[email protected]/"
},
"nodeModulesDir": false,
"nodeModulesDir": "none",
"lint": {
"include": [
"scripts/deno"
Expand Down
9 changes: 4 additions & 5 deletions dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@
"style/snow.css"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.91.6.wasm",
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/markdown-0.17.2.wasm",
"https://plugins.dprint.dev/toml-0.6.2.wasm",
"https://plugins.dprint.dev/typescript-0.93.1.wasm",
"https://plugins.dprint.dev/json-0.19.4.wasm",
"https://plugins.dprint.dev/markdown-0.17.8.wasm",
"https://plugins.dprint.dev/toml-0.6.3.wasm",
"https://plugins.dprint.dev/dockerfile-0.3.2.wasm"
// "https://plugins.dprint.dev/disrupted/css-0.2.2.wasm" (currently broken)
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"typescript-eslint": "^8.12.2",
"typescript-eslint-language-service": "^5.0.5"
},
"packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
"packageManager": "pnpm@10.0.0-alpha.0+sha512.856941ef22665d2f3e41c04e8d86ed757ef057fb2bc35011698bfa988ef5817cc1cdd28bb883e7f23f0568c75de5544d4750211d4276b9ba6d55369eb207a549",
"engines": {
"npm": "0",
"yarn": "0"
Expand Down
Loading

0 comments on commit 078134f

Please sign in to comment.