Skip to content

Commit

Permalink
Add modern tool support
Browse files Browse the repository at this point in the history
  • Loading branch information
aucampia committed May 24, 2021
1 parent 58b23fd commit e722822
Show file tree
Hide file tree
Showing 9 changed files with 1,548 additions and 0 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
root = true
17 changes: 17 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# https://flake8.pycqa.org/en/latest/user/configuration.html
[flake8]
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,.venv,test
# Recommend matching the black line length (default 88),
# rather than using the flake8 default of 79:
max-line-length = 88
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,
# W503, # line break before binary operator
# E722, # do not use bare 'except'
# B009, # Do not call getattr with a constant attribute value
# E501, # line too long
# B007, # Loop control variable ? not used within the loop body.
# E402, # module level import not at top of file
# F401, # ? imported but unused
# E231, # missing whitespace after ','
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# https://pre-commit.com/
# pre-commit run --all-files -vvv
repos:
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.2
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-black
files: '(rdflib|test)/.*[.]py'
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.800
hooks:
- id: mypy
files: '(rdflib|test)/.*[.]py'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: check-byte-order-marker
- id: trailing-whitespace
- id: end-of-file-fixer
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"python.linting.flake8Enabled": false,
"python.linting.pylintEnabled": false,
}
21 changes: 21 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
html5lib = "*"
isodate = "*"
pyparsing = "*"

[dev-packages]
sphinxcontrib-apidoc = "*"
nose = "==1.3.7"
nose-timer = "*"
coverage = "*"
flake8 = "*"
doctest-ignore-unicode = "==0.1.2"
Sphinx = "*"

[requires]
python_version = "3.9"
419 changes: 419 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# https://mypy.readthedocs.io/en/stable/config_file.html
[mypy]
python_version = 3.6
warn_unused_configs = True
ignore_missing_imports = True
disallow_subclassing_any = False
Loading

0 comments on commit e722822

Please sign in to comment.