00d96a60b5550f588d29f6eaaee3fc9c21e75094
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

1) [build-system]
2) requires = ["hatchling"]
3) build-backend = "hatchling.build"
4) 
5) [project]
6) name = "derivepassphrase"
7) description = "An almost faithful Python reimplementation of James Coglan's vault."
8) readme = "README.md"
Marco Ricci Support Python 3.10 and PyP...

Marco Ricci authored 2 months ago

9) requires-python = ">=3.10"
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

10) license = "MIT"
11) keywords = []
12) authors = [
13)   { name = "Marco Ricci", email = "m@the13thletter.info" },
14) ]
15) classifiers = [
16)   "Development Status :: 4 - Beta",
17)   "Environment :: Console",
Marco Ricci Fix misspelt project settings

Marco Ricci authored 2 months ago

18)   "License :: OSI Approved :: MIT License",
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

19)   "Programming Language :: Python :: 3",
Marco Ricci Support Python 3.10 and PyP...

Marco Ricci authored 2 months ago

20)   "Programming Language :: Python :: 3.10",
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

21)   "Programming Language :: Python :: 3.11",
22)   "Programming Language :: Python :: 3.12",
23)   "Programming Language :: Python :: Implementation :: CPython",
24)   "Programming Language :: Python :: Implementation :: PyPy",
25) ]
26) dependencies = [
Marco Ricci Overhaul dependency and env...

Marco Ricci authored 3 months ago

27)   "click>=8.1",
Marco Ricci Support Python 3.10 and PyP...

Marco Ricci authored 2 months ago

28)   "typing_extensions",
Marco Ricci Overhaul dependency and env...

Marco Ricci authored 3 months ago

29) ]
Marco Ricci Release 0.1.3

Marco Ricci authored 1 month ago

30) version = "0.1.3"
Marco Ricci Overhaul dependency and env...

Marco Ricci authored 3 months ago

31) 
32) [project.optional-dependencies]
Marco Ricci Support Python 3.10 and PyP...

Marco Ricci authored 2 months ago

33) dev = ["black", "coverage", "hatch>=1.10", "mkdocs", "mkdocs-material",
Marco Ricci Add a changelog and support...

Marco Ricci authored 1 month ago

34)        "mkdocstrings[python]", "pytest>=8.1", "towncrier>=23.11"]
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

35) 
Marco Ricci Sort sections in pyproject....

Marco Ricci authored 1 month ago

36) [project.scripts]
37) derivepassphrase = "derivepassphrase.cli:derivepassphrase"
38) 
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

39) [project.urls]
Marco Ricci Set up a web host for the d...

Marco Ricci authored 2 months ago

40) Documentation = "https://the13thletter.info/derivepassphrase/"
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

41) Issues = "https://github.com/the-13th-letter/derivepassphrase/issues"
42) Source = "https://github.com/the-13th-letter/derivepassphrase"
43) 
Marco Ricci Sort sections in pyproject....

Marco Ricci authored 1 month ago

44) [tool.coverage.html]
45) directory = "html/coverage"
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

46) 
Marco Ricci Sort sections in pyproject....

Marco Ricci authored 1 month ago

47) [tool.coverage.paths]
48) src = ["src"]
49) tests = ["tests"]
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

50) 
Marco Ricci Sort sections in pyproject....

Marco Ricci authored 1 month ago

51) [tool.coverage.report]
52) skip_covered = false
53) skip_empty = true
54) precision = 3
55) partial_branches = [
56)     'pragma: no branch',
57) ]
58) exclude_also = [
59)   "if __name__ == .__main__.:",
60)   'if (?:typing\.)?TYPE_CHECKING:',
61)   "raise AssertionError",
62)   "raise NotImplementedError",
63)   'assert False',
64) ]
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

65) 
Marco Ricci Sort sections in pyproject....

Marco Ricci authored 1 month ago

66) [tool.coverage.run]
67) source_pkgs = ["derivepassphrase", "tests"]
68) branch = true
69) parallel = true
70) omit = [
71)   "__main__.py",
72) ]
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

73) 
Marco Ricci Fix Python package build co...

Marco Ricci authored 1 month ago

