Skip to content

Commit 73096db

Browse files
committed
style: add flake8, black and isort
1 parent f74857b commit 73096db

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
max-line-length = 100
3+
exclude = .git,__pycache__

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
style:
2+
black .
3+
isort .
4+
flake8 .

pyproject.toml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ readme = "readme.md"
1212
keywords = ["jsonapi", "pydantic"]
1313
classifiers = [
1414
"License :: OSI Approved :: MIT License",
15-
"Programming Language :: Python :: 3.7",
15+
"Programming Language :: Python :: 3",
16+
"Programming Language :: Python :: 3 :: Only",
1617
"Programming Language :: Python :: 3.8",
1718
"Programming Language :: Python :: 3.9",
1819
"Programming Language :: Python :: 3.10",
@@ -25,19 +26,24 @@ repository = "https://github.com/impocode/jsonapi-pydantic"
2526
documentation = "https://github.com/impocode/jsonapi-pydantic"
2627

2728
[tool.poetry.dependencies]
28-
python = "^3.7"
29+
python = "^3.8.1"
2930
pydantic = "^2.1.1"
3031

3132
[tool.poetry.urls]
3233
"Bug Tracker" = "https://github.com/impocode/jsonapi-pydantic/issues"
3334

35+
[tool.poetry.group.dev.dependencies]
36+
black = "^23.12.0"
37+
isort = "^5.13.2"
38+
flake8 = "^6.1.0"
39+
3440
[tool.isort]
35-
line_length = 99
41+
line_length = 100
3642
multi_line_output = 3
3743
include_trailing_comma = false
3844

3945
[tool.black]
40-
line-length = 99
46+
line-length = 100
4147

4248
[build-system]
4349
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)