Skip to content

Commit 777fe86

Browse files
committed
chore: add flake8 config and normalize pyproject metadata
1 parent 69d75a4 commit 777fe86

3 files changed

Lines changed: 2404 additions & 5 deletions

File tree

.flake8

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[flake8]
2+
max-line-length = 127
3+
max-complexity = 10
4+
extend-exclude =
5+
.git,
6+
.venv,
7+
env,
8+
__pycache__,
9+
build,
10+
dist

pyproject.toml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
1+
[build-system]
2+
requires = ["setuptools>=61", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
15
[project]
26
name = "vistopia"
3-
authors = [{ name = "Chenxing Luo", email = "chenxing.luo@gmail.com" }]
7+
authors = [
8+
{ name = "Chenxing Luo", email = "chenxing.luo@gmail.com" },
9+
]
410
readme = "README.md"
511
license = { file = "LICENSE" }
612
dynamic = ["version"]
7-
dependencies = ["requests", "mutagen", "click", "tabulate", "wcwidth", "pathvalidate"]
13+
dependencies = [
14+
"click",
15+
"mutagen",
16+
"pathvalidate",
17+
"requests",
18+
"tabulate",
19+
"wcwidth",
20+
]
821
requires-python = ">=3.6"
922

1023
[project.optional-dependencies]
1124
dev = [
1225
"autopep8",
26+
"flake8",
27+
"mypy",
1328
"pytest",
1429
"pytest-cov",
1530
"pytest_click",
16-
"flake8",
17-
"mypy",
1831
"types-requests",
1932
"types-tabulate",
2033
]
@@ -29,7 +42,7 @@ Repository = "https://github.com/chazeon/python-vistopia.git"
2942
include = ["vistopia"]
3043

3144
[tool.setuptools.dynamic]
32-
version = {attr = "vistopia.__version__"}
45+
version = { attr = "vistopia.__version__" }
3346

3447
[tool.pytest.ini_options]
3548
addopts = "--cov vistopia --doctest-modules --cov-report=xml --cov-report=term"

0 commit comments

Comments
 (0)