Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 9648e5c

Browse files
[wperf-scripts] Add flake8 and mypy config to wperf-scripts/tests (#67)
* wperf-scripts: add simple flake8 config file * wperf-scripts: add flake8, mypy config Create Makefile with flake8, mypy (and all) rules
1 parent 1198218 commit 9648e5c

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

wperf-scripts/tests/.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
ignore = E501, W503
3+
exclude = .venv, telemetry-solution, cpython

wperf-scripts/tests/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Define the directories to check
2+
SRC_DIRS := .
3+
4+
.PHONY: all mypy flake8
5+
6+
all: mypy flake8
7+
8+
mypy:
9+
-python -m mypy $(SRC_DIRS)
10+
11+
flake8:
12+
-python -m flake8 $(SRC_DIRS)

wperf-scripts/tests/mypy.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[mypy]
2+
# Specify the directories to ignore
3+
exclude = telemetry-solution|cpython
4+
ignore_missing_imports = True

0 commit comments

Comments
 (0)