From 9804ea2fb800791fedee6cef1a03c08e4f2afba3 Mon Sep 17 00:00:00 2001 From: Mathieu Kniewallner Date: Mon, 6 Jun 2022 19:51:12 +0200 Subject: [PATCH] Test against python 3.11 and remove obsolete `code-quality` workflow (#14) * chore(ci): remove obsolete `code-quality` workflow * chore(ci): test against Python 3.11 * chore(ci): use `1.1.13` for Poetry version to install * chore(ci): bump actions * chore(pre-commit): pin `flake8-bugbear` * chore(pre-commit): remove unneeeded `toml` extra for `isort` * chore(isort): remove options already in `black` profile --- .github/workflows/code-quality.yaml | 15 --------------- .github/workflows/installer.yml | 8 ++++---- .pre-commit-config.yaml | 4 ++-- pyproject.toml | 2 -- 4 files changed, 6 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/code-quality.yaml diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml deleted file mode 100644 index e1bbef2..0000000 --- a/.github/workflows/code-quality.yaml +++ /dev/null @@ -1,15 +0,0 @@ -name: Code Quality - -on: - pull_request: - push: - branches: [main] - -jobs: - pre-commit: - name: Linting - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: pre-commit/action@v2.0.0 diff --git a/.github/workflows/installer.yml b/.github/workflows/installer.yml index 4366587..8efdd37 100644 --- a/.github/workflows/installer.yml +++ b/.github/workflows/installer.yml @@ -25,12 +25,12 @@ jobs: strategy: matrix: os: [Ubuntu, macOS, Windows] - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11-dev"] args: - "" - "--preview" - "--git https://github.com/python-poetry/poetry.git" - - "--version 1.1.11" + - "--version 1.1.13" include: - os: Ubuntu image: ubuntu-latest @@ -42,10 +42,10 @@ jobs: run: shell: bash steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 336f6d9..0553910 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,13 +8,13 @@ repos: rev: 4.0.1 hooks: - id: flake8 - additional_dependencies: [flake8-bugbear] + additional_dependencies: + - flake8-bugbear==22.4.25 - repo: https://github.com/PyCQA/isort rev: 5.10.1 hooks: - id: isort - additional_dependencies: [toml] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.2.0 diff --git a/pyproject.toml b/pyproject.toml index db0e70e..35ef6c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,10 +2,8 @@ profile = "black" force_single_line = true atomic = true -include_trailing_comma = true lines_after_imports = 2 lines_between_types = 1 -use_parentheses = true filter_files = true