Remove pre-commit hooks.

Because PyCharm does not activate conda environment, this doesn't work properly.
I left in the formatting tools (black, isort etc.) which can be used manually.
communication
junos 2020-12-24 14:38:52 +01:00
parent 82ef8c4d40
commit 33d048d11b
4 changed files with 1 additions and 40 deletions

View File

@ -1,16 +0,0 @@
repos:
- repo: local
hooks:
- id: isort
name: isort
stages: [commit]
language: system
entry: isort
types: [python]
- id: black
name: black
stages: [commit]
language: system
entry: black
types: [python]

View File

@ -8,6 +8,5 @@ dependencies:
- isort - isort
- flake8 - flake8
- mypy - mypy
- pre-commit
- psycopg2 - psycopg2
- python-dotenv - python-dotenv

View File

@ -1,19 +0,0 @@
[mypy]
files=best_practices,test
ignore_missing_imports=true
#TODO We are assuming that our code lives in the best_practices package for the following config.
[flake8]
ignore = E203, E266, E501, W503
max-line-length = 88
max-complexity = 18
select = B,C,E,F,W,T4
[isort]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88

View File

@ -4,10 +4,7 @@ from dotenv import load_dotenv
load_dotenv() load_dotenv()
class ConfigProject(unittest.TestCase): class ConfigProject(unittest.TestCase):
def test_env_variables(self): def test_env_variables(self):
self.assertIsNotNone(os.getenv("DB_PASSWORD")) self.assertIsNotNone(os.getenv("DB_PASSWORD"))
if __name__ == '__main__':
unittest.main()