Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize the code #235

Merged
merged 5 commits into from
Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Migrate code style to Black
e91375d917f56e446af94a5adf039bcd7a30715f
12 changes: 12 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Linters

on: [push, pull_request]

jobs:
black-formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Black Code Formatter
uses: psf/black@stable
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
fail_ci_if_error: false
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def api():

@pytest.fixture
def token_api():
return pypuppetdb.api.API(token='tokenstring')
return pypuppetdb.api.API(token="tokenstring")


@pytest.fixture
Expand Down
12 changes: 6 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
(
"index",
"pypuppetdb.tex",
u"pypuppetdb Documentation",
u"Vox Pupuli",
"pypuppetdb Documentation",
"Vox Pupuli",
"manual",
),
]
Expand All @@ -58,8 +58,8 @@
(
"index",
"pypuppetdb",
u"pypuppetdb Documentation",
[u"Daniele Sluijters"],
"pypuppetdb Documentation",
["Daniele Sluijters"],
1,
)
]
Expand All @@ -70,8 +70,8 @@
(
"index",
"pypuppetdb",
u"pypuppetdb Documentation",
u"Daniele Sluijters",
"pypuppetdb Documentation",
"Daniele Sluijters",
"pypuppetdb",
"Library to work with the PuppetDB REST API.",
"Miscellaneous",
Expand Down
Loading