Skip to content

Commit 111a72d

Browse files
authored
Merge pull request #135 from creativecommons/helper-scripts-and-data
Add helper scripts and data
2 parents f5502c7 + 2d31acd commit 111a72d

14 files changed

+2921
-1338
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,6 @@ Thumbs.db
144144
# secrets
145145
.env
146146
query_secrets.py
147+
148+
# backup files
149+
*.bak

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ numpy = "*"
1414
pandas = "*"
1515
plotly = "*"
1616
Pyarrow = "*"
17+
Pygments = "*"
1718
python-dotenv = "*"
1819
requests = ">=2.31.0"
1920
seaborn = "*"

Pipfile.lock

Lines changed: 1383 additions & 1264 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -144,29 +144,17 @@ to be run manually or with every commit:
144144
```shell
145145
pipenv run pre-commit install
146146
```
147-
- Run manually before commit:
147+
- Run manually using helper dev script:
148148
```shell
149-
pipenv run pre-commit run -a
149+
./dev/check.sh [FILE]
150+
```
151+
If no file(s) are specified, then it runs against all files:
152+
```shell
153+
./dev/check.sh
150154
```
151155
3. _(Optional)_ review the configuration file:
152156
[`.pre-commit-config.yaml`](.pre-commit-config.yaml)
153157
154-
155-
#### Using [`dev/tools.sh`][tools-sh] helper script
156-
157-
The [`dev/tools.sh`][tools-sh] helper script runs the static analysis tools
158-
(`black`, `flake8`, and `isort`):
159-
```shell
160-
./dev/tools.sh
161-
```
162-
163-
It can also accept command-line arguments to specify specific files or
164-
directories to check:
165-
```shell
166-
./dev/tools.sh PATH/TO/MY/FILE.PY
167-
```
168-
169-
[tools-sh]: /dev/tools.sh
170158
[pre-commit]: https://pre-commit.com/
171159
172160

0 commit comments

Comments
 (0)