diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5fb60d15..40bbdb3a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,8 @@ -exclude: 'build|docs|node_modules|.git|.tox|dist|docs|data_gateway.egg-info' +exclude: "build|docs|node_modules|.git|.tox|dist|docs|data_gateway.egg-info" default_stages: [commit] fail_fast: true default_language_version: - python: python3 # force all unspecified python hooks to run python3 + python: python3 # force all unspecified python hooks to run python3 repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.0.1 @@ -18,10 +18,10 @@ repos: - id: isort - repo: https://github.com/psf/black - rev: 21.6b0 + rev: 22.3.0 hooks: - id: black - args: ['--line-length', '120'] + args: ["--line-length", "120"] - repo: https://gitlab.com/pycqa/flake8 rev: 3.9.2 @@ -29,14 +29,14 @@ repos: - id: flake8 language_version: python3 additional_dependencies: - - 'pep8-naming' + - "pep8-naming" args: - --ignore-names=setUp,tearDown,setUpClass,tearDownClass,asyncSetUp,asyncTearDown,setUpTestData,failureException,longMessage,maxDiff,startTestRun,stopTestRun - repo: https://github.com/pycqa/pydocstyle rev: 6.1.1 hooks: - - id: pydocstyle + - id: pydocstyle - repo: https://github.com/thclark/pre-commit-sphinx rev: 0.0.3 @@ -44,11 +44,11 @@ repos: - id: build-docs language_version: python3 additional_dependencies: - - 'poetry>=1,<2' - - 'Sphinx>=4,<5' - - 'sphinx-rtd-theme>=1,<2' - - 'sphinx-tabs>=3,<4' - - 'sphinx-autoapi==1.8.4' + - "poetry>=1,<2" + - "Sphinx>=4,<5" + - "sphinx-rtd-theme>=1,<2" + - "sphinx-tabs>=3,<4" + - "sphinx-autoapi==1.8.4" - repo: https://github.com/windpioneers/pre-commit-hooks rev: 0.0.5 @@ -56,18 +56,18 @@ repos: - id: check-branch-name language_version: python3 args: - - '^main$' - - '^development$' - - '^devops/([a-z][a-z0-9]*)(-[a-z0-9]+)*$' - - '^doc/([a-z][a-z0-9]*)(-[a-z0-9]+)*$' - - '^feature/([a-z][a-z0-9]*)(-[a-z0-9]+)*$' - - '^fix/([a-z][a-z0-9]*)(-[a-z0-9]+)*$' - - '^hotfix/([a-z][a-z0-9]*)(-[a-z0-9]+)*$' - - '^review/([a-z][a-z0-9]*)(-[a-z0-9]+)*$' - - '^refactor/([a-z][a-z0-9]*)(-[a-z0-9]+)*$' - - '^enhancement/([a-z][a-z0-9]*)(-[a-z0-9]+)*$' - - '^test/([a-z][a-z0-9]*)(-[a-z0-9]+)*$' - - '^dependencies/([a-z][a-z0-9]*)(-[a-z0-9]+)*$' + - "^main$" + - "^development$" + - "^devops/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" + - "^doc/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" + - "^feature/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" + - "^fix/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" + - "^hotfix/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" + - "^review/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" + - "^refactor/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" + - "^enhancement/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" + - "^test/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" + - "^dependencies/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" - repo: https://github.com/octue/conventional-commits rev: 0.3.1