From b0a1e03326f0ccc46d71d38a4ef4cb59bcf06f07 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 2 Jul 2025 08:31:00 -0300 Subject: [PATCH] [Added] Validation config --- .flake8 | 11 +++++++++++ .gitignore | 14 ++++++++++++++ .pre-commit-config.yaml | 43 +++++++++++++++++++++++++++++++++++++++++ setup.cfg | 2 ++ 4 files changed, 70 insertions(+) create mode 100644 .flake8 create mode 100644 .gitignore create mode 100644 .pre-commit-config.yaml create mode 100644 setup.cfg diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..03c1724 --- /dev/null +++ b/.flake8 @@ -0,0 +1,11 @@ +# .flake8 +[flake8] +max-line-length = 127 +exclude = + __no__ + +# extend-ignore = E203, W503 +# Add plugins if you installed them via additional_dependencies: +# select = C,E,F,W,B,B950 # Example: using flake8-bugbear (B, B950) +# docstring-convention = google +# ... other flake8 or plugin settings diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2ae5290 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +#Ignore Python cache and virtual environment directories +__pycache__/ +*.onnx +*.safetensors +*.pth +test/ +*.epr +.*.dst +.*~ +*.mp3 +models/all_public_uvr_models +__no__ +models/.catalog.csv +0LEEME diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..dd05e9e --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,43 @@ +# .pre-commit-config.yaml + +# Optional: Set a minimum pre-commit version +# min_pre_commit_version: '2.9.0' + +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 # Use the latest stable version + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + # - id: check-added-large-files # Optional: good for catching accidental large file commits + +- repo: https://github.com/pycqa/flake8 + rev: 7.0.0 # Use the latest stable version of flake8 + hooks: + - id: flake8 + # Optional: specify arguments for flake8 + # args: ['--max-line-length=88', '--extend-ignore=E203'] + # It's often better to configure flake8 via .flake8, setup.cfg, or pyproject.toml + # so it's consistent whether run via pre-commit or manually. + additional_dependencies: [ + # Add any flake8 plugins you use here, e.g.: + # 'flake8-bugbear', + # 'flake8-comprehensions', + # 'flake8-docstrings', + # 'pep8-naming' + ] + +- repo: https://github.com/codespell-project/codespell + rev: v2.2.6 # Use the latest stable version + hooks: + - id: codespell + args: [ + # "--ignore-words-list=your,custom,words,here", + # Or point to a file: + # "--ignore-words=.codespellignore", + "--skip=*.json,*.lock,*.svg,*.css,*.html", # Skip file types less likely to need it + # "--check-filenames", + # "--check-hidden" + ] + # You can create a .codespellignore file with one word per line for words to ignore. diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..0fdb3d0 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[flake8] +max-line-length = 127