Skip to content

Commit

Permalink
Add workflow to run flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
arslanhashmi committed Aug 6, 2023
1 parent 72909bb commit b83b857
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 120
exclude = tests/*
ignore = E501, E722, W391, F821
19 changes: 19 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: flake8

on:
pull_request: {}

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Run flake8 with tox
run: |
pip install tox
tox -e flake8
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ dependencies = [
postgres = ["psycopg2", "db-dtypes"]
bigquery = ["google-auth", "google-cloud-bigquery"]
snowflake = ["snowflake-connector-python"]
test = ["tox"]
test = ["tox", "pytest"]

0 comments on commit b83b857

Please sign in to comment.