-
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
Showing
10 changed files
with
506 additions
and
595 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 |
---|---|---|
|
@@ -18,17 +18,16 @@ jobs: | |
- name: Python Setup | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
python-version: "3.11" | ||
|
||
- name: Lint Checks | ||
run: | | ||
pip install poetry | ||
poetry install | ||
poetry run flake8 | ||
poetry run isort --check nac_collector | ||
poetry run black --check nac_collector | ||
# poetry run mypy nac_collector | ||
- name: Pre-commit Checks | ||
uses: pre-commit/[email protected] | ||
|
||
# - name: Type Checks | ||
# run: | | ||
# pip install poetry | ||
# poetry install | ||
# poetry run mypy nac_collector | ||
|
||
test: | ||
name: Tests | ||
|
@@ -37,11 +36,11 @@ jobs: | |
strategy: | ||
matrix: | ||
python: | ||
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
- '3.11' | ||
- '3.12' | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -74,7 +73,7 @@ jobs: | |
echo "jobSuccess=fail" >> $GITHUB_ENV | ||
fi | ||
id: print_status | ||
|
||
- name: Webex Notification | ||
if: always() | ||
uses: qsnyder/action-wxt@master | ||
|
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,16 +1,6 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 24.4.2 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.5.6 | ||
hooks: | ||
- id: black | ||
args: | ||
- --safe | ||
- --quiet | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 5.0.4 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/timothycrosley/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
- id: ruff | ||
- id: ruff-format |
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
Large diffs are not rendered by default.
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,51 +1,48 @@ | ||
[tool.poetry] | ||
name = "nac-collector" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Kuba Mazurkiewicz <[email protected]>"] | ||
description = "" | ||
name = "nac-collector" | ||
readme = "README.md" | ||
version = "0.1.0" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
requests = "^2.31.0" | ||
click = "^8.1.7" | ||
gitpython = "^3.1.42" | ||
python = "^3.8" | ||
requests = "^2.31.0" | ||
ruamel-yaml = "^0.18.6" | ||
|
||
[tool.poetry.scripts] | ||
nac-collector = "nac_collector.main:cli" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
black = "^24.4.2" | ||
flake8 = "^5.0.4" | ||
isort = "^5.13.2" | ||
mypy = "^1.10.0" | ||
pre-commit = "^3.5" | ||
pytest = "^8.2.0" | ||
pytest-cov = "^5.0.0" | ||
pytest-mock = "^3.14.0" | ||
ruff = "^0.5.6" | ||
|
||
[tool.isort] | ||
# https://github.com/timothycrosley/isort | ||
# https://github.com/timothycrosley/isort/wiki/isort-Settings | ||
# splits long import on multiple lines indented by 4 spaces | ||
force_grid_wrap = 0 | ||
include_trailing_comma = true | ||
indent = " " | ||
line_length = 88 | ||
multi_line_output = 3 | ||
use_parentheses = true | ||
# will group `import x` and `from x import` of the same module. | ||
combine_as_imports = true | ||
default_section = "THIRDPARTY" | ||
force_sort_within_sections = true | ||
forced_separate = "tests" | ||
known_first_party = ["nac_collector", "tests"] | ||
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] | ||
[tool.mypy] | ||
# The mypy configurations: http://bit.ly/2zEl9WI | ||
check_untyped_defs = true | ||
disallow_any_generics = true | ||
disallow_incomplete_defs = true | ||
disallow_untyped_calls = true | ||
disallow_untyped_decorators = false | ||
disallow_untyped_defs = true | ||
ignore_errors = false | ||
ignore_missing_imports = true | ||
python_version = 3.8 | ||
strict_optional = true | ||
warn_redundant_casts = true | ||
warn_return_any = true | ||
warn_unused_configs = true | ||
warn_unused_ignores = false | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
requires = ["poetry-core"] | ||
|
||
[tool.pytest.ini_options] | ||
markers = ["unit", "integration"] |
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