Skip to content

Commit

Permalink
check-yaml ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkalmbach committed Nov 2, 2023
1 parent d0b3931 commit 3ec1faf
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
run: |
$CONDA/bin/conda install -c lsstts ts-pre-commit-config -y
$CONDA/bin/conda install -c conda-forge pre-commit -y
$CONDA/bin/generate_pre_commit_conf --skip-pre-commit-install
- name: Run pre commit checks
run: $CONDA/bin/pre-commit run --all
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ config.log
*Lib.py

# Pre-commit configs
.pre-commit-config.yaml
.flake8
.isort.cfg
.mypy.ini
Expand All @@ -37,3 +36,4 @@ pytest_session.txt

# MacOS metadata
.DS_Store
.clang-format
38 changes: 38 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
repos:
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.6
hooks:
- id: clang-format

- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8

- repo: https://github.com/lsst-ts/pre-commit-xmllint
rev: v1.0.0
hooks:
- id: format-xmllint

- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
exclude: conda/meta.yaml|^policy/config/[input|image|output|stamp|opd]
- id: check-xml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.287
hooks:
- id: ruff
4 changes: 1 addition & 3 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
ignore = [
"E203", "E226", "E228", "E999", "N802", "N803", "N806", "N812", "N813", "N815", "N816", "N999"
]
ignore = ["E203", "E226", "E228", "N802", "N803", "N806", "N812", "N813", "N815", "N816"]
line-length = 110
exclude = ["__init__.py", "doc/conf.py"]
select = ["E", "F", "N", "W"]
Expand Down
4 changes: 2 additions & 2 deletions .ts_pre_commit_config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
black: true
check-xml: true
check-yaml: true
clang-format: false
flake8: true
format-xmllint: true
isort: true
mypy: false
check-yaml: false
check-xml: true
ruff: true

0 comments on commit 3ec1faf

Please sign in to comment.