Skip to content

Commit af0777a

Browse files
black setup
1 parent 6c413cb commit af0777a

File tree

5 files changed

+18
-8
lines changed

5 files changed

+18
-8
lines changed

Diff for: .flake8

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[flake8]
2-
max-line-length=120
3-
exclude = __pycache__,docs/source/conf.py,old,build,dist,setup.py,sample/stream_ig.py,sample/*.py,notes
2+
max-line-length = 88
3+
extend-ignore = E203
4+
exclude = __pycache__,build,dist,notes

Diff for: .github/workflows/integration-test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
python-version: 3.8
2222

2323
- name: Install Poetry
24-
uses: abatilo/actions-poetry@v2.1.6
24+
uses: abatilo/actions-poetry@v2.3.0
2525
with:
26-
poetry-version: 1.2
26+
poetry-version: 1.5.1
2727

2828
- name: Install dependencies
2929
run: |

Diff for: .github/workflows/unit-test.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,22 @@ jobs:
2525
python-version: ${{ matrix.python-version }}
2626

2727
- name: Install Poetry
28-
uses: abatilo/actions-poetry@v2.1.6
28+
uses: abatilo/actions-poetry@v2.3.0
2929
with:
30-
poetry-version: 1.2
30+
poetry-version: 1.5.1
3131

3232
- name: Install dependencies
3333
run: |
3434
python -m poetry install --extras "pandas munch tenacity"
3535
36+
- name: Prettify with black
37+
uses: psf/black@stable
38+
with:
39+
version: "23.3.0"
40+
3641
- name: Lint with flake8
3742
run: |
38-
python -m poetry run flake8 trading_ig
43+
python -m poetry run flake8 trading_ig docs sample tests
3944
4045
- name: Unit tests with pytest
4146
run: |

Diff for: README.rst

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
:target: https://coveralls.io/github/ig-python/trading-ig
3131
:alt: Test Coverage
3232

33+
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
34+
:target: https://github.com/psf/black
35+
3336
trading-ig
3437
==========
3538

Diff for: pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ docs = [
4747
"sphinx"
4848
]
4949

50-
[tool.poetry.dev-dependencies]
50+
[tool.poetry.group.dev.dependencies]
5151
flake8 = "^3.9"
5252
pytest = "^6.2"
5353
responses = "^0.12"
5454
coveralls = "^3.2"
5555
sphinx-rtd-theme = {version = "^1.0.0", optional = true}
5656
importlib-metadata = "==4.13.0"
57+
black = "23.3.0"
5758

5859
[tool.poetry.urls]
5960
"Issues" = "https://github.com/ig-python/trading-ig/issues"

0 commit comments

Comments
 (0)