Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 0 additions & 5 deletions .coveragerc

This file was deleted.

125 changes: 6 additions & 119 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
.mypy_cache/
__pycache__/
tags

# Swap
[._]*.s[a-v][a-z]
!*.svg # comment out if you don't need vector files
# comment out if you don't need vector files
!*.svg
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
Expand Down Expand Up @@ -105,7 +102,7 @@ ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
Expand All @@ -132,6 +129,8 @@ venv/
ENV/
env.bak/
venv.bak/
.direnv
.envrc

# Spyder project settings
.spyderproject
Expand Down Expand Up @@ -160,6 +159,7 @@ cython_debug/
# Editors
.vscode/
.idea/
.cursor/

# Vagrant
.vagrant/
Expand All @@ -169,116 +169,3 @@ cython_debug/

# Windows
Thumbs.db

# Source for the following rules: https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
.direnv
.envrc

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

.cursor/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Relevant links:

We support Python 3.12 and every later version that has not yet reached end of life, as listed in the [Python version status page](https://devguide.python.org/versions/). The currently supported versions are the ones tested in [CI](.github/workflows/ci.yml).

Once a Python version reaches end of life, support for it may be dropped in a **minor release**, and **this won't be considered a breaking change**. For instance, Python 3.9 reached end of life in October 2025, so it can be removed in a minor update.
Once a Python version reaches end of life, support for it may be dropped in a **minor release**, and **this won't be considered a breaking change**. For instance, once Python 3.12 reaches end of life in October 2028, support for it can be dropped in a minor update.

### Platforms

Expand Down
47 changes: 0 additions & 47 deletions src/auth/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,50 +1,3 @@
import pytest
from faker import Faker

fake = Faker()

# store history of failures per test class name and per index
# in parametrize (if parametrize used)
_test_failed_incremental: dict[str, dict[tuple[int, ...], str]] = {}


def pytest_runtest_makereport(
item: pytest.Function, call: pytest.CallInfo[None]
) -> None:
if "incremental" in item.keywords and call.excinfo is not None:
# the test has failed
# retrieve the class name of the test
cls_name = str(item.cls)
# retrieve the index of the test (if parametrize is used
# in combination with incremental)
parametrize_index = (
tuple(item.callspec.indices.values()) if hasattr(item, "callspec") else ()
)
# retrieve the name of the test function
test_name = item.originalname or item.name
# store in _test_failed_incremental the original name of the failed test
_test_failed_incremental.setdefault(cls_name, {}).setdefault(
parametrize_index, test_name
)


def pytest_runtest_setup(item: pytest.Function) -> None:
if "incremental" in item.keywords:
# retrieve the class name of the test
cls_name = str(item.cls)
# check if a previous test has failed for this class
if cls_name in _test_failed_incremental:
# retrieve the index of the test (if parametrize is used
# in combination with incremental)
parametrize_index = (
tuple(item.callspec.indices.values())
if hasattr(item, "callspec")
else ()
)
# retrieve the name of the first test function to
# fail for this class name and index
test_name = _test_failed_incremental[cls_name].get(parametrize_index, None)
# if name found, test has failed for the combination of
# class name & test name
if test_name is not None:
pytest.xfail(f"previous test failed ({test_name})")
47 changes: 0 additions & 47 deletions src/functions/conftest.py

This file was deleted.

21 changes: 0 additions & 21 deletions src/postgrest/LICENSE

This file was deleted.

16 changes: 0 additions & 16 deletions src/storage/MAINTAINERS.md

This file was deleted.

Loading