diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 8c59617..13dd3bf 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,14 +1,17 @@ name: pre-commit on: + workflow_dispatch: pull_request: push: branches: [main] jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v2 + - uses: actions/checkout@main + - uses: actions/setup-python@main + with: + python-version: '>=3.11' - uses: pre-commit/action@main diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 124dacd..7eb2ef7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,59 +1,59 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-toml - id: debug-statements - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks rev: v2.10.0 hooks: - id: pretty-format-yaml args: [--autofix, --indent, '2'] - id: pretty-format-toml args: [--autofix] - repo: https://github.com/psf/black rev: 23.7.0 hooks: - id: black args: [--safe, --quiet, --line-length=100] -- repo: https://github.com/humitos/mirrors-autoflake.git - rev: v1.1 +- repo: https://github.com/PyCQA/autoflake + rev: v2.2.1 hooks: - id: autoflake args: [--in-place, --remove-unused-variable, --remove-all-unused-imports] - repo: https://github.com/asottile/reorder_python_imports rev: v3.10.0 hooks: - id: reorder-python-imports - repo: https://github.com/asottile/pyupgrade rev: v3.9.0 hooks: - id: pyupgrade args: [--py36-plus] - repo: https://github.com/PyCQA/flake8 rev: 6.0.0 hooks: - id: flake8 args: [--max-line-length=100] - repo: https://github.com/asottile/setup-cfg-fmt rev: v2.4.0 hooks: - id: setup-cfg-fmt - repo: https://github.com/tdegeus/cpp_comment_format rev: v0.2.0 hooks: - id: cpp_comment_format args: [-c, -t, '4'] - repo: https://github.com/pre-commit/mirrors-clang-format rev: v16.0.6 hooks: - id: clang-format args: [-i] - repo: https://github.com/tdegeus/conda_envfile rev: v0.4.2 hooks: - id: conda_envfile_parse files: environment.yaml diff --git a/.readthedocs.yml b/.readthedocs.yml index 2ca4cd2..ec3db2b 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,7 +1,17 @@ +version: 2 + sphinx: configuration: docs/conf.py -version: 2 +build: + os: ubuntu-lts-latest + tools: + python: mambaforge-latest conda: environment: environment.yaml + +python: + install: + - method: pip + path: .