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

Fix formatting #2

Merged
merged 1 commit into from
Aug 9, 2024
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
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_language_version:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.6.0
hooks:
# list of supported hooks: https://pre-commit.com/hooks.html
- id: trailing-whitespace
Expand All @@ -19,35 +19,35 @@ repos:

# python code formatting
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 24.8.0
hooks:
- id: black
args: [--line-length, "99"]

# python import sorting
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--extra-builtin", "autoroot"]

# python upgrading syntax to newer version
- repo: https://github.com/asottile/pyupgrade
rev: v2.32.1
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py37-plus]

# python check (PEP8), programming errors and code complexity
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 7.1.1
hooks:
- id: flake8
args: ["--ignore", "E501,F401,F841,W504", "--exclude", "logs/*,data/*"]
args: ["--ignore", "E501,F401,F841,W504,W503", "--exclude", "logs/*,data/*"]

# python security linter
- repo: https://github.com/PyCQA/bandit
rev: "1.7.1"
rev: "1.7.9"
hooks:
- id: bandit
args: ["-s", "B101"]
2 changes: 1 addition & 1 deletion autoroot/autoroot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# if we are in notebook, pytest, or ipython, just use current working directory
if (
startfile.endswith("ipykernel_launcher.py")
startfile.endswith("ipykernel_launcher.py")
or startfile.endswith("pytest")
or startfile.endswith("ipython")
):
Expand Down
2 changes: 1 addition & 1 deletion autorootcwd/autorootcwd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# if we are in notebook, pytest, or ipython, just use current working directory
if (
startfile.endswith("ipykernel_launcher.py")
startfile.endswith("ipykernel_launcher.py")
or startfile.endswith("pytest")
or startfile.endswith("ipython")
):
Expand Down
Loading