Skip to content

Commit

Permalink
[MISC] Additional dependencies and test settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeufer committed Mar 3, 2025
1 parent 59118c2 commit d591041
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Set the default language versions for the hooks
default_language_version:
python: python3 # Force all Python hooks to use Python 3
node: 22.12.0 # Force all Node hooks to use Node 22.12.0
node: 22.13.1 # Force all Node hooks to use Node LTS latest

# https://pre-commit.ci/
ci:
Expand Down Expand Up @@ -135,8 +135,8 @@ repos:
language: node
# additional_dependencies:
# # eslint itself needs to be here when using additional_dependencies.
# - eslint@9.19.0 # https://github.com/eslint/eslint/releases/latest
# - globals@15.14.0 # https://github.com/sindresorhus/globals/releases/latest
# - eslint@9.21.0 # https://github.com/eslint/eslint/releases/latest
# - globals@16.0.0 # https://github.com/sindresorhus/globals/releases/latest

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

- repo: https://github.com/pre-commit/pygrep-hooks
Expand Down
7 changes: 7 additions & 0 deletions testauth/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@

# Django's language codes are different from some of the libraries we use,
# so we need to map them.
# When adding a new language, please remember to add it to the mapping
# and add the language files to their respective directories under `allianceauth/static/allianceauth/libs/`.
LANGUAGE_MAPPING = {
# See https://github.com/DataTables/Plugins/tree/master/i18n for available languages
# (We use the JSON files)
# `allianceauth/static/allianceauth/libs/DataTables/Plugins/{version}/i18n/` for the files
"DataTables": {
"cs-cz": "cs",
"de": "de-DE",
Expand All @@ -134,6 +139,8 @@
"uk": "uk",
"zh-hans": "zh-HANT",
},
# See https://github.com/moment/moment/tree/master/locale for available languages
# `allianceauth/static/allianceauth/libs/moment.js/{version}/locale/` for the files
"MomentJS": {
"cs-cz": "cs",
"de": "de",
Expand Down
1 change: 1 addition & 0 deletions testauth/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
ESI_SSO_CLIENT_ID = "dummy"
ESI_SSO_CLIENT_SECRET = "dummy"
ESI_SSO_CALLBACK_URL = "http://localhost:8000"
ESI_USER_CONTACT_EMAIL = "[email protected]"


# ------------------------------------------------------------------------------------ #
Expand Down

0 comments on commit d591041

Please sign in to comment.