From e0cedbe684e98797e9f0ab61d6bf7425df43701e Mon Sep 17 00:00:00 2001 From: "quant-ranger[bot]" <132915763+quant-ranger[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 16:41:43 +0100 Subject: [PATCH] Update copier template to v0.9.0 (#3) Co-authored-by: quant-ranger[bot] <132915763+quant-ranger[bot]@users.noreply.github.com> Co-authored-by: kklein --- .github/dependabot.yml | 2 +- .github/workflows/ci.yml | 5 ++--- .github/workflows/package.yml | 3 ++- .pre-commit-config.yaml | 12 ++++++------ pyproject.toml | 3 ++- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7e49bbe..5db22bc 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -15,6 +15,6 @@ updates: registries: - github groups: - dependencies: + gh-actions: patterns: - "*" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b706f0..aa2919f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: python-version: "3.10" linux-unittests: - name: "Linux - unit tests - Python ${{ matrix.PYTHON_VERSION }}" + name: "Unit tests - Python ${{ matrix.PYTHON_VERSION }}" timeout-minutes: 30 runs-on: ubuntu-latest strategy: @@ -39,8 +39,7 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - - name: Fetch full git history - run: git fetch --prune --unshallow + fetch-depth: 0 - name: Set up Conda env uses: mamba-org/setup-micromamba@8767fb704bd78032e9392f0386bf46950bdd1194 with: diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 5ebdc1a..ba9f98e 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -14,8 +14,9 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} + fetch-depth: 0 - name: Build conda package - uses: quantco/rattler-build-action@v0.7.8 + uses: quantco/rattler-build-action@v0.7.9 with: quetz-api-key: ${{ secrets.QUETZ_API_KEY }} upload-quetz: ${{ startsWith(github.ref, 'refs/tags/') }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b5667e4..b85435c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,11 +5,11 @@ repos: hooks: - id: docformatter-conda - repo: https://github.com/Quantco/pre-commit-mirrors-ruff - rev: 0.1.14 + rev: 0.2.0 hooks: - id: ruff-conda - repo: https://github.com/Quantco/pre-commit-mirrors-black - rev: 24.1.0 + rev: 24.1.1 hooks: - id: black-conda - repo: https://github.com/Quantco/pre-commit-mirrors-mypy @@ -21,7 +21,7 @@ repos: rev: 3.2.4 hooks: - id: prettier-conda - files: "\\.(md|yml|yaml)$" + files: \.(md|yml|yaml)$ - repo: https://github.com/Quantco/pre-commit-mirrors-pre-commit-hooks rev: 4.5.0 hooks: @@ -30,11 +30,11 @@ repos: - id: check-merge-conflict-conda args: ["--assume-in-merge"] - repo: https://github.com/Quantco/pre-commit-mirrors-typos - rev: 1.17.2 + rev: 1.18.0 hooks: - id: typos-conda - - repo: https://github.com/Quantco/pre-commit-insert-license - rev: "1.3.0" + - repo: https://github.com/Quantco/pre-commit-mirrors-insert-license + rev: 1.3.0 hooks: - id: insert-license types: [python] diff --git a/pyproject.toml b/pyproject.toml index 03a007a..6e190d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,12 +46,13 @@ exclude = ''' ''' [tool.ruff] +line-length = 88 +[tool.ruff.lint] ignore = [ "N803", # https://docs.astral.sh/ruff/rules/invalid-argument-name "N806", # https://docs.astral.sh/ruff/rules/non-lowercase-variable-in-function "E501", # https://docs.astral.sh/ruff/faq/#is-the-ruff-linter-compatible-with-black ] -line-length = 88 select = [ # pyflakes "F",