[go: nahoru, domu]

Skip to content

Commit

Permalink
Basic linter config (tensorflow#261)
Browse files Browse the repository at this point in the history
* basic linter config

* applied formatting rules

* Google style pylintrc

* disable abstract-class-instantiated and protected-access

* Fixed unused import

* Fixed super-with-arguments

* inconsistent-quotes

* Fixed unneeded-not

* Fixed line-too-long

* updated docs

* split before assigns

* main instead of master

* code review

* updated isort

* increased line length

* arg indentation

* isort config to match yapf

* reformatted imports

---------

Co-authored-by: Hannes Hapke <hannes@digits.com>
  • Loading branch information
hanneshapke and hanneshapke committed Apr 1, 2023
1 parent 14f7865 commit b3baa1f
Show file tree
Hide file tree
Showing 31 changed files with 1,893 additions and 1,011 deletions.
17 changes: 17 additions & 0 deletions .github/ci/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_stages: [push,commit]
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/google/yapf
rev: v0.31.0
hooks:
- id: yapf
- repo: https://github.com/PyCQA/pylint
rev: v2.8.3
hooks:
- id: pylint
Loading

0 comments on commit b3baa1f

Please sign in to comment.