Skip to content

Commit

Permalink
Use tool.setuptools in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
RazerM committed Jan 7, 2024
1 parent 7eff6c4 commit dde770b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 0 additions & 8 deletions setup.cfg → .flake8
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
[options]
packages = find:
package_dir =
=src

[options.packages.find]
where = src

[flake8]
# Should aim for 80, but don't warn until 90.
max-line-length = 90
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ pep8test = ["flake8", "pep8-naming"]
Documentation = "https://pg-grant.readthedocs.io"
"Source Code" = "https://github.com/RazerM/pg_grant"

[tool.setuptools]
package-dir = { "" = "src" }

[tool.setuptools.packages.find]
where = ["src"]

[tool.pytest.ini_options]
addopts = "-r s"

Expand Down

0 comments on commit dde770b

Please sign in to comment.