1
0
Fork 0
mirror of https://github.com/python-poetry/install.python-poetry.org.git synced 2024-09-13 13:17:11 -04:00

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
This commit is contained in:
Mathieu Kniewallner 2022-06-06 19:51:12 +02:00 committed by GitHub
parent 0fab381034
commit 9804ea2fb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 23 deletions

View file

@ -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

View file

@ -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 }}

View file

@ -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

View file

@ -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