Debian Codegraph @

pyproject.toml

raw
1 [project]
2 name = "censys"
3 version = "2.3.0"
4 description = "An easy-to-use and lightweight API wrapper for Censys APIs (censys.io)."
5 authors = [{ name = "Censys, Inc.", email = "[email protected]" }]
6 license = "Apache-2.0"
7 readme = "README.md"
8 keywords = ["censys", "api", "search", "attack surface management"]
9 classifiers = [
10 "Typing :: Typed",
11 "Topic :: Internet",
12 "Topic :: Security",
13 "Topic :: Documentation :: Sphinx",
14 "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
15 "Topic :: Internet :: WWW/HTTP :: Indexing/Search",
16 "Topic :: Scientific/Engineering :: Information Analysis",
17 "Topic :: Software Development :: Libraries :: Python Modules",
18 "Topic :: System :: Networking",
19 "Topic :: Utilities",
20 "Environment :: Console",
21 "Natural Language :: English",
22 "Intended Audience :: Developers",
23 "Intended Audience :: Information Technology",
24 "Intended Audience :: Science/Research",
25 "Intended Audience :: System Administrators",
26 "Operating System :: OS Independent",
27 "Development Status :: 5 - Production/Stable",
28 "License :: OSI Approved :: Apache Software License",
29 "Programming Language :: Python",
30 "Programming Language :: Python :: 3",
31 "Programming Language :: Python :: 3 :: Only",
32 "Programming Language :: Python :: 3.9",
33 "Programming Language :: Python :: 3.10",
34 "Programming Language :: Python :: 3.11",
35 "Programming Language :: Python :: 3.12",
36 "Programming Language :: Python :: 3.13",
37 "Programming Language :: Python :: Implementation :: PyPy",
38 ]
39 requires-python = ">=3.9"
40 dependencies = [
41 "requests>=2.32.0",
42 "backoff>=2.0.0,<3.0.0",
43 "rich>=10.16.2",
44 "argcomplete>=2.0.0,<4.0.0",
45 ]
46
47 [project.urls]
48 "Censys Homepage" = "https://censys.io/"
49 "Censys Search" = "https://search.censys.io/"
50 "Discussions" = "https://github.com/censys/censys-python/discussions"
51 "Documentation" = "https://censys-python.rtfd.io"
52 "Changelog" = "https://github.com/censys/censys-python/releases"
53 "Tracker" = "https://github.com/censys/censys-python/issues"
54 "Source" = "https://github.com/censys/censys-python"
55
56 [project.scripts]
57 censys = "censys.cli:main"
58
59 [dependency-groups]
60 dev = [
61 "ruff>=0.9.0",
62 "pytest>=7.3,<10",
63 "pytest-cov>=4",
64 "pytest-mock>=3.10.0,<4",
65 "responses>=0.23.1",
66 "mypy>=1.5.1,<3",
67 "types-requests>=2.29.0.0,<3",
68 ]
69 docs = [
70 "sphinx>=7.2.6",
71 "sphinxcontrib-autoprogram>=0.1.9",
72 "sphinx-rtd-theme>=3.0.2",
73 "sphinx-prompt>=1.8.0",
74 "sphinx-tabs>=3.4.1",
75 "sphinx-copybutton>=0.5.2",
76 ]
77
78 [build-system]
79 requires = ["hatchling"]
80 build-backend = "hatchling.build"
81
82 [tool.hatch.build.targets.wheel]
83 packages = ["censys"]
84
85 [tool.ruff]
86 line-length = 127
87 target-version = "py39"
88
89 [tool.ruff.lint]
90 select = [
91 "E", "W", # pycodestyle
92 "F", # pyflakes
93 "I", # isort
94 "N", # pep8-naming
95 "UP", # pyupgrade
96 "C4", # flake8-comprehensions
97 "PT", # flake8-pytest-style
98 "SIM", # flake8-simplify
99 ]
100 ignore = [
101 "E501", # line too long — ruff format is the source of truth; remaining are unfixable literals
102 "N818", # exception naming — renaming CensysException* would be a breaking API change
103 "PT028", # test default args — false positive for test utility helpers, not fixtures
104 ]
105
106 [tool.ruff.lint.per-file-ignores]
107 "examples/**" = ["E402"]
108
109 [tool.ruff.lint.isort]
110 known-first-party = ["censys"]
111
112 [tool.mypy]
113 python_version = "3.9"
114 files = ["censys"]
115 namespace_packages = true
116 explicit_package_bases = true
117 warn_unused_configs = true
118 warn_redundant_casts = true
119 warn_unused_ignores = true
120 strict_equality = true
121 extra_checks = true
122 no_implicit_reexport = true
123 check_untyped_defs = true
124 disallow_untyped_decorators = true
125
126 [[tool.mypy.overrides]]
127 module = ["rich", "attr"]
128 ignore_missing_imports = true
129
130 [tool.pytest.ini_options]
131 testpaths = ["tests"]
132 addopts = "--cov -rs"
133 filterwarnings = ["ignore:.*:DeprecationWarning:.*"]
134 python_classes = ["Test*", "*Tests", "*Test"]