Skip to content

Commit 05aac95

Browse files
committed
Update circle ci to use flake8
1 parent b1daec9 commit 05aac95

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.circleci/config.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474

7575
- run:
7676
name: Install python packages for static analysis
77-
command: pip install black mypy mypy_extensions autoflake profimp
77+
command: pip install black mypy mypy_extensions flake8 profimp
7878

7979
- run:
8080
name: Quick installation of Prefect
@@ -89,13 +89,8 @@ jobs:
8989
command: mypy src/
9090

9191
- run:
92-
name: Check for potentially unused imports
93-
command: |
94-
if [[ $(autoflake --remove-all-unused-imports -r --exclude __init__.py src | tee .unused-imports.txt | wc -c ) -ne 0 ]]; then
95-
echo "Potentially unused imports found"
96-
cat .unused-imports.txt
97-
exit 2
98-
fi
92+
name: Run flake8
93+
command: flake8 src/
9994

10095
- run:
10196
name: Ensure 'import prefect' is under 1 second

0 commit comments

Comments
 (0)