Skip to content

Commit

Permalink
Add python code checks to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteF committed Feb 10, 2023
1 parent baa56bb commit fb17ab7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
13 changes: 11 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ orbs:
parameters:
image_suffix:
type: string
default: '-v7e4468f'
default: '-v9a494cd'
pg13_version:
type: string
default: '13.9'
Expand Down Expand Up @@ -157,8 +157,17 @@ jobs:
steps:
- checkout
- run:
name: 'Check Style'
name: 'Check C Style'
command: citus_indent --check
- run:
name: 'Check Python style'
command: black --check .
- run:
name: 'Check Python import order'
command: isort --check .
- run:
name: 'Check Python lints'
command: flake8 .
- run:
name: 'Fix whitespace'
command: ci/editorconfig.sh && git diff --exit-code
Expand Down
4 changes: 2 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[flake8]
# Whitespace before ':' (E203) is ignored for black
# Module level import not at top of file (E402) is ignored because of the way we do relative imports
# E203 is ignored for black
# E402 is ignored because of te way we do relative imports
extend-ignore = E203, E402
# black will truncate to 88 characters usually, but long string literals it
# might keep. That's fine in most cases unless it gets really excessive.
Expand Down

0 comments on commit fb17ab7

Please sign in to comment.