Skip to content

Commit

Permalink
chore: conform to updated linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-fs committed Aug 9, 2024
1 parent 587fd86 commit e5235dc
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
pull_request:
branches:
branches:
- main

jobs:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Ruff codestyle][ruff badge]][ruff project]


[pypi status]: https://pypi.org/project/pybuild-deps/
[tests]: https://github.com/bruno-fs/pybuild-deps/actions?workflow=Tests
[codecov]: https://app.codecov.io/gh/bruno-fs/pybuild-deps
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black
[ruff badge]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
[ruff project]: https://github.com/charliermarsh/ruff

tools that can pin dependencies like `pip-tools` and `poetry`.
For users relying exclusively on python wheels, those tools are more than enough.
However, for users building applications from source, finding and pinning build dependencies
Expand Down
3 changes: 1 addition & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@


try:
from nox_poetry import Session
from nox_poetry import session
from nox_poetry import Session, session
except ImportError:
message = f"""\
Nox failed to import the 'nox-poetry' package.
Expand Down
1 change: 1 addition & 0 deletions src/pybuild_deps/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

from xdg import xdg_cache_home


CACHE_PATH = xdg_cache_home() / "pybuild-deps"
PIP_CACHE_DIR = CACHE_PATH / "pip"
1 change: 1 addition & 0 deletions src/pybuild_deps/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import click
from piptools.logging import log as piptools_logger


logging.basicConfig()
_logger = logging.getLogger("pybuild-deps")

Expand Down
1 change: 1 addition & 0 deletions src/pybuild_deps/parsers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from configparser import ConfigParser


try:
import tomllib as toml
except ImportError:
Expand Down
1 change: 1 addition & 0 deletions src/pybuild_deps/scripts/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from pybuild_deps.logger import log
from pybuild_deps.parsers import parse_requirements


REQUIREMENTS_TXT = "requirements.txt"


Expand Down
1 change: 1 addition & 0 deletions tests/test_parsers/test_pyproject_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from pybuild_deps.parsers import parse_pyproject_toml


EXAMPLE_TOML = """
[build-system]
requires = [
Expand Down
1 change: 1 addition & 0 deletions tests/test_parsers/test_setup_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from pybuild_deps.parsers import parse_setup_cfg


EXAMPLE_CFG = """
[metadata]
name = foo
Expand Down
1 change: 1 addition & 0 deletions tests/test_parsers/test_setup_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from pybuild_deps.parsers import parse_setup_py


SIMPLE = """
from setuptools import setup
Expand Down

0 comments on commit e5235dc

Please sign in to comment.