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

chore(deps): update pre-commit hook psf/black to v24 #344

Merged
merged 2 commits into from
Oct 23, 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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
- id: isort
args: ["--profile", "black", --line-length=120]
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.10.0
hooks:
- id: black
args: [--line-length=120]
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ install: clean ## install the package to the active Python's site-packages
pip install .

environment: ## Handles environment creation
conda env create -f environment.yaml --name $(CONDA_ENV_NAME) --force
conda env create -f environment.yaml --name $(CONDA_ENV_NAME) --yes
conda run --name $(CONDA_ENV_NAME) pip install -e .

release: dist ## package and upload a release
Expand All @@ -93,7 +93,7 @@ dist: clean ## builds source and wheel package
ls -l dist

dev: clean ## install the package's development version
conda env create -f environment.yaml --name $(CONDA_ENV_NAME) --force
conda env create -f environment.yaml --name $(CONDA_ENV_NAME) --yes
conda run --name $(CONDA_ENV_NAME) pip install -e .
$(CONDA_ACTIVATE) $(CONDA_ENV_NAME) && pre-commit install

Expand Down
1 change: 1 addition & 0 deletions anaconda_linter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: __init__.py
Description: Module configurations for the `anaconda-linter` project
"""

__name__ = "anaconda_linter" # pylint: disable=redefined-builtin
__version__ = "0.1.5"
__author__ = "Anaconda, Inc."
Expand Down
1 change: 1 addition & 0 deletions anaconda_linter/lint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
check_url

"""

from __future__ import annotations

import abc
Expand Down
1 change: 1 addition & 0 deletions anaconda_linter/lint/check_completeness.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: check_completeness.py
Description: Contains linter checks for missing essential information.
"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions anaconda_linter/lint/check_multi_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: check_multi_output.py
Description: Contains linter checks for multi-output based rules.
"""

from __future__ import annotations

from anaconda_linter import utils as _utils
Expand Down
1 change: 1 addition & 0 deletions anaconda_linter/lint/check_spdx.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: check_spdx.py
Description: Contains linter checks for SPDX licensing database based rules.
"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions anaconda_linter/lint/check_syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: check_syntax.py
Description: Contains linter checks for syntax rules.
"""

from __future__ import annotations

import re
Expand Down
1 change: 1 addition & 0 deletions anaconda_linter/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: run.py
Description: Primary execution point of the linter's CLI
"""

from __future__ import annotations

import argparse
Expand Down
1 change: 1 addition & 0 deletions anaconda_linter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
This module collects small pieces of code used throughout
:py:mod:`anaconda_linter`.
"""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions scripts/update_licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: update_licenses.py
Description: Stand-alone script
"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: conftest.py
Description: Provides utilities and test fixtures for test files.
"""

from __future__ import annotations

from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions tests/lint/test_auto_fix_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- An input test file that triggers the target linting rule
- An output test file that matches an expected, automatically corrected, resulting file
"""

from __future__ import annotations

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/lint/test_build_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: test_build_help.py
Description: Tests build section rules
"""

from __future__ import annotations

from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions tests/lint/test_completeness.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: test_completeness.py
Description: Tests completeness rules (i.e. `missing_*`)
"""

from __future__ import annotations

from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions tests/lint/test_multi_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: test_multi_output.py
Description: Tests multi-output-based rules
"""

from __future__ import annotations

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/lint/test_spdx.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: test_spdx.py
Description: Tests licensing rules using the SPDX database
"""

from __future__ import annotations

from conftest import check
Expand Down
1 change: 1 addition & 0 deletions tests/lint/test_syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: test_syntax.py
Description: Tests syntax-based rules
"""

from __future__ import annotations

from conftest import check
Expand Down
1 change: 1 addition & 0 deletions tests/lint/test_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: test_url.py
Description: Tests URL-based rules
"""

from __future__ import annotations

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: test_.py
Description: Tests linting infrastructure
"""

from __future__ import annotations

from pathlib import Path
Expand Down
Loading