Merge pull request 'add bumpversion, remove trunk' (#9) from dev into main
Reviewed-on: WorldTeacher/LibrarySystem#9
This commit is contained in:
8
.bumpversion.cfg
Normal file
8
.bumpversion.cfg
Normal file
@@ -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}"
|
||||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -219,4 +219,7 @@ compile_commands.json
|
|||||||
.history/*
|
.history/*
|
||||||
**/tempCodeRunnerFile.py
|
**/tempCodeRunnerFile.py
|
||||||
|
|
||||||
output/**
|
output/**
|
||||||
|
|
||||||
|
# Rust
|
||||||
|
target/
|
||||||
@@ -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__
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[settings]
|
|
||||||
profile=black
|
|
||||||
@@ -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
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[sqlfluff]
|
|
||||||
dialect = ansi
|
|
||||||
@@ -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
|
|
||||||
@@ -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"
|
|
||||||
@@ -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,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
||||||
@@ -2,58 +2,9 @@
|
|||||||
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
|
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
|
||||||
version: 0.1
|
version: 0.1
|
||||||
cli:
|
cli:
|
||||||
version: 1.22.2
|
version: 1.22.8
|
||||||
plugins:
|
plugins:
|
||||||
sources:
|
sources:
|
||||||
- id: trunk
|
- id: trunk
|
||||||
ref: v1.6.0
|
ref: v1.6.4
|
||||||
uri: https://github.com/trunk-io/plugins
|
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user