build: use src layout

This commit is contained in:
Daylin Morgan 2023-05-09 08:16:52 -05:00
parent 127b3c0256
commit 2e4a0454fc
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
12 changed files with 5 additions and 6 deletions

View file

@ -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]

View file

@ -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"]

0
src/yartsu/__init__.py Normal file
View file

View file

@ -1 +0,0 @@
from ._version import __version__