Skip to content

Commit

Permalink
Update lint config to match Lightning's (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca authored Sep 5, 2022
1 parent 77410b3 commit 53db39b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
default_language_version:
python: python3.8
python: python3

ci:
autofix_prs: true
Expand Down
12 changes: 9 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ norecursedirs =
dist
build
addopts =
--strict
--strict-markers
--doctest-modules
--durations=25
--color=yes
--disable-pytest-warnings
filterwarnings =
error::FutureWarning
error::DeprecationWarning
xfail_strict = true

[coverage:report]
exclude_lines =
Expand All @@ -22,9 +27,10 @@ doctests = True
verbose = 2
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
format = pylint
# see: https://www.flake8rules.com/
ignore =
E731 # Do not assign a lambda expression, use a def
E731 # Ignore "Do not assign a lambda expression, use a def"
W503 # Ignore "Line break occurred before a binary operator"
E203 # Ignore "whitespace before ':'"

# setup.cfg or tox.ini
[check-manifest]
Expand Down

0 comments on commit 53db39b

Please sign in to comment.