Skip to content

Commit

Permalink
precommit/docformatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jul 18, 2023
1 parent c51b25b commit 3835a6c
Show file tree
Hide file tree
Showing 12 changed files with 41 additions and 30 deletions.
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Expand Up @@ -12,6 +12,13 @@ repos:
hooks:
- id: black

- repo: https://github.com/PyCQA/docformatter
rev: v1.7.3
hooks:
- id: docformatter
additional_dependencies: [tomli]
args: ["--in-place"]

- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
Expand All @@ -37,13 +44,6 @@ repos:
- id: pyupgrade
args: ["--py37-plus"]

- repo: https://github.com/PyCQA/docformatter
rev: v1.7.3
hooks:
- id: docformatter
additional_dependencies: [tomli]
args: ["--in-place"]

- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
Expand Down
5 changes: 3 additions & 2 deletions github/CheckRun.py
Expand Up @@ -49,9 +49,10 @@


class CheckRun(CompletableGithubObject):
"""
This class represents check runs.
"""This class represents check runs.
The reference can be found here https://docs.github.com/en/rest/reference/checks#check-runs
"""

def _initAttributes(self) -> None:
Expand Down
6 changes: 4 additions & 2 deletions github/CheckSuite.py
Expand Up @@ -42,8 +42,10 @@


class CheckSuite(CompletableGithubObject):
"""
This class represents check suites. The reference can be found here https://docs.github.com/en/rest/reference/checks#check-suites
"""This class represents check suites.
The reference can be found here https://docs.github.com/en/rest/reference/checks#check-suites
"""

def _initAttributes(self) -> None:
Expand Down
5 changes: 3 additions & 2 deletions github/CodeScanAlert.py
Expand Up @@ -34,9 +34,10 @@


class CodeScanAlert(NonCompletableGithubObject):
"""
This class represents alerts from code scanning.
"""This class represents alerts from code scanning.
The reference can be found here https://docs.github.com/en/rest/reference/code-scanning.
"""

def _initAttributes(self) -> None:
Expand Down
5 changes: 3 additions & 2 deletions github/CodeScanAlertInstance.py
Expand Up @@ -31,9 +31,10 @@


class CodeScanAlertInstance(NonCompletableGithubObject):
"""
This class represents code scanning alert instances.
"""This class represents code scanning alert instances.
The reference can be found here https://docs.github.com/en/rest/reference/code-scanning.
"""

def _initAttributes(self) -> None:
Expand Down
5 changes: 3 additions & 2 deletions github/CodeScanAlertInstanceLocation.py
Expand Up @@ -25,9 +25,10 @@


class CodeScanAlertInstanceLocation(NonCompletableGithubObject):
"""
This class represents code scanning alert instance locations.
"""This class represents code scanning alert instance locations.
The reference can be found here https://docs.github.com/en/rest/reference/code-scanning.
"""

def _initAttributes(self) -> None:
Expand Down
5 changes: 3 additions & 2 deletions github/CodeScanRule.py
Expand Up @@ -27,9 +27,10 @@


class CodeScanRule(NonCompletableGithubObject):
"""
This class represents Alerts from code scanning.
"""This class represents Alerts from code scanning.
The reference can be found here https://docs.github.com/en/rest/reference/code-scanning.
"""

def _initAttributes(self) -> None:
Expand Down
5 changes: 3 additions & 2 deletions github/CodeScanTool.py
Expand Up @@ -26,9 +26,10 @@


class CodeScanTool(NonCompletableGithubObject):
"""
This class represents code scanning tools.
"""This class represents code scanning tools.
The reference can be found here https://docs.github.com/en/rest/reference/code-scanning.
"""

def _initAttributes(self) -> None:
Expand Down
6 changes: 4 additions & 2 deletions github/Commit.py
Expand Up @@ -60,8 +60,10 @@


class Commit(CompletableGithubObject):
"""
This class represents Commits. The reference can be found here https://docs.github.com/en/rest/reference/git#commits
"""This class represents Commits.
The reference can be found here https://docs.github.com/en/rest/reference/git#commits
"""

def _initAttributes(self) -> None:
Expand Down
6 changes: 4 additions & 2 deletions github/CommitCombinedStatus.py
Expand Up @@ -33,8 +33,10 @@


class CommitCombinedStatus(NonCompletableGithubObject):
"""
This class represents CommitCombinedStatuses. The reference can be found here https://docs.github.com/en/rest/reference/repos#statuses
"""This class represents CommitCombinedStatuses.
The reference can be found here https://docs.github.com/en/rest/reference/repos#statuses
"""

def _initAttributes(self) -> None:
Expand Down
4 changes: 1 addition & 3 deletions github/Comparison.py
Expand Up @@ -36,9 +36,7 @@


class Comparison(CompletableGithubObject):
"""
This class represents Comparisons
"""
"""This class represents Comparisons."""

def _initAttributes(self) -> None:
self._ahead_by: Attribute[int] = NotSet
Expand Down
5 changes: 3 additions & 2 deletions github/Path.py
Expand Up @@ -29,9 +29,10 @@


class Path(NonCompletableGithubObject):
"""
This class represents a popular Path for a GitHub repository.
"""This class represents a popular Path for a GitHub repository.
The reference can be found here https://docs.github.com/en/rest/reference/repos#traffic
"""

def _initAttributes(self) -> None:
Expand Down

0 comments on commit 3835a6c

Please sign in to comment.