Skip to content

Commit 819ca26

Browse files
committed
Rip as much of Strawberry's CI/CD as possible for Sqlalchemy mapper.
Removed all the tweet stuff as it doesn't feel relevant. Involved siwtching to poetry, which is a win. Github actions are going to fail until we add the secrets. Hoping Patrick can do that since I don't think I have access.
1 parent b6cf024 commit 819ca26

33 files changed

+2604
-445
lines changed

.alexignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CHANGELOG.md
2+
TWEET.md

.alexrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"allow": [
3+
"black",
4+
"hook",
5+
"hooks",
6+
"failure",
7+
"period",
8+
"execute",
9+
"executed",
10+
"executes",
11+
"execution",
12+
"special",
13+
"primitive",
14+
"invalid"
15+
]
16+
}

.codecov.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: yes
4+
5+
coverage:
6+
precision: 2
7+
round: down
8+
range: "70...100"
9+
10+
status:
11+
project: yes
12+
patch: yes
13+
changes: no
14+
15+
comment:
16+
layout: "header, diff"
17+
behavior: default
18+
require_changes: no
19+
20+
ignore:
21+
- "strawberry/ext/mypy_plugin.py"
22+
- "setup.py"
23+
- "strawberry/experimental/pydantic/conversion_types.py"

.devcontainer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ARG VARIANT=3.8
2+
FROM mcr.microsoft.com/vscode/devcontainers/python:${VARIANT}
3+
4+
RUN pip3 install poetry pre-commit
5+
RUN poetry config virtualenvs.in-project true

.devcontainer/devcontainer.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "Strawberry Sqlalchemy Mapper",
3+
"context": "..",
4+
"build": {
5+
"dockerfile": "Dockerfile"
6+
},
7+
8+
"settings": {
9+
"terminal.integrated.shell.linux": "/bin/bash",
10+
"python.pythonPath": "/usr/local/bin/python",
11+
"python.linting.enabled": true,
12+
"python.linting.pylintEnabled": true,
13+
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
14+
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
15+
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
16+
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
17+
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
18+
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
19+
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
20+
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
21+
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
22+
},
23+
24+
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "eamodio.gitlens"],
25+
"postCreateCommand": "sh ./.devcontainer/post-install.sh",
26+
}

.devcontainer/post-install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
poetry install
2+
pre-commit install --install-hooks

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.git
2+
.github
3+
.benchmarks
4+
.devcontainer
5+
.venv
6+
.mypy_cache
7+
.nox
8+
.ruff_cache

.github/dependabot.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: pip
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
allow:
9+
- dependency-type: direct
10+
ignore:
11+
- dependency-name: wmctrl
12+
versions:
13+
- "0.4"
14+
- dependency-name: sanic
15+
versions:
16+
- 21.3.1
17+
- 21.3.2
18+
- dependency-name: importlib-metadata
19+
versions:
20+
- 3.6.0
21+
- 3.9.0
22+
- dependency-name: identify
23+
versions:
24+
- 1.6.1
25+
- 2.2.1
26+
- dependency-name: pre-commit
27+
versions:
28+
- 2.10.1

.github/logo.png

71.7 KB
Loading

.github/pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[tool.ruff]
2+
extend = "../pyproject.toml"
3+
extend-ignore = [
4+
"T201",
5+
]

0 commit comments

Comments
 (0)