Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 18, 2024
1 parent 647658c commit c8edaa8
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Some simple authentication examples."""

from __future__ import annotations

from collections import Counter
Expand Down
1 change: 1 addition & 0 deletions jira/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The root of JIRA package namespace."""

from __future__ import annotations

try:
Expand Down
7 changes: 4 additions & 3 deletions jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
will construct a JIRA object as described below. Full API documentation can be found
at: https://jira.readthedocs.io/en/latest/.
"""

from __future__ import annotations

import calendar
Expand Down Expand Up @@ -4092,9 +4093,9 @@ def deactivate_user(self, username: str) -> str | int:
raise JIRAError(f"Error Deactivating {username}: {e}")
else:
url = self.server_url + "/secure/admin/user/EditUser.jspa"
self._options["headers"][
"Content-Type"
] = "application/x-www-form-urlencoded; charset=UTF-8"
self._options["headers"]["Content-Type"] = (
"application/x-www-form-urlencoded; charset=UTF-8"
)
user = self.user(username)
userInfo = {
"inline": "true",
Expand Down
1 change: 1 addition & 0 deletions jira/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Also, this simplifies the scripts by not having to write the same initialization code for each script.
"""

from __future__ import annotations

import configparser
Expand Down
1 change: 1 addition & 0 deletions jira/jirashell.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Script arguments support changing the server and a persistent authentication
over HTTP BASIC or Kerberos.
"""

from __future__ import annotations

import argparse
Expand Down
1 change: 1 addition & 0 deletions jira/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This module implements the Resource classes that translate JSON from Jira REST
resources into usable objects.
"""

from __future__ import annotations

import json
Expand Down
1 change: 1 addition & 0 deletions jira/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Jira utils used internally."""

from __future__ import annotations

import threading
Expand Down
1 change: 1 addition & 0 deletions make_local_jira_user.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Attempts to create a test user, as the empty JIRA instance isn't provisioned with one."""

from __future__ import annotations

import sys
Expand Down
1 change: 1 addition & 0 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
resources/test_* : For tests related to resources
test_* : For other tests of the non-resource elements of the jira package.
"""

from __future__ import annotations

import logging
Expand Down

0 comments on commit c8edaa8

Please sign in to comment.