Skip to content

Commit

Permalink
update deps, pytest8, fix whitespace (#43)
Browse files Browse the repository at this point in the history
* update deps, pytest8, fix whitespace

* fix deps
  • Loading branch information
brianpatrickoreilly committed Jun 13, 2024
1 parent 7ee69f3 commit 516dec0
Show file tree
Hide file tree
Showing 9 changed files with 136 additions and 157 deletions.
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Put the GitHub issue number or Jira ticket ID here! -->
Ticket:
Ticket:

## Description:
<!-- What does this PR do? Why are we opening it? -->
Expand Down Expand Up @@ -31,4 +31,4 @@ Last minute questions to consider -- if the answer is 'yes' to any of these, ple
- Does this change require an update to any other applications or third-party libraries?
- Is this change blocked by anything else?
- Does this change require actions outside this PR? For example, updating secrets or keys?
-->
-->
2 changes: 1 addition & 1 deletion .github/workflows/autorelease.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Many thanks to
# Many thanks to
# https://www.meziantou.net/executing-github-actions-jobs-or-steps-only-when-specific-files-change.htm
# for providing the base that this uses

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
validate-catalog-info:
runs-on: medium
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
14 changes: 7 additions & 7 deletions .spoton/catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,30 @@ apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: asbestos
description: |
description: |
An easy way to mock Snowflake connections in Python!
annotations:
github.com/project-slug: spotoninc/asbestos

tags:
- python # language
links:

- title: "JIRA board"
type: project-management
url: https://spotonteam.atlassian.net/browse/PAYOPS
icon: help

- title: "Slack (#theseus)"
type: contact
url: https://spoton.slack.com/archives/C01V2NVBPTP
icon: chat

- title: "Docs"
type: other
url: https://spotoninc.github.io/asbestos/
spec:
type: library
owner: group:default/payment-operations
lifecycle: production
lifecycle: production
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A mock data system for [Snowflake](https://www.snowflake.com/en/). Test your cod
`asbestos` was developed in-house at [SpotOn](https://www.spoton.com/) to solve easy mocking of Snowflake calls across multiple codebases. It fits our use case fully, but if it doesn't implement something you need, we're happy to take pull requests!

!!! info "Why 'Asbestos'?"

In the classic film _The Wizard of Oz_, the fake snow that they use in the poppy field [is pure asbestos](https://movieweb.com/wizard-of-oz-snow-asbestos/). Thankfully there are much better ways of generating fake snow now that are much less carcinogenic -- most modern fake snow is made from paper byproducts and dyed cellulose fibers!

## Installation
Expand Down
2 changes: 1 addition & 1 deletion docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ assert cur.fetchall() == {"COUNT": 42}

Creating the `asbestos` connections and cursor is possible, but you're probably going to have a worse time. We recommend using one of the two prebuilt options above if you can.

While this method isn't recommended, it is possible. You have two methods here of creating your own cursor with varying amounts of usability.
While this method isn't recommended, it is possible. You have two methods here of creating your own cursor with varying amounts of usability.

### Manual Setup with AsbestosConn

Expand Down
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ with asbestos_cursor() as cursor:
You can remove all the queries loaded by calling `config.clear_queries()`.

!!! danger "Danger!"

This is a destructive action and will wipe all your registered queries and responses in Asbestos.

## The Cursor
Expand Down
252 changes: 116 additions & 136 deletions poetry.lock

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "asbestos-snow"
version = "1.3.1"
version = "1.4.0"
description = "An easy way to mock Snowflake connections in Python!"
authors = ["Joe Kaufeld <jkaufeld@spoton.com>", "SpotOn <opensource@spoton.com>"]
readme = "README.md"
Expand All @@ -22,16 +22,15 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.9"
pytest = "^7.4.2"

[tool.poetry.group.dev.dependencies]
isort = "^5.11.4"
isort = "^5.13.2"
seed-isort-config = "^2.2.0"
pytest = "^7.4.2"
pdbpp = "^0.10.3"
ruff = "^0.0.249"
pre-commit = "^3.0.4"
black = ">=23.9.1,<25.0.0"
ruff = "^0.4.8"
pre-commit = "^3.7.1"
black = "^24.4.2"
pytest = "^8.2.2"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 516dec0

Please sign in to comment.