From 2e4a0454fc364e34375a768a6304bdaef914191c Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 9 May 2023 08:16:52 -0500 Subject: [PATCH] build: use src layout --- .pre-commit-config.yaml | 6 +++--- pyproject.toml | 4 ++-- src/yartsu/__init__.py | 0 {yartsu => src/yartsu}/_export_format.py | 0 {yartsu => src/yartsu}/_run_cmd.py | 0 {yartsu => src/yartsu}/_version.py | 0 {yartsu => src/yartsu}/argparse.py | 0 {yartsu => src/yartsu}/cli.py | 0 {yartsu => src/yartsu}/console.py | 0 {yartsu => src/yartsu}/term.py | 0 {yartsu => src/yartsu}/themes.py | 0 yartsu/__init__.py | 1 - 12 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 src/yartsu/__init__.py rename {yartsu => src/yartsu}/_export_format.py (100%) rename {yartsu => src/yartsu}/_run_cmd.py (100%) rename {yartsu => src/yartsu}/_version.py (100%) rename {yartsu => src/yartsu}/argparse.py (100%) rename {yartsu => src/yartsu}/cli.py (100%) rename {yartsu => src/yartsu}/console.py (100%) rename {yartsu => src/yartsu}/term.py (100%) rename {yartsu => src/yartsu}/themes.py (100%) delete mode 100644 yartsu/__init__.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 53b90f2..bd8c4d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,12 +8,12 @@ repos: - id: end-of-file-fixer - id: check-added-large-files - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 23.3.0 hooks: - id: black language_version: python - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: 'v0.0.245' + rev: 'v0.0.265' hooks: - id: ruff - args: [--fix, --exit-non-zero-on-fix] + args: [--fix, --exit-non-zero-on-fix, --show-fixes] diff --git a/pyproject.toml b/pyproject.toml index a4f19ab..3eb56d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,5 +49,5 @@ select = ["F", "E", "W", "I001"] exclude = ["scripts"] [tool.ruff.per-file-ignores] # I guess they don't mind some long lines? -"yartsu/_export_format.py" = ["E501"] -"yartsu/console.py" = ["E501"] +"src/yartsu/_export_format.py" = ["E501"] +"src/yartsu/console.py" = ["E501"] diff --git a/src/yartsu/__init__.py b/src/yartsu/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/yartsu/_export_format.py b/src/yartsu/_export_format.py similarity index 100% rename from yartsu/_export_format.py rename to src/yartsu/_export_format.py diff --git a/yartsu/_run_cmd.py b/src/yartsu/_run_cmd.py similarity index 100% rename from yartsu/_run_cmd.py rename to src/yartsu/_run_cmd.py diff --git a/yartsu/_version.py b/src/yartsu/_version.py similarity index 100% rename from yartsu/_version.py rename to src/yartsu/_version.py diff --git a/yartsu/argparse.py b/src/yartsu/argparse.py similarity index 100% rename from yartsu/argparse.py rename to src/yartsu/argparse.py diff --git a/yartsu/cli.py b/src/yartsu/cli.py similarity index 100% rename from yartsu/cli.py rename to src/yartsu/cli.py diff --git a/yartsu/console.py b/src/yartsu/console.py similarity index 100% rename from yartsu/console.py rename to src/yartsu/console.py diff --git a/yartsu/term.py b/src/yartsu/term.py similarity index 100% rename from yartsu/term.py rename to src/yartsu/term.py diff --git a/yartsu/themes.py b/src/yartsu/themes.py similarity index 100% rename from yartsu/themes.py rename to src/yartsu/themes.py diff --git a/yartsu/__init__.py b/yartsu/__init__.py deleted file mode 100644 index 8dee4bf..0000000 --- a/yartsu/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from ._version import __version__