Skip to content

Commit c06721d

Browse files
committed
[MISC] Additional dependencies and test settings
1 parent 50a6650 commit c06721d

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Set the default language versions for the hooks
77
default_language_version:
88
python: python3 # Force all Python hooks to use Python 3
9-
node: 22.12.0 # Force all Node hooks to use Node 22.12.0
9+
node: 22.13.1 # Force all Node hooks to use Node LTS latest
1010

1111
# https://pre-commit.ci/
1212
ci:
@@ -135,8 +135,8 @@ repos:
135135
language: node
136136
# additional_dependencies:
137137
# # eslint itself needs to be here when using additional_dependencies.
138-
# - eslint@9.19.0 # https://github.com/eslint/eslint/releases/latest
139-
# - globals@15.14.0 # https://github.com/sindresorhus/globals/releases/latest
138+
# - eslint@9.21.0 # https://github.com/eslint/eslint/releases/latest
139+
# - globals@16.0.0 # https://github.com/sindresorhus/globals/releases/latest
140140

141141
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
142142
rev: 1a160bc61f659e8f9071d6ae8b5f5fce98ce7898 # frozen: v16.15.0
@@ -149,7 +149,7 @@ repos:
149149
- --formatter=compact
150150
additional_dependencies:
151151
# stylelint itself needs to be here when using additional_dependencies.
152-
- stylelint@16.14.1 # https://github.com/stylelint/stylelint/releases/latest
152+
- stylelint@16.15.0 # https://github.com/stylelint/stylelint/releases/latest
153153
- [email protected] # https://github.com/stylelint/stylelint-config-standard/releases/latest
154154

155155
- repo: https://github.com/pre-commit/pygrep-hooks

aa_intel_tool/templatetags/aa_intel_tool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ def aa_intel_tool_static(
8080
f'<script{js_type} src="{versioned_url}"{sri_string}></script>'
8181
)
8282

83-
return None
83+
return None # pragma: no cover

testauth/settings/base.py

+7
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,12 @@
119119

120120
# Django's language codes are different from some of the libraries we use,
121121
# so we need to map them.
122+
# When adding a new language, please remember to add it to the mapping
123+
# and add the language files to their respective directories under `allianceauth/static/allianceauth/libs/`.
122124
LANGUAGE_MAPPING = {
125+
# See https://github.com/DataTables/Plugins/tree/master/i18n for available languages
126+
# (We use the JSON files)
127+
# `allianceauth/static/allianceauth/libs/DataTables/Plugins/{version}/i18n/` for the files
123128
"DataTables": {
124129
"cs-cz": "cs",
125130
"de": "de-DE",
@@ -134,6 +139,8 @@
134139
"uk": "uk",
135140
"zh-hans": "zh-HANT",
136141
},
142+
# See https://github.com/moment/moment/tree/master/locale for available languages
143+
# `allianceauth/static/allianceauth/libs/moment.js/{version}/locale/` for the files
137144
"MomentJS": {
138145
"cs-cz": "cs",
139146
"de": "de",

testauth/settings/local.py

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
ESI_SSO_CLIENT_ID = "dummy"
9090
ESI_SSO_CLIENT_SECRET = "dummy"
9191
ESI_SSO_CALLBACK_URL = "http://localhost:8000"
92+
ESI_USER_CONTACT_EMAIL = "[email protected]"
9293

9394

9495
# ------------------------------------------------------------------------------------ #

0 commit comments

Comments
 (0)