Skip to content

Commit 3959964

Browse files
committed
ci: add fallback to pyproject.toml
1 parent 01c9404 commit 3959964

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ requires = ["setuptools", "setuptools_scm[toml]", "wheel"]
4242

4343
# enable setuptools_scm to set the version based on git tags
4444
[tool.setuptools_scm]
45+
fallback_version = "0.0.0"
4546

4647
# use PyCharm default line length of 120
4748

@@ -72,9 +73,9 @@ select = [
7273
"ARG", # flake8-unused-arguments
7374
"SLF", # flake8-self
7475
"UP", # pyupgrade
75-
"FA", # flake8-future-annotations (for python 3.7/8/9)
7676
"PERF", # perflint
7777
"RUF", # ruff-specific
78+
"FA", # flake8-future-annotations (for python 3.7/8/9)
7879
]
7980
ignore = [
8081
# allow untyped self and cls args, and no return type from dunder methods

toast.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ tasks:
1919
- package.json
2020
- .pre-commit-config.yaml
2121
command: |
22-
# a git repo is needed during pip install by setuptools_scm and later by pre-commit
23-
git init . --initial-branch=main
2422
# needed so the editable package (.pth) we install points at src
2523
mkdir src
2624
make install
@@ -34,6 +32,7 @@ tasks:
3432
- src/
3533
- tests/
3634
command: |
37-
# needed for pre-commit to see files
35+
# needed for pre-commit to work and see files
36+
git init . --initial-branch=main
3837
git add src tests
3938
make hooks

0 commit comments

Comments
 (0)