Skip to content

Commit 27f0ca3

Browse files
committed
Exchange pytest-flake8 with direct use of flake8.
1 parent a0dfecf commit 27f0ca3

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
ignore = E501

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,27 @@ jobs:
9797
set -xe -o nounset
9898
python -m tox -a -vv
9999
PIP_PRE=1 python -m tox -v -e ${{ matrix.tox-envs }} -- -v --color=yes
100+
101+
flake8:
102+
env:
103+
PY_COLORS: 1
104+
105+
runs-on: "ubuntu-latest"
106+
107+
steps:
108+
- uses: "actions/checkout@v3"
109+
- uses: "actions/setup-python@v4"
110+
with:
111+
python-version: "3.x"
112+
- name: "Install dependencies"
113+
shell: "bash"
114+
run: |
115+
set -xe -o nounset
116+
python -VV
117+
python -m site
118+
python -m pip install --upgrade pip flake8 setuptools wheel
119+
- name: "Run flake8"
120+
shell: "bash"
121+
run: |
122+
set -xe -o nounset
123+
flake8 --config .flake8 src/devpi_constrained

tox.ini

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@ commands=
99
deps=
1010
server620: devpi-server==6.2.0
1111
beautifulsoup4
12-
flake8<5
1312
pytest-cov
14-
pytest-flake8
1513
pytest-instafail
1614
webtest
1715

1816

1917
[pytest]
20-
addopts = -ra --flake8 --cov-report=term --cov-report=html
21-
flake8-ignore = E501
18+
addopts = -ra --cov-report=term --cov-report=html
2219
testpaths = src/devpi_constrained
2320
markers =
2421
nomocking: do not mock anything in fixtures

0 commit comments

Comments
 (0)