Skip to content

Commit 6d7619c

Browse files
committed
Add linting
1 parent c937f79 commit 6d7619c

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
max-line-length = 120

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
on:
2+
push
3+
4+
jobs:
5+
flake8:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: checkout source
9+
uses: actions/checkout@v3
10+
- name: setup python environment
11+
uses: actions/setup-python@v4
12+
with:
13+
python-version: "3.12"
14+
- name: flake8 Linting
15+
uses: py-actions/flake8@v2

python_trading212/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
from python_trading212.trading212 import Trading212
2-
from python_trading212.models import Position
1+
from python_trading212.trading212 import Trading212 # noqa
2+
from python_trading212.models import Position # noqa

0 commit comments

Comments
 (0)