Skip to content

Commit

Permalink
Formatting fixes and fixes Makefile --force deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
schuylermartin45 committed Oct 23, 2024
1 parent 2f06ec8 commit 6a43df9
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 2 deletions.
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

0 comments on commit 6a43df9

Please sign in to comment.