Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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