summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2021-12-24 01:43:04 +0200
committerAlex Grönholm <alex.gronholm@nextday.fi>2021-12-24 01:45:01 +0200
commit6e4479d3aaf9b04c257e159f64028bc2cee89f1a (patch)
tree2577135df97a5581c5d680a18f2aa851b47a9457
parent5eb690c72ea59bc0f8a2fa34d3993ebe3dbe0d38 (diff)
downloadwheel-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.yml4
-rw-r--r--pyproject.toml3
-rw-r--r--setup.cfg3
-rw-r--r--tox.ini4
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
diff --git a/setup.cfg b/setup.cfg
index a9d3e42..7114e56 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -58,6 +58,3 @@ omit = */vendored/*
[coverage:report]
show_missing = true
-
-[flake8]
-max-line-length = 88
diff --git a/tox.ini b/tox.ini
index 2a6a2d6..09f48ff 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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