74) [tool.hatch.build.targets.sdist]
75) exclude = [
76)     'towncrier.d/[0123456789+]*.md',
77) ]
78) 
79) [tool.hatch.build.targets.wheel]
Marco Ricci Move `sequin` and `ssh_agen...

Marco Ricci authored 1 month ago

80) packages = ['src/derivepassphrase']
Marco Ricci Fix Python package build co...

Marco Ricci authored 1 month ago

81) 
Marco Ricci Overhaul dependency and env...

Marco Ricci authored 3 months ago

82) [tool.hatch.env]
83) requires = [
84)   "hatch-mkdocs",
85) ]
86) 
87) [tool.hatch.env.collectors.mkdocs.docs]
88) path = "mkdocs.yml"
89) 
Marco Ricci Fill out README and documen...

Marco Ricci authored 2 months ago

90) [tool.hatch.envs.docs]
91) extra-dependencies = [
Marco Ricci Annotate settings and selec...

Marco Ricci authored 1 month ago

92)   # Our documentation uses the Material theme.  It also uses
93)   # `mkdocstrings[python]`, but `hatch-mkdocs` is apparently smart
94)   # enough to pick *that* one up from the MkDocs configuration, but not
95)   # the selected theme...
96)   "mkdocs-material",
97)   # Our documentation uses formatted function signatures (i.e. with
98)   # formatted type annotations), which requires `black`.
Marco Ricci Fill out README and documen...

Marco Ricci authored 2 months ago

99)   "black",
Marco Ricci Annotate settings and selec...

Marco Ricci authored 1 month ago

100)   # Our documentation is generated in multiple versions, orchestrated by
101)   # `mike`.
Marco Ricci Deploy versioned documentat...

Marco Ricci authored 1 month ago

102)   "mike",
Marco Ricci Fill out README and documen...

Marco Ricci authored 2 months ago

103) ]
104) detached = false
105) 
Marco Ricci Sort sections in pyproject....

Marco Ricci authored 1 month ago

106) [tool.hatch.envs.hatch-static-analysis]
107) config-path = "ruff_defaults_v0.5.0.toml"
108) dependencies = ["ruff==0.5.0"]
109) 
110) [tool.hatch.envs.hatch-test]
111) default-args = ['src', 'tests']
112) 
113) [[tool.hatch.envs.hatch-test.matrix]]
114) python = ["3.10", "3.11", "3.12", "pypy3.10"]
115) 
116) [tool.hatch.envs.release]
117) dependencies = ['towncrier>=23.11']
118) 
119) [tool.hatch.envs.release.scripts]
120) 
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

121) [tool.hatch.envs.types]
122) extra-dependencies = [
123)   "mypy>=1.0.0",
Marco Ricci Create the configuration di...

Marco Ricci authored 1 month ago

124)   "pytest~=8.1",
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

125) ]
126) [tool.hatch.envs.types.scripts]
127) check = "mypy --install-types --non-interactive {args:src/derivepassphrase tests}"
128) 
Marco Ricci Sort sections in pyproject....

Marco Ricci authored 1 month ago

129) [tool.hatch.version]
130) path = "src/derivepassphrase/__init__.py"
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

131) 
Marco Ricci Sort sections in pyproject....

Marco Ricci authored 1 month ago

132) [tool.mypy]
133) files = ['src/**/*.py', 'tests/**/*.py']
134) mypy_path = '$MYPY_CONFIG_FILE_DIR/src'
135) explicit_package_bases = true
136) implicit_reexport = false
137) sqlite_cache = true
Marco Ricci Import initial project files

Marco Ricci authored 4 months ago

138) 
Marco Ricci Sort sections in pyproject....

Marco Ricci authored 1 month ago

139) [tool.pytest.ini_options]
140) addopts = '--doctest-modules'
141) pythonpath = ['src']
142) testpaths = ['src', 'tests']
143) xfail_strict = true
Marco Ricci Fix style issues with ruff...

Marco Ricci authored 2 months ago

144) 
145) [tool.ruff]
146) line-length = 79
147) src = ["src"]
Marco Ricci Fix style issues with ruff...

Marco Ricci authored 1 month ago

148) extend = "ruff_defaults_v0.5.0.toml"
Marco Ricci Fix style issues with ruff...

Marco Ricci authored 2 months ago

149) 
150) [tool.ruff.format]
151) quote-style = 'single'
Marco Ricci Reformat everything with ruff

Marco Ricci authored 1 month ago

152) docstring-code-line-length = "dynamic"
Marco Ricci Fix style issues with ruff...

Marco Ricci authored 1 month ago

153) preview = true
154) 
155) [tool.ruff.lint]
156) preview = true
157) extend-ignore = [
Marco Ricci Annotate settings and selec...

Marco Ricci authored 1 month ago

158)     # We use `assert` regularly to appease the type checker, and because
159)     # it is the right language tool for this job.
Marco Ricci Fix style issues with ruff...

Marco Ricci authored 1 month ago

160)     'S101',
161) ]
162) extend-select = [
Marco Ricci Annotate settings and selec...

Marco Ricci authored 1 month ago

163)     # Unlike hatch's standard configuration, we care about line length.
Marco Ricci Fix style issues with ruff...

Marco Ricci authored 1 month ago

164)     'E501',
165) ]
Marco Ricci Fix style issues with ruff...

Marco Ricci authored 2 months ago

166) 
Marco Ricci Fix style issues with ruff...

Marco Ricci authored 1 month ago

167) [tool.ruff.lint.extend-per-file-ignores]
168) "**/tests/**/*" = [
Marco Ricci Annotate settings and selec...

Marco Ricci authored 1 month ago

169)   # Our tests are pytest-style tests, which use `assert` liberally.
Marco Ricci Fix style issues with ruff...

Marco Ricci authored 1 month ago

170)   'A002',
Marco Ricci Annotate settings and selec...

Marco Ricci authored 1 month ago

171)   # Our tests are regularly parametrized with booleans, for benign
172)   # purposes.
Marco Ricci Fix style issues with ruff...

Marco Ricci authored 1 month ago

173)   'FBT001',
Marco Ricci Annotate settings and selec...

Marco Ricci authored 1 month ago

174)   # One of our standard modules is called `derivepassphrase._types`.
175)   # Importing this from the tests directory would then automatically
176)   # trigger `PLC2701`.
Marco Ricci Consolidate `types` submodu...

Marco Ricci authored 1 month ago

177)   'PLC2701',
Marco Ricci Annotate settings and selec...

Marco Ricci authored 1 month ago

178)   # To fully test the `derivepassphrase.cli` module (and a couple other
179)   # things), we need to call and to mock several internal functions,
180)   # which would automatically trigger `SLF001`.
Marco Ricci Consolidate `types` submodu...

Marco Ricci authored 1 month ago

181)   'SLF001',
Marco Ricci Fix style issues with ruff...

Marco Ricci authored 1 month ago

182) ]
183) 
Marco Ricci Sort sections in pyproject....

Marco Ricci authored 1 month ago

184) [tool.ruff.lint.flake8-pytest-style]
185) parametrize-names-type = 'list'
Marco Ricci Add a changelog and support...

Marco Ricci authored 1 month ago

186) 
Marco Ricci Sort sections in pyproject....

Marco Ricci authored 1 month ago

187) [tool.ruff.lint.pydocstyle]
188) convention = 'google'