Skip to content

Commit

Permalink
chore(tools): Make pyproject.toml exclude rather than include
Browse files Browse the repository at this point in the history
Rather than statically declaring the project to be "starcraft" all over the place, prefer excluding directories.
  • Loading branch information
lengau committed Jan 26, 2023
1 parent 63fc646 commit f2f804d
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,20 @@ requires = [
]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["starcraft"]
[tool.setuptools.packages.find]
exclude = [
"dist",
"docs",
"results",
"tests",
]

[tool.black]
target-version = ["py38"]

[tool.codespell]
ignore-words-list = "buildd,crate,keyserver,comandos,ro,dedent,dedented"
skip = ".tox,.git,build,.*_cache,__pycache__,*.tar,*.snap,*.png,node_modules"
skip = ".tox,.git,build,.*_cache,__pycache__,*.tar,*.snap,*.png,./node_modules,./docs/_build"
quiet-level = 3
check-filenames = true

Expand Down Expand Up @@ -74,9 +79,10 @@ venv = "py38"

[tool.mypy]
python_version = "3.8"
packages = ["starcraft"]
exclude = [
"build"
"build",
"tests",
"results",
]
warn_unused_configs = true
warn_redundant_casts = true
Expand Down

0 comments on commit f2f804d

Please sign in to comment.