Skip to content

Commit

Permalink
chore: upgrade dependencies (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlstadther authored Aug 22, 2024
1 parent 3b84500 commit d6476e5
Show file tree
Hide file tree
Showing 8 changed files with 565 additions and 541 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
poetry install
- name: Lint with Ruff
run: poetry run ruff --output-format=github .
run: poetry run ruff check --output-format=github .

- name: Lint with Sqlfluff
run: poetry run sqlfluff lint .
Expand Down
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ default_install_hook_types: [pre-commit, commit-msg]
repos:
# misc pre-commit helpers
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: check-added-large-files
args:
Expand All @@ -20,14 +20,14 @@ repos:

# ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
rev: v0.6.2
hooks:
- id: ruff-format
- id: ruff

# mypy
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
rev: v1.11.1
hooks:
- id: mypy
additional_dependencies: ['pydantic', 'types-requests']
Expand All @@ -44,15 +44,15 @@ repos:

# sqlfluff
- repo: https://github.com/sqlfluff/sqlfluff
rev: 2.3.3
rev: 3.1.1
hooks:
- id: sqlfluff-fix
- id: sqlfluff-lint

# commitlint
# (configuration in commitlint.config.js)
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.11.0
rev: v9.16.0
hooks:
- id: commitlint
additional_dependencies: ['@commitlint/config-conventional']
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ test:
poetry run coverage run -m pytest -vv $(TEST_DIR) && poetry run coverage report -m

test-all:
poetry run nox --reuse-existing-virtualenvs --no-install
poetry run nox --reuse-venv=yes --no-install
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def tests(session: nox.Session) -> None:
def lint(session: nox.Session) -> None:
session = _install_poetry(session=session)
session.run("ruff", "format", "--check", ".")
session.run("ruff", "--output-format=github", ".")
session.run("ruff", "check", "--output-format=github", ".")
session.run("sqlfluff", "lint", ".")


Expand Down
1,056 changes: 540 additions & 516 deletions poetry.lock

Large diffs are not rendered by default.

30 changes: 13 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ build-backend = "poetry.core.masonry.api"
python = "^3.9"

[tool.poetry.group.dev.dependencies]
coverage = {extras = ["toml"], version = "^7.3.2"}
mkdocs = "^1.5.3"
mkdocs-material = "^9.4.5"
mkdocstrings = {extras = ["python"], version = "^0.23.0"}
mypy = "^1.6.0"
nox = "^2023.4.22"
pre-commit = "^3.4.0"
pytest = "^7.4.2"
pytest-cov = "^4.1.0"
ruff = "^0.1.3"
sqlfluff = "^2.3.3"
coverage = {extras = ["toml"], version = "^7.6.1"}
mkdocs = "^1.6.0"
mkdocs-material = "^9.5.32"
mkdocstrings = {extras = ["python"], version = "^0.25.2"}
mypy = "^1.11.1"
nox = "^2024.4.15"
pre-commit = "^3.8.0"
pytest = "^8.3.2"
pytest-cov = "^5.0.0"
ruff = "^0.6.2"
sqlfluff = "^3.1.1"


##########
Expand Down Expand Up @@ -63,10 +63,12 @@ ignore_missing_imports = true
# Ruff
######
[tool.ruff]
line-length = 160
# auto-apply changes
#fix = true
#exit-non-zero-on-fix = true

[tool.ruff.lint]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = [
"B", # flake8-bugbear
Expand Down Expand Up @@ -109,12 +111,6 @@ exclude = [
"venv",
]

line-length = 160


[tool.ruff.mccabe]
max-complexity = 18


########
# Pytest
Expand Down
1 change: 1 addition & 0 deletions src/sample/placeholder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
A placeholder module for sample content
"""

from pathlib import Path
from random import randint

Expand Down

0 comments on commit d6476e5

Please sign in to comment.