-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25f9f6b
commit fe821e9
Showing
5 changed files
with
69 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Python | ||
on: | ||
push: | ||
branches: | ||
- release/* | ||
- develop | ||
- master | ||
- main | ||
pull_request: {} | ||
|
||
permissions: | ||
id-token: write # Required for federated aws oidc | ||
contents: read | ||
actions: read | ||
pull-requests: write | ||
|
||
env: | ||
CLUSTER_KEY: ${{secrets.CLUSTER_KEY}} | ||
|
||
jobs: | ||
ci: | ||
uses: uptick/actions/.github/workflows/ci.yaml@main | ||
secrets: inherit | ||
with: | ||
python: true | ||
python-version: 3.11 | ||
praise-on-fix: false | ||
poetry: true | ||
poetry-install-command: "poetry install" | ||
command: | | ||
curl https://mise.jdx.dev/install.sh | sh | ||
echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH | ||
mise settings set experimental true | ||
mise run ci |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ version = "0.1.8" | |
description = "Django library for invoking splat" | ||
authors = ["william chu <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{ include = "uptick_splat" }, { include = "test"}] | ||
packages = [{ include = "uptick_splat" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
|
@@ -25,29 +25,6 @@ build-backend = "poetry.core.masonry.api" | |
# Exclude a variety of commonly ignored directories. | ||
line-length = 120 | ||
|
||
# Enable Pyflakes `E` and `F` codes by default. | ||
select = [ | ||
"F", # Pyflakes | ||
"E", # Pycodestyle | ||
"W", # Pycodestyle | ||
"C90", # Mccabe complexity | ||
"C", # flake8-comprehensions | ||
"B", # flake8-bugbear | ||
"UP", # pyupgrade | ||
"S", # bandit (security) | ||
"DTZ", # Enforce good datetime | ||
"BLE", # Blind exceptions | ||
"I", # isort | ||
] | ||
|
||
ignore = [ | ||
"E501", # Line length is done by black | ||
"D202", # NoBlankLineAfterFunction | ||
"S101", # Use of `assert` detected | ||
"S106", # Ignore secrets | ||
"B008", # Do not perform function call. Lots of false positives with typer.Option | ||
] | ||
|
||
# Exclude a variety of commonly ignored directories. | ||
exclude = [ | ||
".bzr", | ||
|
@@ -72,8 +49,33 @@ exclude = [ | |
"api_client", | ||
] | ||
|
||
# Allow unused variables when underscore-prefixed. | ||
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | ||
|
||
# Assume Python 3.10. | ||
target-version = "py311" | ||
|
||
[tool.ruff.lint] | ||
# Allow unused variables when underscore-prefixed. | ||
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | ||
|
||
ignore = [ | ||
"E501", # Line length is done by black | ||
"D202", # NoBlankLineAfterFunction | ||
"S101", # Use of `assert` detected | ||
"S106", # Ignore secrets | ||
"B008", # Do not perform function call. Lots of false positives with typer.Option | ||
] | ||
|
||
# Enable Pyflakes `E` and `F` codes by default. | ||
select = [ | ||
"F", # Pyflakes | ||
"E", # Pycodestyle | ||
"W", # Pycodestyle | ||
"C90", # Mccabe complexity | ||
"C", # flake8-comprehensions | ||
"B", # flake8-bugbear | ||
"UP", # pyupgrade | ||
"S", # bandit (security) | ||
"DTZ", # Enforce good datetime | ||
"BLE", # Blind exceptions | ||
"I", # isort | ||
] |