diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 13f3f43..fd4c7e6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,9 +2,12 @@ name: Lint on: [push, pull_request] +env: + FORCE_COLOR: 1 + jobs: build: - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4ddbb33..9a37fb9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,22 +14,17 @@ repos: files: \.pyi?$ types: [] + - repo: https://github.com/PyCQA/isort + rev: 5.5.1 + hooks: + - id: isort + - repo: https://gitlab.com/pycqa/flake8 rev: 3.8.3 hooks: - id: flake8 additional_dependencies: [flake8-2020, flake8-implicit-str-concat] - - repo: https://github.com/asottile/seed-isort-config - rev: v2.2.0 - hooks: - - id: seed-isort-config - - - repo: https://github.com/timothycrosley/isort - rev: 5.4.2 - hooks: - - id: isort - - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.6.0 hooks: diff --git a/setup.cfg b/setup.cfg index 632c39e..191fac9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,4 +2,4 @@ max_line_length = 88 [tool:isort] -known_third_party = flaky,pkg_resources,pylast,pytest,setuptools +profile = black