-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Workflows and add Black (#12)
- Added Black to workflows - Added Black to pyproject.toml - Updated workflow to build Docker images to use cache and update Docker Hub repo description
- Loading branch information
1 parent
c67fbf4
commit c12701a
Showing
4 changed files
with
36 additions
and
4 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
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,19 @@ | ||
name: Tests | ||
on: | ||
push | ||
jobs: | ||
validate_application_code: | ||
name: Validate application code | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the current repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
|
||
- name: Install snek-sploit | ||
run: poetry install | ||
|
||
- name: Run Black | ||
run: poetry run black --check --diff snek_sploit/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "snek-sploit" | ||
version = "0.4.0" | ||
version = "0.5.0" | ||
description = "Python RPC client for Metasploit Framework" | ||
authors = [ | ||
"Jiří Rája <[email protected]>" | ||
|
@@ -18,12 +18,15 @@ readme = "README.md" | |
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
requests = "^2.31" | ||
msgpack = "^1" | ||
requests = "^2.31.0" | ||
msgpack = "^1.0.8" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
black = "^24" | ||
|
||
[tool.black] | ||
line-length = 120 | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |