Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
AnihilatorGun committed Jan 7, 2025
1 parent 402f1af commit 8b7a8e0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
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
per-file-ignores = __init__.py: F401
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint

on: [ pull_request ]

env:
MODULE_NAME: kerops

jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Check python code style
run: |
pip install -r requirements-dev.txt
flake8 .
isort --check .
black --check .
3 changes: 0 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
matplotlib
seaborn

black
flake8
flake8-tidy-imports
Expand Down

0 comments on commit 8b7a8e0

Please sign in to comment.