Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Change to Pydantic Version to v2 #20

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
services:
arangodb:
image: arangodb:3.8
image: arangodb:3.11
env:
ARANGO_NO_AUTH: 1
ports:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Set up Python 🐍
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"

- name: Install Poetry and pre-commit 💈
run: pip install poetry pre-commit
Expand Down
24 changes: 10 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -21,22 +21,18 @@ repos:
args: ["--fix=crlf"]
files: \.bat$
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 23.9.1
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 4.0.1
language_version: python3.11
args: [ --line-length=88 ]
stages: [ commit, push ]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.290
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
- repo: https://github.com/twu/skjold
rev: v0.5.0
hooks:
- id: skjold
- id: ruff
args: [ --fix, --exit-non-zero-on-fix, --line-length=120 ]
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [0.4.0] - 2023-09-12
- Switch to [Pydantic v2](https://docs.pydantic.dev/latest/)
- switch to python-arango because aioarango not maintained since 2 years
- add asyncer for [async](https://asyncer.tiangolo.com/) code calls
- rewrite tests to asyncer

### Todo 0.4.0
- add poetry
- rework tasks.py (neccessary with ruff?)
- rework setup.cfg (neccessary with ruff?)

## [0.3.1] - 2022-08-05

Expand Down
2 changes: 1 addition & 1 deletion arangodantic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from arangodantic.cursor import ArangodanticCursor
from arangodantic.directions import ASCENDING, DESCENDING
from arangodantic.exceptions import *
from arangodantic.graphs import ArangodanticGraphConfig, EdgeDefinition, Graph
from arangodantic.graphs import ArangodanticGraphConfig, EdgeDefinition, GraphModel
from arangodantic.models import (
ArangodanticCollectionConfig,
DocumentModel,
Expand Down
6 changes: 0 additions & 6 deletions arangodantic/arangdb_error_codes.py

This file was deleted.

249 changes: 0 additions & 249 deletions arangodantic/asynccontextmanager.py

This file was deleted.

Empty file.
Loading