diff --git a/.bumpversion.cfg b/.bumpversion.cfg new file mode 100644 index 0000000..598b5b4 --- /dev/null +++ b/.bumpversion.cfg @@ -0,0 +1,8 @@ +[bumpversion] +current_version = 0.1.0 +tag = True +commit = True + +[bumpversion:file:src/__init__.py] +search = __version__ = "{current_version}" +replace = __version__ = "{new_version}" diff --git a/.gitignore b/.gitignore index fce84ba..d19c913 100644 --- a/.gitignore +++ b/.gitignore @@ -219,4 +219,7 @@ compile_commands.json .history/* **/tempCodeRunnerFile.py -output/** \ No newline at end of file +output/** + +# Rust +target/ \ No newline at end of file diff --git a/.trunk/configs/.flake8 b/.trunk/configs/.flake8 deleted file mode 100644 index d84bb77..0000000 --- a/.trunk/configs/.flake8 +++ /dev/null @@ -1,10 +0,0 @@ -# Autoformatter friendly flake8 config (all formatting rules disabled) -[flake8] -extend-ignore = D1, D2, E1, E2, E3, E501, W1, W2, W3, W5 -exclude = - .history - .vscode - .git - .venv - __pycache__ - diff --git a/.trunk/configs/.isort.cfg b/.trunk/configs/.isort.cfg deleted file mode 100644 index b9fb3f3..0000000 --- a/.trunk/configs/.isort.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[settings] -profile=black diff --git a/.trunk/configs/.markdownlint.yaml b/.trunk/configs/.markdownlint.yaml deleted file mode 100644 index fb94039..0000000 --- a/.trunk/configs/.markdownlint.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Autoformatter friendly markdownlint config (all formatting rules disabled) -default: true -blank_lines: false -bullet: false -html: false -indentation: false -line_length: false -spaces: false -url: false -whitespace: false diff --git a/.trunk/configs/.sqlfluff b/.trunk/configs/.sqlfluff deleted file mode 100644 index 5d2192c..0000000 --- a/.trunk/configs/.sqlfluff +++ /dev/null @@ -1,2 +0,0 @@ -[sqlfluff] -dialect = ansi diff --git a/.trunk/configs/.yamllint.yaml b/.trunk/configs/.yamllint.yaml deleted file mode 100644 index 4d44466..0000000 --- a/.trunk/configs/.yamllint.yaml +++ /dev/null @@ -1,10 +0,0 @@ -rules: - quoted-strings: - required: only-when-needed - extra-allowed: ["{|}"] - empty-values: - forbid-in-block-mappings: true - forbid-in-flow-mappings: true - key-duplicates: {} - octal-values: - forbid-implicit-octal: true diff --git a/.trunk/configs/ruff.toml b/.trunk/configs/ruff.toml deleted file mode 100644 index d4fd81e..0000000 --- a/.trunk/configs/ruff.toml +++ /dev/null @@ -1,78 +0,0 @@ -# Generic, formatter-friendly config. - - -# Never enforce `E501` (line length violations). This should be handled by formatters. - -exclude = [ - ".bzr", - ".direnv", - ".eggs", - ".git", - ".git-rewrite", - ".hg", - ".ipynb_checkpoints", - ".mypy_cache", - ".nox", - ".pants.d", - ".pyenv", - ".pytest_cache", - ".pytype", - ".ruff_cache", - ".svn", - ".tox", - ".venv", - ".vscode", - "__pypackages__", - "_build", - "buck-out", - "build", - "dist", - "node_modules", - "site-packages", - "venv", - "__pychache__", -] -line-length = 88 -indent-width = 4 -target-version = "py312" -[lint] -# 1. Enable flake8-bugbear (`B`) rules, in addition to the defaults. -lint.select = ["E4", "E7", "E9", "F", "B"] -lint.ignore = ["E501","F401"] -dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" -[lint.per-file-ignores] -"__init__.py" = ["E402"] -"**/{tests,docs,tools}/*" = ["E402"] -# Allow fix for all enabled rules (when `--fix`) is provided. -fixable = ["ALL"] -unfixable = [] - -# Allow unused variables when underscore-prefixed. -dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" - -[format] -# Like Black, use double quotes for strings. -quote-style = "double" - -# Like Black, indent with spaces, rather than tabs. -indent-style = "space" - -# Like Black, respect magic trailing commas. -skip-magic-trailing-comma = false - -# Like Black, automatically detect the appropriate line ending. -line-ending = "auto" - -# Enable auto-formatting of code examples in docstrings. Markdown, -# reStructuredText code/literal blocks and doctests are all supported. -# -# This is currently disabled by default, but it is planned for this -# to be opt-out in the future. -docstring-code-format = false - -# Set the line length limit used when formatting code snippets in -# docstrings. -# -# This only has an effect when the `docstring-code-format` setting is -# enabled. -docstring-code-line-length = "dynamic" diff --git a/.trunk/configs/svgo.config.js b/.trunk/configs/svgo.config.js deleted file mode 100644 index b257d13..0000000 --- a/.trunk/configs/svgo.config.js +++ /dev/null @@ -1,14 +0,0 @@ -module.exports = { - plugins: [ - { - name: "preset-default", - params: { - overrides: { - removeViewBox: false, // https://github.com/svg/svgo/issues/1128 - sortAttrs: true, - removeOffCanvasPaths: true, - }, - }, - }, - ], -}; diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index c94f41c..49ea038 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -2,58 +2,9 @@ # To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml version: 0.1 cli: - version: 1.22.2 + version: 1.22.8 plugins: sources: - id: trunk - ref: v1.6.0 + ref: v1.6.4 uri: https://github.com/trunk-io/plugins -runtimes: - enabled: - - node@18.12.1 - - python@3.10.8 -lint: - disabled: - - flake8 - - taplo - - pylint - - mypy - - git-diff-check - - checkov - - oxipng - - prettier - - trivy - - trufflehog - - black - - isort - enabled: - - svgo@3.3.2 - - osv-scanner@1.8.1 - - sql-formatter@15.3.2 - - sqlfluff@3.0.7 - - ruff@0.4.10 - - bandit@1.7.9 - - markdownlint@0.41.0 - - yamllint@1.35.1 -actions: - disabled: - - trunk-fmt-pre-commit - - trunk-announce - - trunk-check-pre-push - - trunk-upgrade-available -#ignore the following folders -# .history -# .vscode -# .idea -# .git -# .github -# .trunk# .vscode -# node_modules -# .DS_Store -# .pytest_cache -# .mypy_cache -# build -# dist -# __pycache__ -# .venv -# .ipynb_checkpoints