Skip to content

Commit 39009b2

Browse files
authored
Merge pull request #331 from xcp-ng/gln/use-flake8-wnkq
2 parents d12d05f + ca02d00 commit 39009b2

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.github/workflows/format.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- name: Install dependencies
1313
run: |
1414
python -m pip install --upgrade pip
15-
pip install pycodestyle
16-
- name: pycodestyle
15+
pip install flake8
16+
- name: flake8
1717
run: |
18-
pycodestyle
18+
flake8
1919
2020
pydocstyle:
2121
runs-on: ubuntu-latest

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# All requirements + those only used in development
22
ansible>=5.0.1
33
bs4>=0.0.1
4-
pycodestyle>=2.6.0
4+
flake8
55
PyYAML>=6.0
66
mypy
77
typing_extensions

scripts/install_xcpng.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
from packaging import version
1616

17-
sys.path.append(f"{os.path.abspath(os.path.dirname(__file__))}/..") # noqa
17+
# flake8: noqa: E402
18+
sys.path.append(f"{os.path.abspath(os.path.dirname(__file__))}/..")
1819
from lib import pxe
1920
from lib.commands import ssh, scp, SSHCommandFailed
2021
from lib.common import wait_for, is_uuid

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
[pycodestyle]
1+
[flake8]
22
max-line-length=120
3-
ignore=E261,E302,E305,W503
4-
exclude=data.py,vm_data.py,.git
3+
ignore=E261,E302,E305,W503,F
4+
exclude=data.py,vm_data.py,.git,.venv
55

66
[pydocstyle]
77
ignore=D100,D101,D102,D103,D104,D105,D106,D107,D203,D210,D212,D401,D403

0 commit comments

Comments
 (0)