Skip to content

Commit 006a5ba

Browse files
committed
Code linting
Installed isort and flake8 Setup flake8
1 parent c77b991 commit 006a5ba

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

.flake8

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
# E203: it's a parse limit of flake8
3+
# W503: https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#w503
4+
ignore = E203, W503, E501,E701
5+
# align to black choice
6+
max-line-length = 88

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Configuration file to store build system requirements for Python projects
2+
# https://www.python.org/dev/peps/pep-0518/
3+
4+
[tool.isort]
5+
# make the tools compatible to each other
6+
profile = "black"

requirements-dev.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
pylint==2.13.9
2-
mypy==0.971
31
typing-extensions==4.1.1
4-
bump2version==1.0.1
52
pytest==7.0.1
63
pytest-mock==3.6.1
7-
black==22.8.0
84
python-dotenv==0.20.0
95
lz4==3.1.10
6+
bump2version==1.0.1
7+
black==22.8.0
8+
pylint==2.13.9
9+
mypy==0.971
10+
flake8==5.0.4
11+
isort==5.10.1
12+
autoflake==1.4

0 commit comments

Comments
 (0)