Skip to content

Commit

Permalink
chore: catch up repo standards
Browse files Browse the repository at this point in the history
get repo caught up on standards of other ospo repos

Signed-off-by: jmeridth <jmeridth@gmail.com>
  • Loading branch information
jmeridth committed Mar 30, 2024
1 parent 211f5bf commit eff523c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 22 deletions.
19 changes: 0 additions & 19 deletions .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
---
###########################
###########################
## Markdown Linter rules ##
###########################
###########################

# Linter rules doc:
# - https://github.com/DavidAnson/markdownlint
#
# Note:
# To comment out a single error:
# <!-- markdownlint-disable -->
# any violations you want
# <!-- markdownlint-restore -->
#

###############
# Rules by id #
###############
# line length
MD013: false
# singe h1
Expand Down
5 changes: 3 additions & 2 deletions .github/linters/.mypy.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Global options:

[mypy]
disable_error_code = attr-defined, import-not-found

[mypy-github3.*]
ignore_missing_imports = True
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ lint:
# stop the build if there are Python syntax errors or undefined names
flake8 . --config=.github/linters/.flake8 --count --select=E9,F63,F7,F82 --show-source
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --config=.github/linters/.flake8 --count --exit-zero --max-complexity=100 --max-line-length=150
flake8 . --config=.github/linters/.flake8 --count --exit-zero --max-complexity=15 --max-line-length=150
isort --settings-file=.github/linters/.isort.cfg .
pylint --rcfile=.github/linters/.python-lint --fail-under=9.0 *.py
mypy --config-file=.github/linters/.mypy.ini *.py
black .
3 changes: 3 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
black==24.3.0
flake8==7.0.0
mypy==1.8.0
mypy-extensions==1.0.0
pylint==3.1.0
pytest==8.1.1
pytest-cov==5.0.0
types-requests==2.31.0.20240311

0 comments on commit eff523c

Please sign in to comment.