Skip to content

Commit dd20f12

Browse files
Adds ruff and first experiments with vector DB (#386)
* Adds ruff and first experiments with vector DB * Updates packages * Small linting fixes * Small linting fixes * Small linting fixes * Fix bot manifest
1 parent 51c299e commit dd20f12

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+4360
-2190
lines changed

Diff for: .github/workflows/megalinter.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v3
1515
- name: Mega Linter
16-
uses: oxsecurity/megalinter/flavors/python@v6
16+
uses: oxsecurity/megalinter/flavors/python@v7
1717
env:
1818
VALIDATE_ALL_CODEBASE: true
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,6 @@ venv.bak/
106106

107107
.idea/*
108108
env*
109-
fly.toml
109+
fly.toml
110+
111+
.ruff_cache

Diff for: .mega-linter.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ DISABLE_LINTERS:
1111
- SPELL_CSPELL
1212
- SPELL_PROSELINT
1313
- PYTHON_BANDIT
14+
- PYTHON_FLAKE8
1415
# We use MyPy
16+
- PYTHON_PYLINT
1517
- PYTHON_PYRIGHT
1618
DISABLE_ERRORS_LINTERS:
1719
- REPOSITORY_DEVSKIM
@@ -36,6 +38,6 @@ PYTHON_MYPY_CONFIG_FILE: "pyproject.toml"
3638
REPOSITORY_DEVSKIM_ARGUMENTS: ["-g", ".mypy_cache/*"]
3739
SHOW_ELAPSED_TIME: true
3840
SPELL_MISSPELL_FILTER_REGEX_EXCLUDE: '(\.automation/generated|docs/descriptors)'
39-
YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: '(templates/\.mega-linter\.yml)'
41+
YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: '(templates/\.mega-linter\.yml/tests)'
4042
YAML_PRETTIER_FILTER_REGEX_EXCLUDE: '(templates/\.mega-linter\.yml|mkdocs\.yml)'
41-
YAML_V8R_FILTER_REGEX_EXCLUDE: '(descriptors|templates/\.mega-linter\.yml|\.codecov\.yml)'
43+
YAML_V8R_FILTER_REGEX_EXCLUDE: '(descriptors|templates/\.mega-linter\.yml|\.codecov\.yml)'

Diff for: .pre-commit-config.yaml

+7-24
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,17 @@
11
---
22
repos:
33
- repo: https://github.com/ambv/black
4-
rev: 22.12.0
4+
rev: 23.3.0
55
hooks:
66
- id: black
77
language_version: python3.10
8+
args: [--line-length=119]
89

9-
- repo: https://github.com/pycqa/isort
10-
rev: 5.10.1
10+
- repo: https://github.com/charliermarsh/ruff-pre-commit
11+
rev: "v0.0.277"
1112
hooks:
12-
- id: isort
13-
name: isort (python)
14-
types: [python]
15-
args: ["--profile", "black"]
16-
17-
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v4.3.0
19-
hooks:
20-
- id: trailing-whitespace
21-
- id: end-of-file-fixer
22-
- id: check-yaml
23-
- id: debug-statements
24-
- id: name-tests-test
25-
26-
- repo: https://github.com/pre-commit/pygrep-hooks
27-
rev: v1.9.0
28-
hooks:
29-
- id: python-check-blanket-noqa
30-
- id: python-no-log-warn
31-
- id: python-use-type-annotations
13+
- id: ruff-autofix
14+
args: [--fix]
3215

3316
- repo: local
3417
# We do not use pre-commit/mirrors-mypy,
@@ -42,7 +25,7 @@ repos:
4225
entry: mypy
4326
language: python
4427
language_version: python3.10
45-
additional_dependencies: ["mypy==0.991"]
28+
additional_dependencies: ["mypy==1.4.1"]
4629
types: [python]
4730
# use require_serial so that script
4831
# is only called once per commit

0 commit comments

Comments
 (0)