Skip to content

Commit e412de5

Browse files
authored
Update eocsyst.ms and import script (#15)
* Update eocsyst.ms and import script Now includes support for domains and concepts from openAlex * Add .cypher file extension * Remove commented-out code * Setup for pre-commit hooks * Run pre-commit hooks (ruff) on ecosyst.ms-api.py * Convert cammel case to snake case * Improve error checking & thread safety * Add line comments * Debugging * Debugging
1 parent ed861cd commit e412de5

6 files changed

+406
-160
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
.venv
22

3+
# Python virtual environment (venv)
4+
bin/
5+
lib/
6+
lib64
7+
pyvenv.cfg
8+
9+
10+
311
.pdm-python
412
.DS_Store
513

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0 # the release, git tag, or commit you want to use
4+
hooks:
5+
- id: check-toml
6+
- id: check-yaml
7+
- id: end-of-file-fixer
8+
- id: trailing-whitespace
9+
10+
- repo: https://github.com/astral-sh/ruff-pre-commit
11+
rev: v0.8.6
12+
hooks:
13+
- id: ruff
14+
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
15+
- id: ruff-format

pyproject.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,25 @@ readme = "README.md"
1717
license = {text = "MIT"}
1818

1919

20+
[tool.ruff]
21+
line-length = 88
22+
lint.select = [
23+
"F", # pyflakes rules
24+
"E", # pycodestyle error rules
25+
"W", # pycodestyle warning rules
26+
"B", # flake8-bugbear rules
27+
"I", # isort rules
28+
]
29+
lint.ignore = [
30+
"E501", # line-too-long
31+
]
32+
33+
[tool.ruff.format]
34+
indent-style = "space"
35+
quote-style = "single"
36+
37+
38+
2039
[tool.pdm]
2140
distribution = false
2241

0 commit comments

Comments
 (0)