Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/automated-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
- name: Install Tox and any other packages
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox tox-gh-actions
python -m pip install --upgrade tox

# Run Tox with the specified environment
- name: Run Tox
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
# - name: Install Tox and any other packages
# run: |
# python -m pip install --upgrade pip
# python -m pip install --upgrade tox tox-gh-actions
# python -m pip install --upgrade tox
#
# # Run Tox with the specified environment
# - name: Run Tox
Expand Down
23 changes: 12 additions & 11 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: 26.3.0 # Force all Node hooks to use this specific Node version
node: 26.13.1 # Force all Node hooks to use this specific Node version

# https://pre-commit.ci/
ci:
Expand All @@ -20,6 +20,7 @@ ci:
autoupdate_schedule: monthly
skip:
- eslint # Fails due to missing node environment in CI
- stylelint # Fails due to missing node environment in CI
submodules: false

# Globally exclude files
Expand Down Expand Up @@ -121,19 +122,19 @@ repos:
description: Ensure that files end with a newline.

- repo: https://github.com/pre-commit/mirrors-eslint
rev: 28bccd32cd8c825b0d0913b486f8ef0f56bfb08a # frozen: v10.14.0
rev: 73e3fe97594aeeb7151061de3b7792b5fc451e55 # frozen: v10.15.0
hooks:
- id: eslint
name: ESLint
description: Check for problems in JavaScript files.
language: node
additional_dependencies:
# eslint itself needs to be here when using additional_dependencies.
- eslint@10.14.0 # https://github.com/eslint/eslint/releases/latest
- eslint@10.15.0 # https://github.com/eslint/eslint/releases/latest
- globals@17.14.0 # https://github.com/sindresorhus/globals/releases/latest

- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: a43d64a23287d2dc2e02289bd3b2cb0da5eddfb1 # frozen: v17.16.0
rev: e48ba09830adcf6ad3351bde49abdf5b46b13c16 # frozen: v18.0.0
hooks:
- id: stylelint
name: Stylelint
Expand All @@ -143,8 +144,8 @@ repos:
- --formatter=compact
additional_dependencies:
# stylelint itself needs to be here when using additional_dependencies.
- stylelint@17.16.0 # https://github.com/stylelint/stylelint/releases/latest
- stylelint-config-standard@40.0.0 # https://github.com/stylelint/stylelint-config-standard/releases/latest
- stylelint@18.0.0 # https://github.com/stylelint/stylelint/releases/latest
- stylelint-config-standard@41.0.0 # https://github.com/stylelint/stylelint-config-standard/releases/latest

- repo: https://github.com/pre-commit/pygrep-hooks
rev: 3a6eb0fadf60b3cccfd80bad9dbb6fae7e47b316 # frozen: v1.10.0
Expand Down Expand Up @@ -222,7 +223,7 @@ repos:
description: Check for extraneous `# noqa` comments.

- repo: https://github.com/PyCQA/isort
rev: 5d9c96196def28a1819b6a755a669ec0a3add6aa # frozen: 10.0.0b2
rev: eb62da318ea543b82340f3d0a52bc0509c7e626e # frozen: 10.0.0b3
hooks:
- id: isort
name: Isort
Expand Down Expand Up @@ -268,22 +269,22 @@ repos:
- mdformat-shfmt==0.2.0 # Mdformat plugin to format shell code blocks » https://github.com/hukkin/mdformat-shfmt/tags

- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 183ade1283cfdec14cfb1cb0044871f13d5d7fe9 # frozen: 1.10.1
rev: 2116dba1a9820e51762d8ef27dfcef7b0a0499e6 # frozen: 1.10.3
hooks:
- id: tox-ini-fmt
name: tox.ini formatter
description: Format the tox.ini file.

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 50e0f3aee9dc5747a5f173f79a7417403c18dda6 # frozen: v2.30.3
rev: 44297c38117367c60ae9aeb270694de876ddcddf # frozen: v2.31.1
hooks:
- id: pyproject-fmt
name: pyproject.toml formatter
description: Format the pyproject.toml file.
args:
- --indent=4
additional_dependencies:
- tox==4.67.7 # https://github.com/tox-dev/tox/releases/latest
- tox==4.67.15 # https://github.com/tox-dev/tox/releases/latest

- repo: https://github.com/abravalheri/validate-pyproject
rev: 82d21874c3242e4dc27bb47641c996902ef64eef # frozen: v0.27
Expand All @@ -293,7 +294,7 @@ repos:
description: Validate the pyproject.toml file.

- repo: https://github.com/pylint-dev/pylint
rev: 233ae8862a1a94c1797ec664813e1aeef3142622 # frozen: v4.1.3
rev: ba1eab0aab630d2ea89835c2d7c662fa6f3a4adb # frozen: v4.1.4
hooks:
- id: pylint
name: Pylint
Expand Down
19 changes: 17 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,23 @@ export default defineConfig([
}],
// https://eslint.style/rules/indent-binary-ops
'@stylistic/indent-binary-ops': ['error', 4],
// https://eslint.style/rules/object-curly-spacing
'@stylistic/object-curly-spacing': ['error', 'never'],
// https://eslint.style/rules/list-style
'@stylistic/list-style': ['error', {
empty: 'never',
multiLine: {
minItems: 1
},
singleLine: {
spacing: 'never'
},
overrides: {
'{}': {
singleLine: {
spacing: 'never'
}
}
}
}],
// https://eslint.style/rules/quotes
'@stylistic/quotes': ['error', 'single', {
allowTemplateLiterals: 'avoidEscape',
Expand Down
Loading
Loading