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
parent
82ef8c4d40
commit
33d048d11b
|
@ -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]
|
|
@ -8,6 +8,5 @@ dependencies:
|
|||
- isort
|
||||
- flake8
|
||||
- mypy
|
||||
- pre-commit
|
||||
- psycopg2
|
||||
- python-dotenv
|
|
@ -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
|
|
@ -4,10 +4,7 @@ from dotenv import load_dotenv
|
|||
|
||||
load_dotenv()
|
||||
|
||||
|
||||
class ConfigProject(unittest.TestCase):
|
||||
def test_env_variables(self):
|
||||
self.assertIsNotNone(os.getenv("DB_PASSWORD"))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
Loading…
Reference in New Issue