Skip to content

Commit

Permalink
Revert "Merge branch 'feat/starlite-integration'"
Browse files Browse the repository at this point in the history
This reverts commit 811174d, reversing
changes made to b95dd95.
  • Loading branch information
gazorby committed Jan 30, 2023
1 parent 75d593a commit 65da6f2
Show file tree
Hide file tree
Showing 567 changed files with 7,958 additions and 40,678 deletions.
10 changes: 3 additions & 7 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
[run]
branch = True

source = .

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
Expand All @@ -10,6 +12,7 @@ exclude_lines =

# Don't complain about missing debug-only code:
def __repr__
def __str__
if self\.debug

# Don't complain if tests don't hit defensive assertion code:
Expand All @@ -21,19 +24,12 @@ exclude_lines =
if 0:
if __name__ == .__main__.:

# Don't complain about abstract methods, they aren't run:
@(abc\.)?abstractmethod

# Don't complain about TYPE_CHECKING
if TYPE_CHECKING:

@overload

ignore_errors = True

omit =
./.venv/**
./tests/*

[html]
directory = coverage_html_report
2 changes: 1 addition & 1 deletion .devcontainer/post-install.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
poetry install
pre-commit install --install-hooks
pre-commit install
8 changes: 0 additions & 8 deletions .dockerignore

This file was deleted.

14 changes: 14 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[flake8]
max-line-length = 89
exclude=.venv,.git
ignore = W503
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,

per-file-ignores =
tests/types/test_lazy_types.py:E800
tests/test_forward_references.py:E800
tests/schema/test_resolvers.py:E800
tests/types/test_string_annotations.py:E800
tests/federation/test_printer.py:E800
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: [patrick91, BryceBeagle]
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATES/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Bug report
about: Create a bug report to help us improve the Strawberry GraphQL library
---
<!-- Provide a general summary of the bug in the title above. -->

<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->

## Describe the Bug

<!-- A clear and concise description of what the bug is. -->

## System Information

- Operating system:
- Strawberry version:

## Additional Context

<!-- Add any other relevant information about the problem here. -->
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATES/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature request
about: Suggest a new feature or changes to existing features
---
<!--- Provide a general summary of the changes you want in the title above. -->

<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->

## Feature Request Type

- [ ] Core functionality
- [ ] Alteration (enhancement/optimization) of existing feature(s)
- [ ] New behavior

## Description

<!-- A few sentences describing what it is that you'd like to see in Strawberry. -->
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATES/other_issues.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Other issues
about: Anything else that doesn't fall into the above categories.
---
<!--- Provide a general summary of the changes you want in the title above. -->

<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
32 changes: 32 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!--- Provide a general summary of your changes in the title above. -->

<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->

## Description

<!--- Describe your changes in detail here. -->

## Types of Changes

<!--- What types of changes does your pull request introduce? Put an `x` in all the boxes that apply. -->
- [ ] Core
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement/optimization
- [ ] Documentation

## Issues Fixed or Closed by This PR

*

## Checklist

<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have read the CONTRIBUTING document.
- [ ] I have added tests to cover my changes.
- [ ] I have tested the changes and verified that they work and don't break anything (as well as I can manage).
1 change: 1 addition & 0 deletions .github/bot-action/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import httpx


API_URL = os.environ["BOT_API_URL"]
API_TOKEN = os.environ["API_SECRET"]

Expand Down
5 changes: 0 additions & 5 deletions .github/pyproject.toml

This file was deleted.

1 change: 1 addition & 0 deletions .github/release-check-action/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from config import GITHUB_WORKSPACE, RELEASE_FILE_PATH
from release import InvalidReleaseFileError, get_release_info


release_file = pathlib.Path(GITHUB_WORKSPACE) / RELEASE_FILE_PATH

release_info = None
Expand Down
1 change: 1 addition & 0 deletions .github/release-check-action/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os


RELEASE_FILE_PATH = "RELEASE.md"
GITHUB_SHA = os.environ["GITHUB_SHA"]
GITHUB_EVENT_PATH = os.environ["GITHUB_EVENT_PATH"]
Expand Down
1 change: 1 addition & 0 deletions .github/release-check-action/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from enum import Enum
from pathlib import Path


RELEASE_TYPE_REGEX = re.compile(r"^[Rr]elease [Tt]ype: (major|minor|patch)$")


Expand Down
40 changes: 27 additions & 13 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🔐 CodeQL
name: "CodeQL"

on:
push:
Expand All @@ -10,21 +10,35 @@ on:

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

permissions:
security-events: write
actions: read
contents: read
strategy:
fail-fast: false
matrix:
language: ['python']

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: python
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
47 changes: 0 additions & 47 deletions .github/workflows/federation-compatibility.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/invite-contributors.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 👥 Invite contributors
name: Invite contributors

on:
push:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🦺 MyPy
name: MyPy

on:
push:
Expand All @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-python@v4
- uses: actions/setup-python@v2
id: setup-python
with:
python-version: '3.10'
Expand All @@ -38,5 +38,4 @@ jobs:
run: poetry install
if: steps.cache-poetry-dependencies.outputs.cache-hit != 'true'

- run: mkdir -p .mypy_cache
- run: poetry run mypy --ignore-missing-imports --config-file mypy.ini --install-types --non-interactive --show-traceback strawberry
2 changes: 1 addition & 1 deletion .github/workflows/ok-to-preview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🆗 Ok to preview
name: Ok to preview

on:
pull_request_target:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pre-release-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🎁 Release test pre-release version
name: Release test pre-release version

on:
repository_dispatch:
Expand All @@ -13,7 +13,7 @@ jobs:
with:
ref: ${{ github.event.client_payload.pull_request.head.sha }}
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install deps
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: |
autopub prepare
poetry version $(poetry version -s).dev.$(date '+%s')
poetry version $(poetry version -s)-dev.$(date '+%s')
poetry build
poetry publish --username __token__
echo "::set-output name=version::$(poetry version -s)"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🆙 Release file check
name: Release file check

on:
pull_request_target:
Expand Down
Loading

0 comments on commit 65da6f2

Please sign in to comment.