Skip to content

Commit d58d54b

Browse files
committed
Adjust pyproject.toml and similar code along the lines of https://github.com/OpenSourceEconomics/ai-instructions/tree/main/boilerplate.
1 parent 15ac4c2 commit d58d54b

2 files changed

Lines changed: 31 additions & 43 deletions

File tree

.gitignore

Lines changed: 21 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Byte-compiled / optimized / DLL files
2-
__pycache__/
32
*.py[cod]
43
*$py.class
4+
__pycache__/
55

66
# MacOS specific service store
77
.DS_Store
@@ -10,61 +10,61 @@ __pycache__/
1010
*.so
1111

1212
# Distribution / packaging
13+
*.egg
14+
*.egg-info/
15+
.eggs/
16+
.installed.cfg
1317
.Python
1418
build/
19+
*build/
1520
develop-eggs/
1621
dist/
1722
downloads/
1823
eggs/
19-
.eggs/
2024
lib/
2125
lib64/
26+
MANIFEST
2227
parts/
2328
sdist/
2429
var/
2530
wheels/
26-
*.egg-info/
27-
.installed.cfg
28-
*.egg
29-
MANIFEST
30-
*build/
3131

3232
# PyInstaller
3333
# Usually these files are written by a python script from a template
3434
# before PyInstaller builds the exe, so as to inject date/other infos into it.
3535
*.manifest
3636
*.spec
37-
*.sublime-workspace
3837
*.sublime-project
38+
*.sublime-workspace
3939

4040
# Installer logs
41-
pip-log.txt
4241
pip-delete-this-directory.txt
42+
pip-log.txt
4343

4444
# Unit test / coverage reports
45-
htmlcov/
46-
.tox/
45+
*.cover
46+
.cache
4747
.coverage
4848
.coverage.*
49-
.cache
50-
nosetests.xml
51-
coverage.xml
52-
*.cover
5349
.hypothesis/
5450
.pytest_cache/
51+
.tox/
52+
coverage.xml
53+
htmlcov/
54+
nosetests.xml
5555

5656
# Translations
5757
*.mo
5858
*.pot
5959

6060
# Django stuff:
6161
*.log
62-
local_settings.py
6362
db.sqlite3
63+
local_settings.py
6464

6565
# Flask stuff:
66-
instance/
6766
.webassets-cache
67+
instance/
6868

6969
# Scrapy stuff:
7070
.scrapy
@@ -93,15 +93,6 @@ celerybeat-schedule
9393
# SageMath parsed files
9494
*.sage.py
9595

96-
# Environments
97-
.env
98-
.venv
99-
env/
100-
venv/
101-
ENV/
102-
env.bak/
103-
venv.bak/
104-
10596
# Spyder project settings
10697
.spyderproject
10798
.spyproject
@@ -118,20 +109,14 @@ venv.bak/
118109
# mypy
119110
.mypy_cache/
120111

121-
*notes/
122-
112+
# IDE
123113
.idea/
124114

115+
# Project specific
125116
*.bak
126-
127-
128117
*.db
129-
130-
118+
*.~lock.*
119+
*notes/
131120
.pytask.sqlite3
132-
133-
134121
src/estimagic/_version.py
135122
src/optimagic/_version.py
136-
137-
*.~lock.*

pyproject.toml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,27 +125,30 @@ select = [
125125
]
126126

127127
extend-ignore = [
128-
128+
# For calls to warnings.warn(): No explicit `stacklevel` keyword argument found
129+
"B028",
129130
# allow module import not at top of file, important for notebooks
130131
"E402",
131132
# do not assign a lambda expression, use a def
132133
"E731",
133-
# Too many arguments to function call
134-
"PLR0913",
134+
# Incompatible with formatting
135+
"ISC001",
135136
# Too many returns
136137
"PLR0911",
137138
# Too many branches
138139
"PLR0912",
140+
# Too many arguments to function call
141+
"PLR0913",
139142
# Too many statements
140143
"PLR0915",
141144
# Magic number
142145
"PLR2004",
143146
# Consider `elif` instead of `else` then `if` to remove indentation level
144147
"PLR5501",
145-
# For calls to warnings.warn(): No explicit `stacklevel` keyword argument found
146-
"B028",
147-
# Incompatible with formatting
148-
"ISC001",
148+
# Move third-party import into a type-checking block
149+
"TC002",
150+
# Move standard library import into a type-checking block
151+
"TC003",
149152
]
150153

151154
[tool.ruff.lint.per-file-ignores]

0 commit comments

Comments
 (0)