generated from vanHeemstraSystems/template-default-repository
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b105a2e
commit dc9f860
Showing
48 changed files
with
257 additions
and
156 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Threagile Builder | ||
|
||
[![PyPI - Version](https://img.shields.io/pypi/v/threagile-builder.svg)](https://pypi.org/project/threagile-builder) | ||
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/threagile-builder.svg)](https://pypi.org/project/threagile-builder) | ||
|
||
----- | ||
|
||
## Table of Contents | ||
|
||
- [Installation](#installation) | ||
- [License](#license) | ||
|
||
## Installation | ||
|
||
```console | ||
pip install threagile-builder | ||
``` | ||
|
||
## License | ||
|
||
`threagile-builder` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,191 @@ | ||
# threagile-builder/pyproject.toml | ||
[build-system] | ||
requires = ["hatchling>=1.17.0", "hatch-vcs"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "threagile-builder" | ||
# version = "0.0.1" # Remove any existing version parameter. | ||
dynamic = ["version"] # requires [tool.setuptools_scm] | ||
description = 'An application to build Threagile YAML files with Blockly.' | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
license = { text = "MIT" } | ||
keywords = [ | ||
"hatch", | ||
"blockly", | ||
"threagile" | ||
] | ||
authors = [ | ||
{ name = "Willem van Heemstra", email = "[email protected]" }, | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
] | ||
dependencies = [ | ||
"click>=8.0.3", | ||
"Flask", | ||
"Flask-SQLAlchemy", | ||
"Flask-WTF", | ||
"apiflask", | ||
"black", | ||
"opentelemetry-api", | ||
"opentelemetry-sdk", | ||
"opentelemetry-instrumentation-flask", | ||
"opentelemetry-instrumentation-sqlalchemy", | ||
"opentelemetry-exporter-prometheus", | ||
"prefect", | ||
"prometheus_client", | ||
"python-dotenv", | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://github.com/vanHeemstraSystems/threagile-builder#readme" | ||
Donate = "https://github.com/sponsors/vanHeemstraSystems" | ||
History = "https://github.com/vanHeemstraSystems/threagile-builder/blob/master/HISTORY.md" | ||
Issues = "https://github.com/vanHeemstraSystems/threagile-builder/issues" | ||
Source = "https://github.com/vanHeemstraSystems/threagile-builder" | ||
|
||
[project.scripts] | ||
threagile-builder = "threagile_builder.cli:threagile_builder" | ||
|
||
[tool.setuptools_scm] # mandatory | ||
root = ".." | ||
write_to = "threagile-builder/src/threagile_builder/_version.py" | ||
tag_regex = "^(?P<prefix>threagile-builder[-_])(?P<version>[vV]?\\d+(?:\\.\\d+){0,2}[^\\+]*)(?:\\+.*)?$" | ||
fallback_version = "0.0.0" | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
# path = "./src/threagile_builder/__about__.py" | ||
|
||
[tool.hatch.envs.default] | ||
dependencies = [ | ||
"coverage[toml]>=6.5", | ||
"pytest", | ||
"flask" | ||
] | ||
[tool.hatch.envs.default.scripts] | ||
app = "python src/threagile_builder/app.py" | ||
|
||
[tool.hatch.build.hooks.vcs] | ||
version-file = "./src/threagile_builder/_version.py" | ||
|
||
[tool.hatch.metadata.hooks.vcs] | ||
|
||
[tool.hatch.build.targets.sdist] | ||
exclude = [ | ||
"/.github", | ||
] | ||
|
||
[tool.hatch.build.targets.wheel.hooks.mypyc] | ||
enable-by-default = false | ||
dependencies = ["hatch-mypyc>=0.14.1"] | ||
require-runtime-dependencies = true | ||
mypy-args = [ | ||
"--no-warn-unused-ignores", | ||
] | ||
|
||
[tool.mypy] | ||
disallow_untyped_defs = false | ||
follow_imports = "normal" | ||
ignore_missing_imports = true | ||
pretty = true | ||
show_column_numbers = true | ||
warn_no_return = false | ||
warn_unused_ignores = true | ||
|
||
[tool.black] | ||
target-version = ["py37"] | ||
line-length = 120 | ||
skip-string-normalization = true | ||
|
||
[tool.ruff] | ||
target-version = "py37" | ||
line-length = 120 | ||
select = [ | ||
"A", | ||
"B", | ||
"C", | ||
"DTZ", | ||
"E", | ||
"EM", | ||
"F", | ||
"FBT", | ||
"I", | ||
"ICN", | ||
"ISC", | ||
"N", | ||
"PLC", | ||
"PLE", | ||
"PLR", | ||
"PLW", | ||
"Q", | ||
"RUF", | ||
"S", | ||
"SIM", | ||
"T", | ||
"TID", | ||
"UP", | ||
"W", | ||
"YTT", | ||
] | ||
ignore = [ | ||
# Allow non-abstract empty methods in abstract base classes | ||
"B027", | ||
# Allow boolean positional values in function calls, like `dict.get(... True)` | ||
"FBT003", | ||
# Ignore checks for possible passwords | ||
"S105", "S106", "S107", | ||
# Ignore complexity | ||
"C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915", | ||
"PLC1901", # empty string comparisons | ||
"PLW2901", # `for` loop variable overwritten | ||
"SIM114", # Combine `if` branches using logical `or` operator | ||
] | ||
unfixable = [ | ||
# Don't touch unused imports | ||
"F401", | ||
] | ||
|
||
[tool.ruff.isort] | ||
known-first-party = ["threagile_builder"] | ||
|
||
[tool.ruff.flake8-quotes] | ||
inline-quotes = "single" | ||
|
||
[tool.ruff.flake8-tidy-imports] | ||
ban-relative-imports = "all" | ||
|
||
[tool.ruff.per-file-ignores] | ||
# Tests can use relative imports and assertions | ||
"tests/**/*" = ["TID252", "S101"] | ||
|
||
[tool.coverage.run] | ||
source_pkgs = ["threagile_builder", "tests"] | ||
branch = true | ||
parallel = true | ||
omit = [ | ||
"src/threagile_builder/__about__.py", | ||
"src/threagile_builder/__main__.py", | ||
] | ||
|
||
[tool.coverage.paths] | ||
threagile_builder = ["src/threagile_builder", "*/threagile-builder/src/threagile_builder"] | ||
tests = ["tests", "*/threagile-builder/tests"] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"no cov", | ||
"if __name__ == .__main__.:", | ||
"if TYPE_CHECKING:", | ||
] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
ORIGINAL-threagile-builder/src/threagile_builder/__about__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# threagile-builder/scr/threagile_builder/__about__.py | ||
__version__ = "0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# threagile-builder/scr/threagile_builder/__init__.py | ||
|
||
# SPDX-FileCopyrightText: 2024-present Willem van Heemstra <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# threagile-builder/__init__.py | ||
|
||
# SPDX-FileCopyrightText: 2024-present Willem van Heemstra <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024-present Willem van Heemstra <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.