diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..6deafc2 --- /dev/null +++ b/.flake8 @@ -0,0 +1,2 @@ +[flake8] +max-line-length = 120 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..078133f --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/python_trading212/__init__.py b/python_trading212/__init__.py index b8d506f..6408d13 100644 --- a/python_trading212/__init__.py +++ b/python_trading212/__init__.py @@ -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