Skip to content

Commit 5da0b49

Browse files
authored
Merge pull request #205 from dpguthrie/feat/set-cookie-and-crumb
Set cookies and crumb
2 parents cb5b2bd + 231a19c commit 5da0b49

21 files changed

+1632
-267
lines changed

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
end_of_line = lf
12+
13+
[Makefile]
14+
indent_style = tab
15+
16+
[*.md]
17+
trim_trailing_whitespace = false
18+
19+
[*.{yml,toml,yaml}]
20+
indent_size = 2

.flake8

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[flake8]
2+
show-source = true
3+
statistics = true
4+
exclude =
5+
.git
6+
7+
# These settings make flake8 compatible with Black:
8+
# max-line-length: https://black.readthedocs.io/en/stable/the_black_code_style.html#line-length
9+
# E203: https://black.readthedocs.io/en/stable/the_black_code_style.html#slices
10+
# E503: https://black.readthedocs.io/en/stable/the_black_code_style.html#line-breaks-binary-operators
11+
max-line-length = 88
12+
ignore = E203, W503

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build
2+
3+
on:
4+
pull_request_target:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python 3.9
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: "3.9"
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install poetry
22+
make install_dev
23+
- name: Run tests and coverage
24+
run: make test_cov
25+
- name: Upload coverage to Codecov
26+
uses: codecov/codecov-action@v2

.github/workflows/docs.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Docs
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
deploy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-python@v2
11+
with:
12+
python-version: 3.x
13+
- run: pip install mkdocs-material "mkdocstrings[python]" mike
14+
- run: mkdocs gh-deploy --force

.github/workflows/publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Publish Yahooquery
2+
on:
3+
push:
4+
tags:
5+
- "v*.*.*"
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Build and publish to pypi
12+
uses: JRubics/[email protected]
13+
with:
14+
pypi_token: ${{ secrets.PYPI_KEY }}

.github/workflows/python-publish.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.isort.cfg

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[settings]
2+
import_heading_firstparty=first party
3+
import_heading_future=future
4+
import_heading_local=local
5+
import_heading_stdlib=stdlib
6+
import_heading_thirdparty=third party
7+
known_third_party=sgqlc
8+
9+
# These settings makes isort compatible with Black:
10+
# https://github.com/psf/black#how-black-wraps-lines
11+
multi_line_output=3
12+
include_trailing_comma=1
13+
force_grid_wrap=0
14+
use_parentheses=1
15+
line_length=88

.pre-commit-config.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
default_stages: [push]
2+
default_language_version:
3+
python: python3.9
4+
repos:
5+
- repo: local
6+
hooks:
7+
- id: isort
8+
stages: [commit,push]
9+
name: isort
10+
entry: poetry run isort -rc
11+
language: system
12+
types: [python]
13+
- id: black
14+
stages: [commit,push]
15+
name: black
16+
entry: poetry run black -S .
17+
language: system
18+
types: [python]
19+
- id: mypy
20+
stages: [commit,push]
21+
name: mypy
22+
entry: poetry run mypy --ignore-missing-imports
23+
language: system
24+
types: [python]
25+
- repo: https://github.com/pre-commit/pre-commit-hooks
26+
rev: v2.1.0
27+
hooks:
28+
- id: trailing-whitespace
29+
stages: [commit,push]
30+
- id: check-added-large-files
31+
- id: check-ast
32+
stages: [commit,push]
33+
- id: check-case-conflict
34+
- id: check-byte-order-marker
35+
- id: check-executables-have-shebangs
36+
- id: check-docstring-first
37+
stages: [commit,push]
38+
- id: check-json
39+
- id: check-merge-conflict
40+
stages: [commit,push]
41+
- id: check-symlinks
42+
- id: check-vcs-permalinks
43+
- id: check-xml
44+
- id: check-yaml
45+
- id: debug-statements
46+
- id: detect-private-key
47+
- id: flake8
48+
stages: [commit,push]
49+
- id: forbid-new-submodules
50+
- id: no-commit-to-branch
51+
stages: [commit,push]
52+
args:
53+
- --branch=main

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

MANIFEST.in

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)