Skip to content

Commit b13beba

Browse files
author
Ricky White
authored
Merge pull request #4 from DelineaXPM/delineaKrehl-LinterWorkflow
Added `black` to auto-format code
2 parents 3411dc8 + 98fe794 commit b13beba

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Lint
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
lint:
14+
name: Run black linter
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Check out Git repository
18+
uses: actions/checkout@v3
19+
- name: Set up Python
20+
uses: actions/setup-python@v3
21+
- name: Install Python dependencies
22+
run: pip install black
23+
- name: Run black
24+
uses: wearerequired/lint-action@v2
25+
with:
26+
black: true
27+
auto_fix: true

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# The Delinea Secret Server Python SDK
22

3+
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
4+
35
![PyPI Version](https://img.shields.io/pypi/v/python-tss-sdk) ![License](https://img.shields.io/github/license/DelineaXPM/python-tss-sdk) ![Python Versions](https://img.shields.io/pypi/pyversions/python-tss-sdk)
46

57
The [Delinea](https://delinea.com/) [Secret Server](https://delinea.com/products/secret-server/) Python SDK contains classes that interact with Secret Server via the REST API.

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def env_vars():
1313
"password": os.getenv("TSS_PASSWORD"),
1414
"tenant": os.getenv("TSS_TENANT"),
1515
"secret_id": os.getenv("SECRET_ID"),
16-
"secret_path": os.getenv("SECRET_PATH")
16+
"secret_path": os.getenv("SECRET_PATH"),
1717
}
1818

1919

0 commit comments

Comments
 (0)