Skip to content

Commit 29a673a

Browse files
authored
Merge b8d8365 into 32e02f8
2 parents 32e02f8 + b8d8365 commit 29a673a

18 files changed

+41
-31
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ _generated
1414
*.egg-info
1515
.eggs
1616

17-
.pytask.sqlite3
1817
.pytask
1918

2019
build

docs/source/changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and
2020
- {pull}`464` improves pinned dependencies.
2121
- {pull}`465` adds test to ensure internal tracebacks are removed by reports.
2222
- {pull}`466` implements hashing for files instead of modification timestamps.
23+
- {pull}`470` moves `.pytask.sqlite3` to `.pytask`.
2324
- {pull}`472` adds `is_product` to {meth}`PNode.load`.
2425

2526
## 0.4.1 - 2023-10-11

docs/source/how_to_guides/bp_scaling_tasks.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ my_project
4242
4343
├───setup.py
4444
45-
├───.pytask.sqlite3
45+
├───.pytask
46+
│ └────...
4647
4748
└───bld
4849
```

docs/source/how_to_guides/functional_interface.ipynb

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/source/reference_guides/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ are welcome to also support macOS.
4646
4747
pytask uses a database to keep track of tasks, products, and dependencies over runs. By
4848
default, it will create an SQLite database in the project's root directory called
49-
`.pytask.sqlite3`. If you want to use a different name or a different dialect
49+
`.pytask/pytask.sqlite3`. If you want to use a different name or a different dialect
5050
[supported by sqlalchemy](https://docs.sqlalchemy.org/en/latest/core/engines.html#backend-specific-urls),
5151
use either {option}`pytask build --database-url` or `database_url` in the config.
5252
5353
```toml
54-
database_url = "sqlite:///.pytask.sqlite3"
54+
database_url = "sqlite:///.pytask/pytask.sqlite3"
5555
```
5656
5757
Relative paths for SQLite databases are interpreted as either relative to the

docs/source/tutorials/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pytask can be configured via the command-line interface or permanently with a
44
`pyproject.toml` file.
55

66
The file also indicates the root of your project where pytask stores information in a
7-
`.pytask.sqlite3` database.
7+
`.pytask` folder.
88

99
## The configuration file
1010

docs/source/tutorials/defining_dependencies_products.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ my_project
3333
3434
├───setup.py
3535
36-
├───.pytask.sqlite3
36+
├───.pytask
37+
│ └────...
3738
3839
└───bld
3940
├────data.pkl

docs/source/tutorials/set_up_a_project.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ my_project
2424
2525
├───pyproject.toml
2626
27-
├───.pytask.sqlite3
27+
├───.pytask
28+
│ └────...
2829
2930
└───bld
3031
└────...
@@ -42,8 +43,8 @@ paths = "src/my_project"
4243

4344
You do not have to add configuration values, but you need the
4445
`[tool.pytask.ini_options]` header. The header alone will signal pytask that this is the
45-
project's root. pytask will store the information it needs across executions in a
46-
`.pytask.sqlite3` database next to the configuration file.
46+
project's root. pytask will store the information it needs across executions in the
47+
`.pytask` folder.
4748

4849
`paths` allows you to set the location of tasks when you do not pass them explicitly via
4950
the CLI.

docs/source/tutorials/using_a_data_catalog.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ The project structure is the same as in the previous example with the exception
2121

2222
```text
2323
my_project
24-
├───.pytask
2524
2625
├───pyproject.toml
2726
@@ -33,7 +32,8 @@ my_project
3332
3433
├───setup.py
3534
36-
├───.pytask.sqlite3
35+
├───.pytask
36+
│ └────...
3737
3838
└───bld
3939
└────plot.png
@@ -166,7 +166,6 @@ Let's add `file.csv` to the data catalog.
166166

167167
```text
168168
my_project
169-
├───.pytask
170169
171170
├───pyproject.toml
172171
@@ -179,7 +178,8 @@ my_project
179178
180179
├───setup.py
181180
182-
├───.pytask.sqlite3
181+
├───.pytask
182+
│ └────...
183183
184184
└───bld
185185
├────file.pkl

docs/source/tutorials/write_a_task.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ automatically discovers them.
1212

1313
```text
1414
my_project
15+
1516
├───pyproject.toml
1617
1718
├───src
@@ -21,7 +22,8 @@ my_project
2122
2223
├───setup.py
2324
24-
├───.pytask.sqlite3
25+
├───.pytask
26+
│ └────...
2527
2628
└───bld
2729
└────data.pkl

0 commit comments

Comments
 (0)