Compare commits

..

15 commits

Author SHA1 Message Date
Bruno BELANYI 3a48833407 2024: d03: ex2: add solution 2024-12-03 10:29:26 +00:00
Bruno BELANYI 8c9ef4fdce 2024: d03: ex2: add input 2024-12-03 10:29:26 +00:00
Bruno BELANYI 9e47173fcc 2024: d03: ex1: add solution 2024-12-03 10:29:26 +00:00
Bruno BELANYI e6816e02e5 2024: d03: ex1: add input 2024-12-03 10:29:26 +00:00
Bruno BELANYI 74c719f2d3 2024: d02: ex2: add solution 2024-12-03 10:29:26 +00:00
Bruno BELANYI c37689c461 2024: d02: ex2: add input 2024-12-03 10:29:26 +00:00
Bruno BELANYI 4491e98be2 2024: d02: ex1: add solution 2024-12-03 10:29:26 +00:00
Bruno BELANYI 54e45b7712 2024: d02: ex1: add input 2024-12-03 10:29:26 +00:00
Bruno BELANYI 2c356cfd6f 2024: d01: ex2: add solution 2024-12-03 10:29:26 +00:00
Bruno BELANYI 2f2e26f5fc 2024: d01: ex2: add input 2024-12-03 10:29:26 +00:00
Bruno BELANYI b6cccb6fef 2024: d01: ex1: add solution 2024-12-03 10:29:26 +00:00
Bruno BELANYI 97905b19f9 2024: d01: ex1: add input 2024-12-03 10:29:26 +00:00
Bruno BELANYI 811c14b6ef nix: simplify direnv integration
Rely on my having installed `nix-direnv`.
2024-12-03 10:29:26 +00:00
Bruno BELANYI b4762ccf9f nix: migrate to 'ruff'
Having just the one tool is better.

Incidentally, this fixes the ternary formatting, which was messed up in
recent `black` versions.
2024-12-03 10:29:26 +00:00
Bruno BELANYI acfc841539 treewide: fix 'ruff check' errors
This is mostly about unused imports.

A couple errors remain, but are fine in my book (using `l` as a variable
name, assigning a lambda to a variable).
2024-12-03 10:28:53 +00:00
6 changed files with 18 additions and 6 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys
import itertools import itertools
import sys
Report = list[int] Report = list[int]

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys
import itertools import itertools
import sys
Report = list[int] Report = list[int]

View file

@ -1,8 +1,8 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys
import re
import dataclasses import dataclasses
import re
import sys
@dataclasses.dataclass @dataclasses.dataclass

View file

@ -1,8 +1,8 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys
import re
import dataclasses import dataclasses
import re
import sys
@dataclasses.dataclass @dataclasses.dataclass

View file

@ -43,6 +43,10 @@
enable = true; enable = true;
}; };
ruff = {
enable = true;
};
ruff-format = { ruff-format = {
enable = true; enable = true;
}; };

8
ruff.toml Normal file
View file

@ -0,0 +1,8 @@
[lint]
extend-select = [
"I", # Import sorting is a lint check
]
ignore = [
"E731", # Assigning lambdas is sometimes more readable
"E741", # Ambiguous variable names are good enough actually
]