Skip to content

Commit 98e4ce3

Browse files
martin-kokosiakat
authored andcommitted
packaging: Add pyproject.toml
1 parent 1bc92da commit 98e4ce3

File tree

2 files changed

+85
-0
lines changed

2 files changed

+85
-0
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
recursive-include static
2+
recursive-include templates

pyproject.toml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "adsb_api"
7+
version = "0.6.0"
8+
authors = []
9+
description = "ADSB.lol API - Live air traffic (ADS-B / MLAT / UAT)"
10+
license = {file = "LICENSE"}
11+
requires-python = ">=3.7"
12+
dynamic = ["readme", "dependencies"]
13+
classifiers = [
14+
"Programming Language :: Python :: 3",
15+
"License :: OSI Approved :: MIT License",
16+
"Operating System :: OS Independent",
17+
]
18+
19+
[project.urls]
20+
"Homepage" = "https://github.com/adsblol/api"
21+
"Bug Tracker" = "https://github.com/adsblol/api/issues"
22+
23+
[tool.setuptools.dynamic]
24+
readme = {file = "README.md"}
25+
dependencies = {file = "requirements.txt"}
26+
27+
[project.optional-dependencies]
28+
dev = [
29+
"mypy",
30+
"black",
31+
"ruff",
32+
]
33+
test = [
34+
"pytest",
35+
"pytest-asyncio",
36+
"aioresponses",
37+
]
38+
39+
[tool.ruff]
40+
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
41+
select = ["E", "F"]
42+
ignore = []
43+
44+
# Allow autofix for all enabled rules (when `--fix`) is provided.
45+
fixable = ["A", "B", "C", "D", "E", "F"]
46+
unfixable = []
47+
48+
# Exclude a variety of commonly ignored directories.
49+
exclude = [
50+
".bzr",
51+
".direnv",
52+
".eggs",
53+
".git",
54+
".hg",
55+
".mypy_cache",
56+
".nox",
57+
".pants.d",
58+
".pytype",
59+
".ruff_cache",
60+
".svn",
61+
".tox",
62+
".venv",
63+
"__pypackages__",
64+
"_build",
65+
"buck-out",
66+
"build",
67+
"dist",
68+
"node_modules",
69+
"venv",
70+
]
71+
72+
# Same as Black.
73+
line-length = 88
74+
75+
# Allow unused variables when underscore-prefixed.
76+
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
77+
78+
# Assume Python 3.10.
79+
target-version = "py310"
80+
81+
[tool.ruff.mccabe]
82+
# Unlike Flake8, default to a complexity level of 10.
83+
max-complexity = 10

0 commit comments

Comments
 (0)