Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
exclude: "^$|venv|.obsidian"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-json
- id: check-added-large-files
- id: check-yaml
- id: debug-statements
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
language_version: python3.12
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args: [--remove-all-unused-imports, --in-place]
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files", "--line-length=79"]
language_version: python3.12
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
additional_dependencies: [types-requests, types-PyYAML, types-Flask, types-Werkzeug,
types-Markdown]
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
args:
- --py38-plus
- repo: https://github.com/andreoliwa/nitpick
rev: v0.35.0
hooks:
- id: nitpick
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-mock-methods
- id: python-no-eval
- id: python-no-log-warn
- id: rst-backticks
default_language_version:
python: python3.11
22 changes: 22 additions & 0 deletions dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Dependabot auto-merge
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
4 changes: 4 additions & 0 deletions nitpick-style.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[nitpick.styles]
include = [
"py://nitpick/resources/python/pre-commit-hooks",
]
4 changes: 2 additions & 2 deletions shouldit.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"specs": "specs/*.md",
"results": "tests/results.xml"
"specs": "specs/*.md",
"results": "tests/results.xml"
}
2 changes: 1 addition & 1 deletion specs/mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

Given some item from DBPedia.

+ it should extract a schema.org/name property
- it should extract a schema.org/name property
1 change: 0 additions & 1 deletion src/r2rd/mappings.clj
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@
(make-mapping "thumbnailMapping"
"?SUBJ dbpedia-owl:thumbnail ?o"
"?SUBJ schema:thumbnailUrl ?o")))