diff options
| author | Alex Grönholm <alex.gronholm@nextday.fi> | 2021-12-24 01:43:04 +0200 |
|---|---|---|
| committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2021-12-24 01:45:01 +0200 |
| commit | 6e4479d3aaf9b04c257e159f64028bc2cee89f1a (patch) | |
| tree | 2577135df97a5581c5d680a18f2aa851b47a9457 | |
| parent | 5eb690c72ea59bc0f8a2fa34d3993ebe3dbe0d38 (diff) | |
| download | wheel-git-6e4479d3aaf9b04c257e159f64028bc2cee89f1a.tar.gz | |
Migrated flake8 config from setup.cfg to pyproject.toml
This required migrating to pyproject-flake8 as flake8 proper still doesn't support pyproject.toml.
| -rw-r--r-- | .github/workflows/codeqa-test.yml | 4 | ||||
| -rw-r--r-- | pyproject.toml | 3 | ||||
| -rw-r--r-- | setup.cfg | 3 | ||||
| -rw-r--r-- | tox.ini | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/.github/workflows/codeqa-test.yml b/.github/workflows/codeqa-test.yml index c7c26e8..730f7d5 100644 --- a/.github/workflows/codeqa-test.yml +++ b/.github/workflows/codeqa-test.yml @@ -18,11 +18,11 @@ jobs: path: ~/.cache/pip key: pip-lint - name: Install dependencies - run: pip install black flake8 + run: pip install black pyproject-flake8 - name: Run black run: black --check --diff src tests - name: Run flake8 - run: flake8 src tests + run: pflake8 src tests test: strategy: diff --git a/pyproject.toml b/pyproject.toml index 02579ba..80035c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,3 +7,6 @@ target-version = ['py37'] extend-exclude = ''' ^/src/wheel/vendored/ ''' + +[tool.flake8] +max-line-length = 88 @@ -58,6 +58,3 @@ omit = */vendored/* [coverage:report] show_missing = true - -[flake8] -max-line-length = 88 @@ -21,6 +21,6 @@ skip_install = true [testenv:flake8] basepython = python3 -deps = flake8 -commands = flake8 src tests +deps = pyproject-flake8 +commands = pflake8 src tests skip_install = true |
