Skip to content

Commit

Permalink
Add linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoelho93 committed Apr 26, 2024
1 parent c937f79 commit fad87f1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length = 120
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push

jobs:
flake8:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: checkout source
uses: actions/checkout@v3
- name: setup python environment
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: flake8 Linting
uses: py-actions/flake8@v2
4 changes: 2 additions & 2 deletions python_trading212/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from python_trading212.trading212 import Trading212
from python_trading212.models import Position
from python_trading212.trading212 import Trading212 # noqa
from python_trading212.models import Position # noqa

0 comments on commit fad87f1

Please sign in to comment.