Skip to content

Commit

Permalink
ci: add fallback to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tekumara committed Mar 9, 2024
1 parent 01c9404 commit 3959964
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ requires = ["setuptools", "setuptools_scm[toml]", "wheel"]

# enable setuptools_scm to set the version based on git tags
[tool.setuptools_scm]
fallback_version = "0.0.0"

# use PyCharm default line length of 120

Expand Down Expand Up @@ -72,9 +73,9 @@ select = [
"ARG", # flake8-unused-arguments
"SLF", # flake8-self
"UP", # pyupgrade
"FA", # flake8-future-annotations (for python 3.7/8/9)
"PERF", # perflint
"RUF", # ruff-specific
"FA", # flake8-future-annotations (for python 3.7/8/9)
]
ignore = [
# allow untyped self and cls args, and no return type from dunder methods
Expand Down
5 changes: 2 additions & 3 deletions toast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ tasks:
- package.json
- .pre-commit-config.yaml
command: |
# a git repo is needed during pip install by setuptools_scm and later by pre-commit
git init . --initial-branch=main
# needed so the editable package (.pth) we install points at src
mkdir src
make install
Expand All @@ -34,6 +32,7 @@ tasks:
- src/
- tests/
command: |
# needed for pre-commit to see files
# needed for pre-commit to work and see files
git init . --initial-branch=main
git add src tests
make hooks

0 comments on commit 3959964

Please sign in to comment.