Compare commits

..

15 commits

Author SHA1 Message Date
Bruno BELANYI c941cc7e4d 2024: d03: ex2: add solution 2024-12-03 10:13:19 +00:00
Bruno BELANYI 565ae49b91 2024: d03: ex2: add input 2024-12-03 10:13:10 +00:00
Bruno BELANYI c0a5c2165d 2024: d03: ex1: add solution 2024-12-03 10:12:55 +00:00
Bruno BELANYI 0bd0e66799 2024: d03: ex1: add input 2024-12-03 10:12:45 +00:00
Bruno BELANYI 08aab425a2 2024: d02: ex2: add solution 2024-12-02 10:36:22 +00:00
Bruno BELANYI 66c9d92749 2024: d02: ex2: add input 2024-12-02 10:36:22 +00:00
Bruno BELANYI 6634348afe 2024: d02: ex1: add solution 2024-12-02 10:36:22 +00:00
Bruno BELANYI a1f19ad4da 2024: d02: ex1: add input 2024-12-02 10:23:13 +00:00
Bruno BELANYI ae8759d766 2024: d01: ex2: add solution 2024-12-01 08:48:02 +00:00
Bruno BELANYI 2462651cae 2024: d01: ex2: add input 2024-12-01 08:47:38 +00:00
Bruno BELANYI 0e75993cb4 2024: d01: ex1: add solution 2024-12-01 08:47:28 +00:00
Bruno BELANYI f6f597a892 2024: d01: ex1: add input 2024-12-01 08:47:14 +00:00
Bruno BELANYI 1df896c32c 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-11-23 19:30:51 +00:00
Bruno BELANYI eb9c25af5a nix: simplify direnv integration
Rely on my having installed `nix-direnv`.
2024-11-23 19:22:06 +00:00
Bruno BELANYI 120a42f1b0 nix: migrate to 'ruff' formatting
Having just the one tool is better.

Incidentally, this fixes the ternary formatting, which was messed up in
recent `black` versions.
2024-11-23 18:45:57 +00:00
6 changed files with 6 additions and 18 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,8 +0,0 @@
[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
]