Skip to content

Commit 3f85c88

Browse files
committed
Update the config of the repo
Also modify wrong typing in cpmg.py
1 parent fb4f54f commit 3f85c88

11 files changed

+80
-299
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ insert_final_newline = true
1010
charset = utf-8
1111
end_of_line = lf
1212

13+
[*.toml]
14+
indent_size = 2
15+
1316
[*.bat]
1417
indent_style = tab
1518
end_of_line = crlf

.flake8

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
ignore = E203, E266, E501, W503
3+
max-line-length = 88
4+
max-complexity = 18
5+
select = B,C,E,F,W,T4

.github/issue_template.md

-32
This file was deleted.

.github/pull_request_template.md

-31
This file was deleted.

.gitignore

+1-30
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ __pycache__/
33
*.py[cod]
44
*$py.class
55

6-
# C extensions
7-
*.so
8-
96
# Distribution / packaging
107
.Python
118
env/
@@ -51,17 +48,6 @@ coverage.xml
5148
*.mo
5249
*.pot
5350

54-
# Django stuff:
55-
*.log
56-
local_settings.py
57-
58-
# Flask stuff:
59-
instance/
60-
.webassets-cache
61-
62-
# Scrapy stuff:
63-
.scrapy
64-
6551
# Sphinx documentation
6652
docs/_build/
6753

@@ -88,29 +74,14 @@ celerybeat-schedule
8874
venv/
8975
ENV/
9076

91-
# Spyder project settings
92-
.spyderproject
93-
.spyproject
94-
95-
# Rope project settings
96-
.ropeproject
97-
98-
# mkdocs documentation
99-
/site
100-
10177
# mypy
10278
.mypy_cache/
10379

10480
# PyCharm
10581
.idea/
10682

10783
# VSCode
108-
.vscode/*
109-
!.vscode/settings.json
110-
!.vscode/tasks.json
111-
!.vscode/launch.json
112-
!.vscode/extensions.json
113-
*.code-workspace
84+
.vscode/
11485

11586
# MacOS
11687
.DS_Store

.pre-commit-config.yaml

+22-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
repos:
2-
- repo: https://github.com/psf/black
3-
rev: stable
4-
hooks:
5-
- id: black
6-
language_version: python3.7
2+
- repo: local
3+
hooks:
4+
- id: isort
5+
name: isort
6+
stages: [commit]
7+
language: system
8+
entry: poetry run isort
9+
types: [python]
10+
11+
- id: black
12+
name: black
13+
stages: [commit]
14+
language: system
15+
entry: poetry run black
16+
types: [python]
17+
18+
- id: flake8
19+
name: flake8
20+
stages: [commit]
21+
language: system
22+
entry: poetry run flake8
23+
types: [python]

.vscode/settings.json

+3-14
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
{
2-
"python.pythonPath": "/Users/gbouvignies/Library/Caches/pypoetry/virtualenvs/chemex-py3.7/bin/python",
3-
"python.poetryPath": "/Users/gbouvignies/.poetry/bin/poetry",
4-
"editor.formatOnPaste": true,
5-
"editor.formatOnSave": true,
6-
"editor.formatOnType": true,
7-
"files.autoSave": "afterDelay",
8-
"files.autoSaveDelay": 500,
9-
"files.trimFinalNewlines": true,
10-
"files.exclude": {
11-
"**/*.pyc": {
12-
"when": "$(basename).py"
13-
},
14-
"**/__pycache__": true
15-
}
2+
"python.linting.flake8Enabled": true,
3+
"python.linting.pylintEnabled": false,
4+
"python.linting.enabled": true
165
}

CONTRIBUTING.md

-111
This file was deleted.

chemex/containers/cpmg.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ def __add__(self, other: "CpmgProfile"):
167167
self.name, data, self._pulse_seq, self._par_names, self.params_default
168168
)
169169

170-
def __eq__(self, other: "CestProfile"):
170+
def __eq__(self, other: "CpmgProfile"):
171171
return self.name == other.name
172172

173-
def __lt__(self, other: "CestProfile"):
173+
def __lt__(self, other: "CpmgProfile"):
174174
return self.name < other.name
175175

176176

0 commit comments

Comments
 (0)