Skip to content
Snippets Groups Projects
Commit 0f4fd1b3 authored by Simon Rose's avatar Simon Rose
Browse files

Update pre-commit

parent 040a4d5d
No related branches found
No related tags found
No related merge requests found
[flake8]
ignore = E501, E203, W503
# E501, E203: black
# W503: PEP8
repos: repos:
- repo: https://github.com/ambv/black - repo: https://github.com/psf/black
rev: 22.3.0 rev: 22.8.0
hooks: hooks:
- id: black - id: black
- repo: https://github.com/pycqa/flake8 - repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 3.9.2 rev: v0.0.238
hooks: hooks:
- id: flake8 - id: ruff
- repo: https://github.com/PyCQA/doc8.git
rev: v1.0.0 # 1.1.0 drops python3.6 support
hooks:
- id: doc8
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1 rev: v4.0.1 # 4.2.0 drops python3.6 support
hooks: hooks:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/timothycrosley/isort - id: check-yaml
rev: 5.10.1
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v13.0.0
hooks:
- id: clang-format
...@@ -50,7 +50,7 @@ record(stringin,"$(REQUIRE_IOC):BaseVersion") ...@@ -50,7 +50,7 @@ record(stringin,"$(REQUIRE_IOC):BaseVersion")
} }
# This record contains labels for the created NTTable, named $(REQUIRE_IOC):LoadedModules. # This record contains labels for the created NTTable, named $(REQUIRE_IOC):LoadedModules.
record(aai, "$(REQUIRE_IOC):Labels") record(aai, "$(REQUIRE_IOC):Labels")
{ {
field(DESC, "Labels for the NTTable") field(DESC, "Labels for the NTTable")
field(FTVL, "STRING") field(FTVL, "STRING")
......
extend-select = ["D212"]
extend-ignore = ["D105", "D107", "D202", "D418", "E501"]
...@@ -153,9 +153,7 @@ EXCLUDE_ARCHS+=debug ...@@ -153,9 +153,7 @@ EXCLUDE_ARCHS+=debug
def run_ioc_get_output(*args, **kwargs): def run_ioc_get_output(*args, **kwargs):
""" """Run an IOC and try to load the test module."""
Run an IOC and try to load the test module
"""
ioc_args = [] ioc_args = []
module = kwargs.get("module", None) module = kwargs.get("module", None)
version = kwargs.get("version", None) version = kwargs.get("version", None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment