-
-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Curlylint, add Black and fix ESLint (#385)
- Loading branch information
Showing
9 changed files
with
210 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[tool.black] | ||
line-length = 79 | ||
target-version = ["py38", "py39", "py39", "py310", "py311", "py312", "py313"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[flake8] | ||
count = True | ||
ignore = E123, W504 | ||
ignore = E123, E203, W504 | ||
max-doc-length = 79 | ||
max-complexity = 15 | ||
jobs = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Blacken scripts | ||
|
||
9e75d1834b30a486e6b8d0a011be43b587e8cd2d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
|
||
# Baseline hooks and config updated 2023-11-01 | ||
# Web hooks and config updated 2023-11-01 | ||
# Docs hooks and config updated 2024-01-29 | ||
# Python hooks and config updated 2024-01-29 | ||
# Baseline hooks and config updated 2024-09-25 | ||
# Web hooks and config updated 2024-09-25 | ||
# Docs hooks and config updated 2024-09-25 | ||
# Python hooks and config updated 2024-09-25 | ||
|
||
minimum_pre_commit_version: '2.10.0' | ||
|
||
|
@@ -102,7 +102,7 @@ repos: | |
|
||
# Lint and fix JavaScript | ||
- repo: https://github.com/eslint/eslint | ||
rev: v9.11.0 | ||
rev: v9.9.0 # Pin to fix dep conflict on install; see eslint/eslint#18956 | ||
hooks: | ||
- id: eslint | ||
name: Lint and fix JavaScript (ESLint) | ||
|
@@ -111,7 +111,7 @@ repos: | |
- '[email protected]' | ||
- '[email protected]' | ||
- '[email protected]' | ||
- '[email protected].5' | ||
- '[email protected].6' | ||
|
||
# Format JavaScript with Prettier | ||
- repo: https://github.com/rbubley/mirrors-prettier | ||
|
@@ -121,16 +121,6 @@ repos: | |
name: Format JavaScript (Prettier) | ||
types: [javascript] | ||
|
||
# Lint Jinja | ||
- repo: https://github.com/thibaudcolas/curlylint | ||
rev: v0.13.1 | ||
hooks: | ||
- id: curlylint | ||
name: Lint Jinja templates | ||
types: [html, jinja, twig] | ||
files: 'templates/' | ||
require_serial: true | ||
|
||
# Check JSON | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
|
@@ -154,6 +144,15 @@ repos: | |
name: Lint Markdown | ||
args: [--fix] | ||
|
||
# Format Python | ||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: '24.8.0' | ||
hooks: | ||
- id: black | ||
name: Format Python with Black | ||
args: ['--config', '.black.toml'] | ||
exclude: '\bworkshops\b' | ||
|
||
# Check Python | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
|
@@ -170,7 +169,7 @@ repos: | |
exclude: '\bworkshops\b' | ||
|
||
- repo: https://github.com/pycqa/pylint | ||
rev: v3.3.0 | ||
rev: v3.3.1 | ||
hooks: | ||
- id: pylint | ||
name: Lint Python with Pylint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.